My first attempts with XNA
Its my first time using C# and I really like it. I have a very small
amount of C and C++ knowledge but it has been easy to pick up C#.
I have made the usual Pong, Space Invaders etc. There are two things Id like to share with you
1. Zombie sim
http://gorgon2357.50webs.com/zombiesim.rar
Its not really a game just a simulator. To add a zombie press Z, an army guy press A and for a civilian press C.
(starting amounts of zombs, civils and army can be changed in the code.
Also you can add buildings(grey rectangles), just look in the
loadresources part. Not quite got it right yet with them. The people
can get stuck. Started a bit using rays, but not finished yet. Its in
there but just commented out.)
Its quite fun just watching the zombie outbreak. As this is my first
time with XNA I know my code is messy and there are things that I would
like to change. I have used goto commands to get out of some of my
loops. I know this is not good but it was the only way I could find to
stop the error messages. Any tips would be appreciated.
2. Bouncing balls
http://gorgon2357.50webs.com/bouncingball.rar
Again not really a game just a physics test. You can change the number
of balls in the loadresources. I found you can go quite high without
slowdown.
When the balls are initialised they are given random size and color. Their mass is based on their size too.
The balls interact as you would expect taking into account the mass of the balls.
You can change the direction of gravity using the arrow keys.
I havent quite sorted out a resting state for the balls. They seem to do lots of mini bounces.
Hope these are of use to some of you. The zombie sim is commented alot more than the balls.

