Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Apr 9th, 2006, 10:55 PM   #1
lilmul123
Newbie
 
Join Date: Mar 2006
Posts: 22
Rep Power: 0 lilmul123 is on a distinguished road
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?
lilmul123 is offline   Reply With Quote
Old Apr 9th, 2006, 10:58 PM   #2
jayme
Professional Programmer
 
jayme's Avatar
 
Join Date: Nov 2005
Location: Canada
Posts: 495
Rep Power: 0 jayme is an unknown quantity at this point
Send a message via MSN to jayme
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:
Originally Posted by Mohamed Jihad
Durka durka!
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!
jayme is offline   Reply With Quote
Old Apr 10th, 2006, 12:05 AM   #3
The Dark
Expert Programmer
 
Join Date: Jun 2005
Posts: 893
Rep Power: 4 The Dark is on a distinguished road
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.
The Dark is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 1:52 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC