![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Mar 2006
Posts: 22
Rep Power: 0
![]() |
making a space invaders game...
...in turbo C++ v3.0 (yeah, i know its old, but thats what the school is making us learn on)
what code should i use in order to make the aliens randomly move back and forth, then down? also, is there a way i can make them go faster as they move further down? |
|
|
|
|
|
#2 | |
|
Professional Programmer
|
What do you mean what code should you use?
If you're asking how you would make the map, you could just use a simple 2d array as maybe [10][20]. Yes, you can also make the aliens move faster as they move towards the beginning of the array(if you use that method). In programming, you can do anything. That is why you're programming, isn't it? ![]()
__________________
▄▄▄▄ Quote:
Due to incorrect calculations during the middle ages, our calendar actually begins a few years after Jesus' birth. Thus the real 6/6/6 happened a few years back. The world already ended and you missed it. Download Code::Blocks now! ▄▄▄▄ |
|
|
|
|
|
|
#3 |
|
Expert Programmer
Join Date: Jun 2005
Posts: 893
Rep Power: 4
![]() |
Also, space invaders don't move randomly - they move to the end of the row and then down (so you need to check to see if one has hit the edge). They also only move faster as you shoot more of them (so you need to keep track of how many are still alive).
I can't remember how to do graphics under Turbo C++ 3.0, it is too long ago. |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|