Summary

[ LiB ]

Summary

Lua's capabilities should be fairly clear at this point, and SDL has been tackled for the second time in this book. Here are a few important points before continuing to the next chapter:

  • Blitting is still the key to rendering objects in SDL, whether using Python or Lua.

  • Rects are still the key for blitting a sprite or object to the screen.

  • The key to utilizing the C API is the stack.

  • Tables in Lua are used everywhere. They make good containers for game objects and good containers for global variables in the C API.

  • The most commonly found API function (after lua_state and lua_open ) is lua_dostring .

  • The Lua API functions are held within the lua.h header, which must be wrapped in a C extern command.

[ LiB ]


Game Programming with Pyton, Lua and Ruby
Game Programming with Pyton, Lua and Ruby
ISBN: N/A
EAN: N/A
Year: 2005
Pages: 133

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net