Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

steveth45

I finished my first game, check it out!

This topic is 5289 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I coded an Asteroids clone in C++. It should run on just about any windows system. I was inspired by an article on Gamedev that suggested starting out with a simple game and then progress. I used Mingw32(compiler), SDL(graphics/input lib), and Relo(IDE), all free tools to make this. Its about 2000 lines of code and completely object oriented. The ship, asteroids, missiles and even letters on the screen inherit from my CObject_in_space class. Please try it out and give me some feedback. Let me know if you want to see the source code. I use lookup tables to do all the 2D rotational transformations. I wrote my own speed throttling and frame skipping code. Get the file here: http://steveth45.tripod.com/AstFunGame01.zip . My email address is in the README.txt file. Enjoy. steveth45 = new gamecoder;

Share this post


Link to post
Share on other sites
Advertisement
Thanks for checking it out.
Yeah, it does rotate a bit fast. A scoring system is on my "to do" list of improvements.

steveth45 = new gamecoder;

Share this post


Link to post
Share on other sites
Nice

Should be great with a scoring system.

Heaven knows why I''m playing it though...the first of my final year exams is tomorrow!



Share this post


Link to post
Share on other sites
Well, I tried a couple of ideas from this webpage:
http://astronomy.swin.edu.au/~pbourke/geometry/insidepoly/
This page has C code for testing whether a given point lies inside a polygon. "Solution 1" seems to work best. I just checked if any of the missiles were "inside" the asteroid polygons each frame. I had to tweak the code a bit to work in my game. Hope this helps.


steveth45 = new gamecoder;

Share this post


Link to post
Share on other sites
Great game, pretty much editable, ex. linefont.txt, but I have a small suggestion... maybe you should make the prog count all the letters by itself, to ease things up if you edit linefont.txt :-D, so since every letter takes up a line, you can make a loop like

while(!eof)
{
get new line and go to the next
doing also a ++ on the counter..
}


[edited by - snyp on May 21, 2004 8:17:28 PM]

Share this post


Link to post
Share on other sites
OK, OK,
I updated the game to 0.2 beta. I added a score keeping system and made the ship rotate at a more reasonable speed. Here you go:
http://steveth45.tripod.com/AstFunGame02.zip .

btw, snyp, that''s a great idea about having the program figure out how many lines there are in linefont.txt. This is the first time I have done any kind of file IO in a program so the number telling how many lines there are was kind of a hack so I wouldn''t have to figure out how to count them. Also, kudos for figuring out how that file works. I''ll put that on my list.

steveth45 = new gamecoder;

Share this post


Link to post
Share on other sites
Whoops, I guess I shouldn''t have included a direct link to the file on tripod.com. Try this url:
http://www.geocities.com/steveth_45/
Then click on the file to download.

steveth45 = new gamecoder;

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!