Exercises

[ LiB ]

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 ]


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