[Super-tux-devel] indentations
Brought to you by:
wkendrick
From: Tobias <tob...@gm...> - 2003-12-28 16:24:31
|
Ok guys, I have to clarify something. :) The indentations I use are so called GNU indentations. I have a program, wich "reformats" the sources to GNU indentations (used in the Linux kernel AFAIK) automatically and I usually do this before commiting to CVS. So there is no need for you to worry about indentations. You want to know which program? KDevelop3, I'm involved there. I believe this is also possible with emacs. Greetz... Tobias Gläßer Am So, den 28.12.2003 schrieb Duong-Khang NGUYEN um 11:20: > Le Dimanche 28 Décembre 2003 12:46, vous avez écrit : > > 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 > > > Well, I just asked this because the world.h, badguy.h and player.h have a > > line saying 'C++ Interface:'. > > I've also found some comments using //. Is this already ANSI C and/or can > > I use it (/* */ are annoying :P)? > > I think we can use "//" for fast commenting :-). I agree that it's not really > C but /**/ takes 235 ms more to write :-D I use /**/ for multiple line > comments and oneline comment as much as I can > > > 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'm also not very used to write in C. > > I code in C++ too, but I keep it apart in my mind while programming in C > > > I also didn't like (neither understood) the identation you have used in > > the game. > > You should ask Tobias for this :-) Maybe we have to vote for a common coding > and identation style. > > > Cya, > > Ricardo |