Shooter Game [In the making, but cool so far]
Author |
Message |
Italian[Boy]
|
Posted: Mon Oct 29, 2007 7:01 pm Post subject: Shooter Game [In the making, but cool so far] |
|
|
Well this is the first, semi-quality program I've written in turing so far, and majority of it was self taught by using the examples that game with turing, anyway, so this is a shooting based game, although there is no game part to it, yet lol. I wrote it on one computer, then brought it to another one and found out that the program isn't really the same, I'm assuming this is because the second computer must be slower, and because of its different resolution. I don't really have any resources on the computer I wrote it on so the bmp's are hand drawn and the wav file is recorded from the halo machine gun . Anyway, feel free to pick this apart and take what ever you want out of it, if there is anything useful. Any hits or tips would be really good too.
Description: |
|
Download |
Filename: |
Shooter.rar |
Filesize: |
74.63 KB |
Downloaded: |
448 Time(s) |
|
|
|
|
|
|
Sponsor Sponsor
|
|
|
Degensquared
|
Posted: Wed Oct 31, 2007 8:47 pm Post subject: Re: Shooter Game [In the making, but cool so far] |
|
|
Looks pretty good so far! I like the way that you used procedures with parameters to draw the amount of ammo .
Just a couple of things that you might want to improve:
-You only have 3 options in the case structure. If I press any other button other than space bar, c or q, the program crashes. I would suggest that you use an if structure instead to handle this, and then you can use else, or just add a "label :" at the end (minus the quotes) to create the same effect as an else, so that the program doesn't crash if the used doesn't input something.
- Also, I would recommend that you take out the part that only gets input (other than shooting) if ammo is 0. that could get rather annoying if say a user wants to exit the game or clear the screen before they ran out of ammo. I understand if you want to get the user to only reload if they have 0 ammo, but it could be remedied by simply moving the if ammo = 0 then into the case structure instead. (I believe this is possible)
But for just learning of of examples, its a great job!
|
|
|
|
|
|
darkshade
|
Posted: Wed Oct 31, 2007 8:57 pm Post subject: Re: Shooter Game [In the making, but cool so far] |
|
|
also for when you reload might want to use a input key down style and that way you can put a input.flush witch will stop people from just spaming the spacebar to instant reloads over
|
|
|
|
|
|
Italian[Boy]
|
Posted: Wed Oct 31, 2007 9:52 pm Post subject: RE:Shooter Game [In the making, but cool so far] |
|
|
yea with the input.keydown i tried it and didn't quite get it, and to degensquared, the clear, quit, and reload thing was just a quick code i put in there for the function, i forgot that it was even in there lol
|
|
|
|
|
|
|
|