GPWiki.org
GPWiki.org
It is currently Sat May 18, 2013 4:19 pm

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Fri May 11, 2012 11:34 am 
Hello,

I am making a galaxian game in sdl .

(For quick watch of galaxians who doesn't know it
http://www.1980-game...es/galaxian.php )

I have drawn the aliens ,ship and bullet . The ship is moving is moving left and right . The bullet is moving up for shooting the aliens.

I want to know how to make a new bullet appear after one is gone.
How to move the bullet along with the ship.
Also i didn't provide any kind of animation for the aliens .How to do it.

I didn't use any opengl purely sdl and c++.
If i use any opengl is there any benefit for me or I can go with sdl itself?


Top
  
 
PostPosted: Fri May 11, 2012 2:06 pm 
Shake'n'Baker

Joined: Thu Dec 29, 2011 2:33 pm
Posts: 62
I think it's a game like space invaders, right?

My first and maybe easiest approach would be,
to calculate how many bullets you can possibly
shoot at once.
I mean, how much delay, until the next shot is
possible and how many bullets are possibly displayed
at the same time.
Creating an array of class bullets, including
visibility true / false and x and y pos.
I hope it's understandable what I mean.

For animation you should look up the lazyfoo
tutorial about SDL.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group