Hi!
First off all i have to excuse me for my English, i’m not very good at it…
Does anybody remember Fire-Power, this funny game on Amiga? A few days ago i saw it again and got the idea to do a remake. This is my first try to program a (Java-) game, i just wrote Pong for practice, so i’m not sure, which is the best way to design this game.
It is an action game, you look at the map from top and rare driving a tank. Target is to capture the enemy’s flag. You have to enter his base and destroy his cannons. You can play alone or against a friend in split-screen-mode. This are the basics.
So important points each cycle are:
- react on input (no problem, i think)
- eventually scroll the map (if the map depends on 10x10px graphics, how can a view only a part from point 5,5?)
- test if the tank touches a wall/tree/etc.
- test if a missle from the tank touches something
- is the tank in the range of an cannon?
- calculate the orientation of the cannons
- calculate the new positions of missles
My problem is, that i don’t know, how to carry it out. Shall i make a thread for each missle? Shall i calculate everything in a fixed order and update the screen after that? Could this lead to performance problems?
I hope you understand my problems and i gave you enough informations.