Re: [Super-tux-devel] Leveleditor first release
Brought to you by:
wkendrick
From: Ricardo C. <ri...@ae...> - 2003-12-28 20:23:20
|
(the dumb kmail was replying only to the person that send the mail to the=20 list, so i am resending this mail to the all list) Hey all, Em Domingo, 28 de Dezembro de 2003 16:20, o Duong-Khang NGUYEN escreveu: > Le Dimanche 28 D=E9cembre 2003 12:46, vous avez =E9crit : > > This game will be played by very little children, so a built-in editor > > would be much easier to use for those. > > By stand-alone I mean there's the game "supertux" and another executable > file "supertuxle" or something like that. It's as easy to use as the > builtin editor I believe > As Tobias mentioned, it would be cool to have a test option. Could be easi= ly=20 implemented in an internal editor. Futhermore, different executables could be easy to use for us, but not for= a=20 child. > > Did you find the code to be too straight? If you didn't like this, you > > probabily had an heart attack when looking at the old gameloop function. > > ;P I could put the key events in a different function, I just didn't > > because I don't like global variables that much. > > I don't like the way you use the global variables and the way you call the > function from gameloop.c. I think that functions from gameloop.c are not > for external use. And last but not least, the way you manipulate pointers > don't fit me much. > I would like to know more about what you find wrong in my pointers=20 manipulation... Really, I am not an experienced programmer and I am comited= =20 to improve my coding. Anyway, about the =ABfunctions from gameloop.c are not for external use=BB. Tobias said: > Moreover maintaining the level-editor seperate would be a bad idea IMHO, > because both could share some code. (remember encapsulation) > Give it a chance. If you still think it is that bad, when I've commited > it, then we can still create a seperate level-editor. What do you guys think it would be better, that the level editor called=20 gameloop functions or not? Currently, 6 gameloop funcs are called and 2 were forked. I had to fork th= em=20 because they have some stuff that had to be different, but these two could = be=20 easily changed in gameloop, in order to level editor call them from there. Anyway, I think a level editor should be internal, since it wouldn't spend= =20 much code (2 files) and integration is very cool. Now, should it use gameloop functions or not? Using them would lead to=20 simpler code in the leveleditors files, at the same time, it would lead to= =20 harder code to debug and a change in gameloop could break or, even worse,=20 create nasty and not right way visible bugs in the level editor. Regards, Ricardo =2D-=20 Tact, n.: The unsaid part of what you're thinking. |