
-----------------------------------
Remm
Tue Jun 20, 2006 9:29 am

[FP] -FINAL GUNNER-
-----------------------------------
FINAL GUNNER
Hey all, this is my grade 10 final project. It took a great deal of time and is quite buggy. It will only work well on slower computers, to my experience anyways.
Arrow keys left / right to move cannon
Tab to fire the cannon

Ok, i KNOW the cannon has two blindspots, that the thing doesnt go at what angle you point it at, and that arrays would work 170% better. HOWEVER, arrays are a touch confusing, you can get used to the angle and the blindspots add... difficulty :P

insane difficulty is meant to be glitchy, just to show some mass parabombs.

More stuff comes over time, so dont just quit 20 seconds into the game. You'll miss out on sweet UFOs (watch them drop a bomb, it rocks)

Okay, and now for your enjoyment and bit-throwing, i give you:
(Sadly this is my first time adding attachments, so tell me if it doesnt work!!!)

Edit: I forgot to thank TheOneTrueGod for his angle making program!! Without it I would have had to learn arrays  :wink:  Thanks man!

-----------------------------------
Hack.saw
Tue Jun 20, 2006 9:38 am


-----------------------------------
Worked fie for me.. only had 1 probelm..  THe angle of the gun isnt quite the angle of the bullet.  Just a small problem that you can figure out how to aim with if u memorise the angle of difference. (sry for any bad spelling)

-----------------------------------
Remm
Tue Jun 20, 2006 9:40 am


-----------------------------------
its ok, but that was one of the main things of doing it w/o arrays, i had really no idea what I was doing, just massive trial and error. It took a good 4 or 5 days to get the gun to shoot they way it did, so I was happy with it. If somthing enters your blind spot, then just face strait west or east, and it'll fire fine like that.
After you get used to the way it fires, you'll be fine.

-----------------------------------
Hack.saw
Tue Jun 20, 2006 10:03 am


-----------------------------------
I know i just learned how to use arrays for all the stuff.  Anywho id be happy with what it is all you have to do is aim a little bit lower than the object and your set. :)

-----------------------------------
Delos
Tue Jun 20, 2006 10:19 am


-----------------------------------
Remm, if you would like this moved to [FP] then PM me or one of the other Mods.  Otherwise you can leave here in [Source].

-----------------------------------
Remm
Tue Jun 20, 2006 1:29 pm


-----------------------------------
Well... this I'd like the code to stay source, but wherever that place of bits apply. I read somthing about the bit distribution for Final projects and how it was all worked out. Least I thought it went here. Move it at your discression (... i think i spelt that right)

-----------------------------------
Mr. T
Tue Jun 20, 2006 5:39 pm

Re: [FP] -FINAL GUNNER-
-----------------------------------
Edit: I forgot to thank TheOneTrueGod for his angle making program!! Without it I would have had to learn arrays  :wink:  Thanks man!
You should learn to use arrays anyways.  :wink:  They are very useful.

-----------------------------------
Remm
Wed Jun 21, 2006 7:04 am


-----------------------------------
i tried but... with the deadline and all (even though it prolly wouldnt have taken that long to learn) I wasnt really into figuring out a whole new thing, and then applying it to shooting. The way it works right now, im happy with it.

-----------------------------------
Martin
Fri Jun 23, 2006 2:07 am


-----------------------------------
The quick array tutorial, just for you!

Instead of this:
var x1, x2, x3, x4, x5 : int
Do this:
var x : array 1 .. 5 of int

Instead of this:
x1 := x3 + x5
Do this:
x(1) := x(3) + x(5)

Instead of this:
x1 := 5
x2 := 5
x3 := 5
x4 := 5
x5 := 5

Do this:
for i : 1 ..5
    x(i) := 5
end for

And... you now have experienced the wonders of arrays. Arrays are simply groupings of variables.

-----------------------------------
Remm
Fri Jun 23, 2006 6:41 am


-----------------------------------
jeez. that tutorial right there beats the one in the turing walkthrugh. Simple and to the point. I acually somewhat understand what they are for and how to use them now!
Too bad im already done the turing course :D

-----------------------------------
NikG
Sat Jun 24, 2006 2:41 pm


-----------------------------------
jeez. that tutorial right there beats the one in the turing walkthrugh. Simple and to the point. I acually somewhat understand what they are for and how to use them now!
Too bad im already done the turing course :D
Why too bad? Creating arrays is possible in almost all languages.  If you plan to continue programming, then array knowledge will help you in any language you learn next.

-----------------------------------
upthescale
Mon Jun 26, 2006 12:44 pm


-----------------------------------
Good game, liek the graphics

-----------------------------------
the_short1
Mon Jun 26, 2006 5:05 pm


-----------------------------------
The goods: very well commented code, i always like that..  good graphics..
the bads: well.. using turing 4.0.5 use Music.PlayFileReturn (song file) .. it will continue the game while playing the sound file..

+bits

-----------------------------------
Clayton
Mon Jun 26, 2006 9:16 pm


-----------------------------------
i have one question: Why so many PROCESSES?!?!?! using procedures would have made your life so much easier, next time try using procedures in place of processes

-----------------------------------
upthescale
Mon Jun 26, 2006 9:21 pm


-----------------------------------
use them for sound only dude, other than taht there a reck

-----------------------------------
Remm
Sat Jul 01, 2006 9:58 am


-----------------------------------
ok, this is a little late of a reply, but ive been in a very horrible resort for the past few days ( still there, on gas-powered internet  :D ) So:
@ NikG -= I guess you're right. Ive already started to look through VB and stuff. This site doesnt have a very big fan base for vb so  :?  been looking through other resoruces. I've looked over the thing and have a better overall understanding of arrays, but at the moment im still getting the megar stuff to work on vb  :D 
@the_short1 -= well commented? my teacher gave me a 62% in commenting. she wanted a comment at the start of every single procedure, process, if statement, loop, end loop, get statement, function, fork / decleration... well.. everything? anyone else think thats a little exessive? -.- 
@SuperFreak -= yes. many processes. But.. it runs fine, does it not? If you think you can make every single one of my processes, other than music, a procedure, and have them all running at same time, go right ahead. I have no idea how to do that, and my processes seem to be running near-flawlessly, compared to how they usually run.


oh, and dont forget to read the readMe, i think i attached it! :D

thanks for your imput!
