[ LiB ] |
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 ] |