jasonallen / lugaru

A component-entity gaming framework based on Moai.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Lugaru LogoLugaru Build Status

A component-entity framework built on Moai. It makes PC and Mobile game development productive and enjoyable. It combines the amazing power and portability of Moai with a simplified component-entity based programming model.

Getting Started

Your best bet is to head over to the official lugaru docs.

Features

  • The framework is built on Moai, which means:
    • Works on PC, OSX, iphone & Android
    • Fast development cycle on PC/Mac, easy porting to mobile later
    • Extremely powerful and flexible (sprites, tiles, particles, physics and much, much more...)
    • Very, very fast - Built in portable C++
  • Component-Entity-based framework: clean, simple, DRY code.
  • Well-documented: source code is well documented, tutorials, code samples.
  • The framework is well tested and has continuous integration (thanks Travis-CI!)

Example

Checkout the examples/ directory. Here's hello world:

local L = require 'lugaru'
L.init(320, 480)

local setup = function(scene)
  local e = L.Entity()
  e:addComponent(L.Position(0,0))
  e:addComponent(L.Sprite("examples/foo.png", 128, 128))
  scene:addEntity(e)
end

L.Scene("main", setup):start()

About

A component-entity gaming framework based on Moai.


Languages

Language:Lua 100.0%