[ 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.hheader, which must be wrapped in a c extern command.
[ LiB ] | ![]() ![]() |