Computer Science Canada

[FP] -FINAL GUNNER-

Author:  Remm [ Tue Jun 20, 2006 9:29 am ]
Post subject:  [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 Razz

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!

Author:  Hack.saw [ Tue Jun 20, 2006 9:38 am ]
Post subject: 

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)

Author:  Remm [ Tue Jun 20, 2006 9:40 am ]
Post subject: 

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.

Author:  Hack.saw [ Tue Jun 20, 2006 10:03 am ]
Post subject: 

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. Smile

Author:  Delos [ Tue Jun 20, 2006 10:19 am ]
Post subject: 

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].

Author:  Remm [ Tue Jun 20, 2006 1:29 pm ]
Post subject: 

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)

Author:  Mr. T [ Tue Jun 20, 2006 5:39 pm ]
Post subject:  Re: [FP] -FINAL GUNNER-

Remm wrote:
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.

Author:  Remm [ Wed Jun 21, 2006 7:04 am ]
Post subject: 

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.

Author:  Martin [ Fri Jun 23, 2006 2:07 am ]
Post subject: 

The quick array tutorial, just for you!

Instead of this:
code:
var x1, x2, x3, x4, x5 : int

Do this:
code:
var x : array 1 .. 5 of int


Instead of this:
code:
x1 := x3 + x5

Do this:
code:
x(1) := x(3) + x(5)


Instead of this:
code:
x1 := 5
x2 := 5
x3 := 5
x4 := 5
x5 := 5


Do this:
code:
for i : 1 ..5
    x(i) := 5
end for


And... you now have experienced the wonders of arrays. Arrays are simply groupings of variables.

Author:  Remm [ Fri Jun 23, 2006 6:41 am ]
Post subject: 

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 Very Happy

Author:  NikG [ Sat Jun 24, 2006 2:41 pm ]
Post subject: 

Remm wrote:
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 Very Happy

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.

Author:  upthescale [ Mon Jun 26, 2006 12:44 pm ]
Post subject: 

Good game, liek the graphics

Author:  the_short1 [ Mon Jun 26, 2006 5:05 pm ]
Post subject: 

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

Author:  Clayton [ Mon Jun 26, 2006 9:16 pm ]
Post subject: 

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

Author:  upthescale [ Mon Jun 26, 2006 9:21 pm ]
Post subject: 

use them for sound only dude, other than taht there a reck

Author:  Remm [ Sat Jul 01, 2006 9:58 am ]
Post subject: 

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 Very Happy ) 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 Confused 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 Very Happy
@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! Very Happy

thanks for your imput!


: