Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Program Announcements / 2D scrolling shooter game

Author
Message
Cabe
19
Years of Service
User Offline
Joined: 30th Jun 2006
Location: Glasgow, Scotland
Posted: 6th May 2007 18:57
This is my first real game that I've made. Its a vertically scrolling 2D shooting game.

Controls:
Movement - Arrow Keys
Fire - control
Pause - P
Unpause - Any key except P

You will need to download the media attached to this post to run the game.

To run the game just change the directory at line 36 to match where the media is on your PC.

here is the code



Comments etc are appretiated
Cliff Mellangard 3DEGS
Developer
19
Years of Service
User Offline
Joined: 20th Feb 2006
Location: Sweden
Posted: 10th May 2007 21:54
why dont you use the ?

GET DIR$
This command will get the absolute path of the current working directory. Absolute paths contain the
entire path including the drive letter.

and compile it as an exe and include screenies here?

cheers
spooky
22
Years of Service
User Offline
Joined: 30th Aug 2002
Location: United Kingdom
Posted: 10th May 2007 23:01
not bad.

You dont really need the two lines about setting homedir as the load commands are relative to where exe is run from. You should never had card-coded filepaths in a program.

Seems to be some problems with high-score code with DBPro throwing a couple of errors about array out of bounds.

Your code has LOTS of repeated similar code that could be optimised with use of loops and functions.

Other than that the game is quite fun and has lots of potential.

Boo!
Cabe
19
Years of Service
User Offline
Joined: 30th Jun 2006
Location: Glasgow, Scotland
Posted: 11th May 2007 18:17
Thanks for the comments guys. I'll make some of the changes suggested as soon as I get some time. Got my exams starting in a few days.

Also, Cliff, I didn't actually know about the GET DIR$ command when I was coding

Spooky, when I started out I was going to use loops but I had a number of problems so I moved out of them. I ended up adding much more than I originally planned and by the time I was done I didn't actually have enough time to go back and rework it.

The game was for a project which I got 74/80 for so I'm happy with that

Once the exams are over I plan on working on it some more.
Dr Manette
19
Years of Service
User Offline
Joined: 17th Jan 2006
Location: BioFox Games hq
Posted: 17th May 2007 22:11
Please compile this and make a zip/rar so people don't have to compile and change stuff. You'll get more comments that way.

Shadow heart
18
Years of Service
User Offline
Joined: 2nd Dec 2006
Location: US
Posted: 21st May 2007 07:26
screenies?

to the ones thats trapped inside of you, this is it!!

Login to post a reply

Server time is: 2025-08-08 17:42:50
Your offset time is: 2025-08-08 17:42:50