Computer Science Canada

Clicking to start

Author:  Tallguy [ Mon May 12, 2008 9:33 am ]
Post subject:  Clicking to start

We've all played that really annoying game where the zombie pops up at the end. Now try to remember that you have to click on the blue (or whatever color) to begin. I'm trying to duplicate it, but i failed.

Try my game, starting from lvl2 one has to click the blue dot to begin, but it wont because i include the filed to soon, but i don't know what else to do.

hope you can help:)

Author:  Tallguy [ Tue May 13, 2008 7:20 am ]
Post subject:  RE:Clicking to start

Anybody?? Plz??

Author:  petree08 [ Tue May 13, 2008 7:47 am ]
Post subject:  RE:Clicking to start

why do you have a procedure for every level,

if you are doing the exact same thing in each level you really only need one
proc lvlRun (LevelNumber: nat1)

Author:  Tallguy [ Tue May 13, 2008 8:09 am ]
Post subject:  RE:Clicking to start

i'm changing the vars for every lvl

Author:  petree08 [ Tue May 13, 2008 8:23 am ]
Post subject:  RE:Clicking to start

duh, that's why we have parameter passing for procedures,

example
code:

procedure Add_Nums (Num1, Num2 : nat1, var Sum :nat1)
Sum := Num1 + Num2
 
end Add_Nums

var Sum : nat1
var Num1, Num2 : nat1

put "Enter Num1"
get Num1
put  "Enter Num2"
get Num2

Add_Nums (Num1, Num2, Sum)

put "The sum of those numbers is ", Sum


the procedure can be used to add any two numbers.

Author:  Tallguy [ Tue May 13, 2008 8:28 am ]
Post subject:  RE:Clicking to start

can youy help me with the problem i posted?

Author:  petree08 [ Tue May 13, 2008 8:33 am ]
Post subject:  RE:Clicking to start

i think you should get a better understanding on the basics of programing before you start doing stuff like this (not that this is terribly hard)

Author:  Tallguy [ Tue May 13, 2008 11:11 am ]
Post subject:  RE:Clicking to start

hey man, i know the basics, i'm using procs 'cause i feel like it (that is basic programing) so just chill out dude

Author:  petree08 [ Tue May 13, 2008 11:40 am ]
Post subject:  RE:Clicking to start

The term chill is being missused here, I'm not flaming or anything , it's just the code for that game suggests that you don't have a very good handle on the basics, also coding a "click to start" section is relativly easy and someone with a good understanding wouldn't need to ask that.

Author:  Tallguy [ Thu May 15, 2008 7:32 am ]
Post subject:  RE:Clicking to start

would anyone else besides petree08 care to help me??

Author:  Tallguy [ Thu May 15, 2008 11:48 am ]
Post subject:  RE:Clicking to start

nerver mind ppl, i got it to work


: