Hi Cara,

Quote
The only difficulty I find in switching / adapting code from one form
to another is actually figuring out the original programmer's
organization!  lol!  -And I say this even if I was the original
programmer!  lol!
End quote

That happens to every programmer. When I originally got Raceway from 
James North I'd look through his code and ask questions like, "why did 
he do that," or, "what is he thinking when he wrote this way," or, "what 
on earth does this code do?"
I'd have to spend quite a while getting into the fflow of his logic, and 
thinking about how the flow and organisation of his programs were laid 
out. Fortunately, James code was pretty understandable, and I grasped 
the basic mechanics of his logic pretty early on. That isn't true with 
other programmers code I have read. Especially, tootorials from 
Microsoft. They are the worst for writing geeky and obscure code.

Quote
Going back into code I wrote a year ago is like going back through
the strata of ages sometimes!...
End quote

Oh, yeah. I an see hoYeah, I know the feeling of how that is. My first 
game, STFC, didn't look anything like the code for Montezuma's Return. 
In turn Montezuma's Return is a bit primative to the code in Genesis 3D 
which is currently scheduled to be converted to Java once I get the 
right API and tools I need to do it without losing any features. Point 
beeing Genesis 3D is way more advanced in structure, flow design, and is 
based on experience from the previous two games.

Quote
Since I'm really not a coder by trade or love so to speak, and
don't do it every day, I find my styles tending to evolve and re-
evolve with a language in a given project. 
End quote

Professionally speaking your over all style shouldn't be changing with 
in any given project. Once you pick a style you should stick with it. 
However, as you pointed out you are not a coder by trade so I would 
place you in the catagory of still experimenting and looking for a style 
you like.

Quote
So while adapting code is easy, figuring out what the heck I was
thinking at the time may not be!  lol!
End quote

Ah, that is where good code comments come in. I always find myself 
having to comment sections of code on extremely large game projects like 
Montezuma's Return. You have to go back ask yourself how many parameters 
does this or that function take, and you have to go back and look that 
information up. Java and C# have special xml commenting features which 
allows you to automatically generate xml documents with all your 
comments in them. Great if you want to know that this or that function 
takes three parameters etc.

Quote
 do you have any particular style of
starting a project from scratch for a given style of game?...  I.E.
what parts of it do you like to code or create or think about first?...
End quote

I always begin with designing the classes I need for the game. I start 
with creating the character, monster, item, environment  classes. Then, 
I usually add or write the audio, input, world, and other classes for 
input and sound. From there I create the major objects, loading 
functions, draw any Windows that need created, include global variables, 
etc. Basically, I create everything necessary to actually get into the 
nuts and bolts of the game without having to go back and add things 
constantly. If you have to constantly go back and add classes or 
something else you didn't do it really slows down coding instead of 
sspeading it up. If you create that stuff first coding goes faster. 
Think of it this way. Imagine how fast it is if you know the player and 
monster classes are created. I can just write the global objects like 
this in Java.

Player player;
Monster skull;
Monster snake;
Monster spider;

That took me all of 30 seconds to type out those four objects. Imagine 
how long it would take me to declare a player object, and then write the 
Character and player classes. Then, declare a Monster class and have to 
go back and write the Monster class. It disrupts the flow of your 
thoughts and even typing. It also can cause errors because you have to 
keep switching files and program flow.

Hth.



---
Gamers mailing list __ [email protected]
If you want to leave the list, send E-mail to [EMAIL PROTECTED]
You can make changes or update your subscription via the web, at
http://audyssey.org/mailman/listinfo/gamers_audyssey.org.
All messages are archived and can be searched and read at
http://www.mail-archive.com/[EMAIL PROTECTED]
If you have any questions or concerns regarding the management of the list,
please send E-mail to [EMAIL PROTECTED]

Reply via email to