[ LiB ]Questions and AnswersChapter 8. The <a href=lua Game Community">

Exercises

1:

Make a copy of the Gravity.lua source code and try playing with some of the variables to see what happens. Change the width and height of the video screen, change the number of player lives, and mess with the gravity and speed constants. What would you add or change to make the game more interesting or fun?

2:

Take a look at the Meteor Shower game that comes bundled with the LuaSDL after you have a pretty good feel for Gravity to see what an even more complex lua game looks like. Again, make some changes to the constants and variables. See if there is anything you would change to make the game more interesting or fun.

3:

Take a few of the simple lua code samples from the last chapter try to re-script them using the c API.

[ LiB ]Questions and AnswersChapter 8. The <a href=lua Game Community">