Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Top-Down shooter demo
Index -> Programming, Turing -> Turing Submissions
Goto page 1, 2  Next
View previous topic Printable versionDownload TopicRate TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
CodeMonkey2000




PostPosted: Fri May 25, 2007 9:45 pm   Post subject: Top-Down shooter demo

Here is a demo of a top-down shooter I've been working on. The code is a bit messy, but meh. I didn't include the bullet class, because it doesn't work properly. I'll finish it up when I get more time.

EDIT: Ok, the bullets work now but it's still a bit glitchy. Oh yea, it's w,a,s,d to move, mouse to aim, and click to shoot
Sponsor
Sponsor
Sponsor
sponsor
DIIST




PostPosted: Sun May 27, 2007 9:02 am   Post subject: Re: Top-Down shooter demo

CodeMonkey2000 @ Fri May 25, 2007 9:45 pm wrote:

EDIT: Ok, the bullets work now but it's still a bit glitchy. Oh yea, it's w,a,s,d to move, mouse to aim, and click to shoot

Those bullets seem more like explosions. Confused
Try to make it so you can move in the direction you point. Other than that this game needs a bit of enemies. If there were any, i haven't run into them so far. But still overall a good start.
CodeMonkey2000




PostPosted: Sun May 27, 2007 12:41 pm   Post subject: Re: Top-Down shooter demo

thuvs @ Sun May 27, 2007 9:02 am wrote:

Those bullets seem more like explosions. Confused

You need to download the file again. I added the bullets late last night Razz. And I initially did have the player move towards the mouse, but it wasn't as fun as moving up,down,left,right. This way is better because it's easier to strafe. I do have enemies, but I didn't include them in the demo, as the AI isn't working properly (right now it's an Artificial Idiot Razz).

Oh, and here's another update. The bullets are no longer glitchy and I added weapons. Press 1 to select shotgun,2 for pistol, 3 for machine gun.
Tallguy




PostPosted: Mon May 28, 2007 7:56 am   Post subject: RE:Top-Down shooter demo

what syestem u using for this program?? turing wont open it
rollerdude




PostPosted: Mon May 28, 2007 9:43 am   Post subject: Re: Top-Down shooter demo

.rar isnt a turing file, its like a .zip ... you need to download winrar, id give it to you, but my external drive is at home Sad
CodeMonkey2000




PostPosted: Mon May 28, 2007 4:10 pm   Post subject: Re: Top-Down shooter demo

Here's a link http://www.rarlab.com/download.htm

EDIT: Here is, yet again, another update. The problems with collisions are fixed (you could walk through wall if you run diagonally). I added a map editor (It's a damn good one too if I do say so myself). To move the map press w-a-s-d, to place tiles, just click on your square. You can select different tiles from the side bar. If you want to test out your level, remember to save it as map2.txt
Comments are appreciated Very Happy
CodeMonkey2000




PostPosted: Mon May 28, 2007 7:45 pm   Post subject: RE:Top-Down shooter demo

50 bits to the person who correctly guesses the method for collision I used for my bullets, and what it was initially used for.
DIIST




PostPosted: Mon May 28, 2007 8:51 pm   Post subject: Re: Top-Down shooter demo

Dunno the name but your checking if the object is in the same tile as another object or something along the lines. Dont know much about collision only that its hard to do collisions of polygons where sides are greater than 4. You have to use some weird summation trick, see if the number of points of one polygon resides in the area that the other polygon covers. That is its self another problem. Trying to figuring out wither a point lies inside or outside the polygon. My team used whatdotcolor and drawfillpolygon in CCC for that question. Drew it to an off screen buffer. Lol got away with it too. Saved our asses. Laughing
Sponsor
Sponsor
Sponsor
sponsor
CodeMonkey2000




PostPosted: Wed May 30, 2007 8:09 pm   Post subject: Re: Top-Down shooter demo

YEAH! I'm finally done the AI!! The enemies have 2 modes, patrol, and "kill the player at all costs". Since their aim is super perfect, I thought that they should go back to patrolling once they are off screen. I need some constructive feed back regarding the AI. Comments are appreciated Very Happy

Once the AI is fully functioning, I plan to allow the user to place enemies, and set patrol points (which will be using the map editor off course).
aramadia




PostPosted: Wed May 30, 2007 9:56 pm   Post subject: RE:Top-Down shooter demo

I'm just curious Code Money. Are you talking to me in your signature? Or are you talking about this: http://aramadia.googlepages.com/home
DIIST




PostPosted: Thu May 31, 2007 6:31 am   Post subject: Re: RE:Top-Down shooter demo

aramadia @ Wed May 30, 2007 9:56 pm wrote:
I'm just curious Code Money. Are you talking to me in your signature? Or are you talking about this: http://aramadia.googlepages.com/home
Laughing No he's really talking to all of us. To me that sig say "thuvs, please support open sourcing, because sharing is caring Very Happy ".
CodeMonkey2000




PostPosted: Thu May 31, 2007 9:07 pm   Post subject: Re: Top-Down shooter demo

New update. I've added enemy sentries, and patrol points for them in my mapEdit. I've made some game play enhancements, everything looks smoother. For my next edit I plan to improve the AI and change my tiles (the current ones suck, expect for the water. ) This new map is pretty cool (IMO) and I've loaded it up with enemies. Enjoy!
DifinityRJ




PostPosted: Thu May 31, 2007 9:24 pm   Post subject: Re: Top-Down shooter demo

CodeMonkey, your code is impressive, not to mention your programming techniques. Absolutely amazing Very Happy

Good job. Mr. Green
glani05




PostPosted: Fri Jun 01, 2007 6:42 pm   Post subject: Re: Top-Down shooter demo

imm really struggling with my shooter, can i use urs as a reference?
CodeMonkey2000




PostPosted: Fri Jun 01, 2007 6:47 pm   Post subject: RE:Top-Down shooter demo

You may, but you might have a tough time understanding it, since I'm not commenting at all (I hate commenting, it's a waste of memory Razz).
Display posts from previous:   
   Index -> Programming, Turing -> Turing Submissions
View previous topic Tell A FriendPrintable versionDownload TopicRate TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 2  [ 26 Posts ]
Goto page 1, 2  Next
Jump to:   


Style:  
Search: