Welcome to Dream.In.Code
Getting Help is Easy!

Join 119,059 Programmers for FREE! Ask your question and get quick answers from experts. There are 1,436 online right now! We've got more than 500 tutorials and 2,000 snippets. Join and find out why Dream.In.Code is the #1 programming help community on the internet! Registration is fast and FREE... Join Now!



Asteroids type game

 
Reply to this topicStart new topic

Asteroids type game

BetaWar
post 21 Jul, 2008 - 11:27 AM
Post #1


#include <soul.h>

Group Icon
Joined: 7 Sep, 2006
Posts: 1,700



Thanked 65 times

Dream Kudos: 1075
My Contributions


I came up with the idea of updating asteroids for today's standards while still trying to get everything to keep the same feel. So far I just have a flash alpha version, which isn't really good enough to see how the game will look when complete, but it does give you a little feel for what I am working on.

I will eventually remake it in C++ (when I learn enough C++ to make that a reality) so it will be getting faster than it currently is.

Here is a link: http://www.reigninggames.com/tests/flash/p..._wars_01_tt.swf

It is only 4kb so I don't think people will have trouble waiting for it to load.

Here are the controls:
Left arrow - turn left
Right arrow - turn right
Up arrow - more forward, shoot forward
down arrow - more forward, shoot back

DON'T FORGET TO CLICK ON THE GAME flash won't detect the keys otherwise!!!

The game is really basic, only containing 3 types of enemies at the moment and not having enough of the spawn close enough to really have a reason to worry about them (This was mostly to try and keep the game moving more than 1 fps, which it can come close to...

At this point I only have 1 life working, so while it says 3 if you die (one of the objects hits you) you will need to refresh the page to play more. The score counts up various values for each object type and everything.

At 15000 points (if you decide to play that long) you will recieve your first weapons upgrade, the one after that is somewhere around 38000 and so on (more of less). You get a new life every 75000 points (not that it is of any use with this version ofthe game).

Tell me what you think.
User is online!Profile CardPM

Go to the top of the page


KYA
post 22 Jul, 2008 - 01:59 PM
Post #2


#include <nerd.h>

Group Icon
Joined: 14 Sep, 2007
Posts: 3,145



Thanked 24 times

Dream Kudos: 1150
My Contributions


Fun, but I could hold down up and left or right and never die. Infinite ammo FTW!
User is offlineProfile CardPM

Go to the top of the page

BetaWar
post 22 Jul, 2008 - 04:02 PM
Post #3


#include <soul.h>

Group Icon
Joined: 7 Sep, 2006
Posts: 1,700



Thanked 65 times

Dream Kudos: 1075
My Contributions


It actually has a 150(ish) shot max on screen at a time, but I have set it up so that rarly happens.

It is possible to die no matter what since the enemy placement is completely random, but what is the likelyness of them landing on your same spot? (Fairly small)

Glad to see you like it. I just got done dling/installing a ton of graphics libraries for C++ so I am going to start attempting to port and complete it.
User is online!Profile CardPM

Go to the top of the page

stayscrisp
post 22 Jul, 2008 - 05:37 PM
Post #4


D.I.C Head

**
Joined: 14 Feb, 2008
Posts: 231



Thanked 5 times
My Contributions



c++ is a hell of a lot more difficult to do this than in flash, be prepared.
the only graphics library you really need to do a project like this in c++ is SDL so i'd recommend that.
User is offlineProfile CardPM

Go to the top of the page

BetaWar
post 22 Jul, 2008 - 06:09 PM
Post #5


#include <soul.h>

Group Icon
Joined: 7 Sep, 2006
Posts: 1,700



Thanked 65 times

Dream Kudos: 1075
My Contributions


Okay, thanks. At the moment I am using Dark GTK, it works out fairly well, but won't be my final draft in C++, just something to allow people to play a better version of the game (if they are willing to download all the additional crap it needs... whole download to get it working is about 1GB though I hope it isn't all needed when the program is compiled, so I can possibly just send what is needed.

At this point I am about done recreating the ship then I will need to make the wall detection and score panel and get the bullets working again. After that is simple implementation and checks against the enemies (though I am sure it will take a lot more code). Once I am finished with this game I will post it again and try to get it down to a stand alone application, requiring nothing additional to be installed.

Thanks for the comments and expect to see me asking questions in the C++ forum soon.
User is online!Profile CardPM

Go to the top of the page

stayscrisp
post 22 Jul, 2008 - 09:10 PM
Post #6


D.I.C Head

**
Joined: 14 Feb, 2008
Posts: 231



Thanked 5 times
My Contributions



I assume you mean Dark GDK, yes it is good and so is irrlicht which is platform independent so better in my
opinion, but youd get more out of making this game using SDL or Allegro smile.gif
User is offlineProfile CardPM

Go to the top of the page

BetaWar
post 22 Jul, 2008 - 09:15 PM
Post #7


#include <soul.h>

Group Icon
Joined: 7 Sep, 2006
Posts: 1,700



Thanked 65 times

Dream Kudos: 1075
My Contributions


I have used allegro in the past, it was a total pain (granted I think that was partly due to the class that I was taking and the teacher not knowing how to use it). Yes, I did mean GDK I just have typing spasms sometimes... There will definately be multiple versions of this game coming out (mostly so I have the chance to sell it without having to pay royalties) so I think I will be getting a lot out of what I learn from this by the time it is done.

Thanks for the thoughts though smile.gif

<edit>
Fixed a couple of typos
</edit>

This post has been edited by BetaWar: 22 Jul, 2008 - 09:16 PM
User is online!Profile CardPM

Go to the top of the page

Fast ReplyReply to this topicStart new topic
Time is now: 10/13/08 04:03PM

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month