[Super-tux-devel] Gameplay patch
Brought to you by:
wkendrick
From: Ricardo C. <ri...@ae...> - 2004-01-17 00:41:23
|
Hey there, I have make a patch so that when you collide in the right side of a brick, the mint goes to the left, else it goes to the right, like in the SuperMario. It adds an extra argument to tryemptybox() and add_upgrade(). I also cleaned add_upgrade(). When a goddie would disappear to the left of the screen, it was removed too soon (without being totally out), it also fixes that. Tobias, this should not affect your work, so you can commit it. I also have made a few changes to leveleditor: added grid and made it possible to see what's inside a box when the cursor is on it. This affects screen.c (adds fillrect()), so it should be merged after the adding of opengl support. The gameloop.c is really ugly and huge. Besides, I don't really like the indentation used... I could only navigate on it because Kate highlites brackets and allows to compress/expand them. Gameloop.c has all the gameplay code, so we should separate it. Why not putting bad_guys code in a bad_guys file (for instance draw funcs) and all the other structs code in their own file? Anyway, SuperTux is a nice piece of software and I am looking forward for the OpenGL support ;) Cheers, Ricardo Cruz -- Success is relative: It is what we can make of the mess we have made of things. -- T.S. Eliot, "The Family Reunion" |