Posted: 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
DIIST
Posted: 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.
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
Posted: 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.
You need to download the file again. I added the bullets late last night . 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 ).
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
Posted: 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
Posted: 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
CodeMonkey2000
Posted: Mon May 28, 2007 4:10 pm Post subject: Re: Top-Down shooter demo
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
CodeMonkey2000
Posted: 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
Posted: 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.
Sponsor Sponsor
CodeMonkey2000
Posted: 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
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
Posted: Wed May 30, 2007 9:56 pm Post subject: RE:Top-Down shooter demo
No he's really talking to all of us. To me that sig say "thuvs, please support open sourcing, because sharing is caring ".
CodeMonkey2000
Posted: 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
Posted: 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
Good job.
glani05
Posted: 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
Posted: 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 ).