Re: [Super-tux-devel] Gameplay patch
Brought to you by:
wkendrick
From: Tobias <tob...@gm...> - 2004-01-17 10:22:09
|
Ricardo, did you actually understand what my rewrite is all about? Maybe I didn't make it clear enough for the whole crew :). It's about huge code restructuring and rewriting esspecially to ALL functions and code related to the gameloop. You'll have to do this patch a second time, I guess. :(( Ok, I'll commit the whole stuff tonight, even if a few parts aren't ready. I'll document the unfinished parts, so that people can help, if they like to. :) Greetz... Tobias Gläßer Am Fr, den 16.01.2004 schrieb Ricardo Cruz um 19:46: > 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 -- |