Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Clicking to start
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Tallguy




PostPosted: 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:)



Game.zip
 Description:

Download
 Filename:  Game.zip
 Filesize:  986.69 KB
 Downloaded:  303 Time(s)

Sponsor
Sponsor
Sponsor
sponsor
Tallguy




PostPosted: Tue May 13, 2008 7:20 am   Post subject: RE:Clicking to start

Anybody?? Plz??
petree08




PostPosted: 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)
Tallguy




PostPosted: Tue May 13, 2008 8:09 am   Post subject: RE:Clicking to start

i'm changing the vars for every lvl
petree08




PostPosted: 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.
Tallguy




PostPosted: Tue May 13, 2008 8:28 am   Post subject: RE:Clicking to start

can youy help me with the problem i posted?
petree08




PostPosted: 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)
Tallguy




PostPosted: 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
Sponsor
Sponsor
Sponsor
sponsor
petree08




PostPosted: 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.
Tallguy




PostPosted: Thu May 15, 2008 7:32 am   Post subject: RE:Clicking to start

would anyone else besides petree08 care to help me??
Tallguy




PostPosted: Thu May 15, 2008 11:48 am   Post subject: RE:Clicking to start

nerver mind ppl, i got it to work
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 11 Posts ]
Jump to:   


Style:  
Search: