Game Development Reference
In-Depth Information
What just happened?
You created a scene in Lua with Cocos2d-x using a menu, a few sprites, and an animation.
It's easy to see how similar the calls are in the Lua bindings to the original C++ ones. And
with code completion inside the IDE, finding the correct methods is a breeze.
Now let's tackle the GameScene class.
Note
One of the nicest features of Lua is something called live coding , and it's switched on by
default in the Cocos IDE. To see what I mean by live coding, do this: while the game is
running in the simulator, change the position of the character sprite in your code and save
it. You should see the change taking effect in the simulator. This is a great way to build UI
and game scenes.
Search WWH ::




Custom Search