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

Username:   Password: 
 RegisterRegister   
 another game by me. just a target one
Index -> Programming, Turing -> Turing Submissions
View previous topic Printable versionDownload TopicRate TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
white_dragon




PostPosted: Sat Feb 07, 2004 5:16 pm   Post subject: another game by me. just a target one

here's another game. tis one is even more screwed over. sometimes when it draws a dot, it goes off screen.
also, the cursor can go off the screen. i'm not sure how to make a boundary. can someone help me?



Target.t
 Description:

Download
 Filename:  Target.t
 Filesize:  4.74 KB
 Downloaded:  298 Time(s)

Sponsor
Sponsor
Sponsor
sponsor
Maverick




PostPosted: Sat Feb 07, 2004 5:32 pm   Post subject: (No subject)

Have u even made a shooting function?
white_dragon




PostPosted: Sat Feb 07, 2004 5:33 pm   Post subject: (No subject)

sry. arrow keys move around, then space bar.
Cervantes




PostPosted: Sat Feb 07, 2004 5:41 pm   Post subject: (No subject)

Input.KeyDown

that's really neat that you were able to make a semi-working game without Input.KeyDown though.
white_dragon




PostPosted: Sat Feb 07, 2004 5:43 pm   Post subject: (No subject)

oh. lol da other guy said tat before Embarassed . sry if i'm gettin stupid but i don't really know how 2 use it.
Cervantes




PostPosted: Sat Feb 07, 2004 6:29 pm   Post subject: (No subject)

its not hard to use

part one: the variable for the keys

code:
var chars : array char of boolean


part two: Input.KeyDown

code:

var chars : array char of boolean
loop
   Input.KeyDown (chars)
end loop


part three: if statements

code:

var chars : array char of boolean
loop
   Input.KeyDown (chars)
   if chars (KEY_UP_ARROW) then
      x := x + 1
   end if
end loop


the keys that you need

KEY_UP_ARROW
KEY_DOWN_ARROW
KEY_LEFT_ARROW
KEY_RIGHT_ARROW
KEY_CTRL

the complete list of keys for Input.KeyDown is found in the Help file under
content --> predefined modules --> Keyboard
white_dragon




PostPosted: Mon Feb 09, 2004 4:37 pm   Post subject: (No subject)

tks! Very Happy Very Happy Very Happy it really helped me!
Display posts from previous:   
   Index -> Programming, Turing -> Turing Submissions
View previous topic Tell A FriendPrintable versionDownload TopicRate TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 7 Posts ]
Jump to:   


Style:  
Search: