Posted 21 April 2008 - 08:45 PM
i?m still having problems with game development, so i need some tutorials, ideas or sources in c or asm to do this:
1) animating sprites with defined time delay between frames
2) sprite interaction (colision detection with other sprites and gamemap, different methods and ideas)
3) multi background display (do you see street fighter 2 background animation?)
4) game level design basics (how to scroll up, down, left, right, and all about this)
5) artificial intelligence development (enemy moving routines)
if kucalc could answer, it would be better!
protoman no one.
pd: if somebody has tutorials (like the online tutorial above) or books, please send to my e-mail in zip, rar or 7z format. i haven?t got internet connection at home!!
Posted 21 April 2008 - 11:26 PM
The background scrolling you're talking about is called parallax scrolling.
I also suggest that you look up "side scrollers" on Google.
For writing a game, what I do is imagine how it works and create the pseudo code in my head. If I get the time, I could code up some routines for a side scrolling game.
Posted 30 April 2008 - 01:15 PM
I would be no where near Kucalc's level of programing, but i believe the method he describes to figure things out a very good one.
Just stop and think to see what exactly it is that you are trying to do, dont try think of fancy/complicated methods - that will come eventually.
Animation? One very simple method would be to implement a counter variable, depending on the value it is, display a certain sprite. Increment this value each loop, and theres your animation - crude but effective.
If you thinking of 2D sprite collisions/interactions by far the simplest method would be to think of them as "boxes" that move around. Just use the four corners of the sprite (x,y) and check whether there greater/less then other corners of other sprites.
For 2D side scrolling, this simplest method would be an two dimensional array (or "matrix"). Each value corresponds to a "block" and the draw function draws what you can see out of that array (depending on how far in the level you are).
As for AI, just start very simple and put yourself in the position of your "person/creature" (What would he be doing/thinking).
Kucalc's own side scrollers "Mathwiz" and "Mathwiz II" are both available with source code (im sure he doesnt mind). Check these out if you need to see it in action.
Other then that, just keep at it.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users