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

Username:   Password: 
 RegisterRegister   
 SNIPER Game
Index -> Programming, Turing -> Turing Submissions
View previous topic Printable versionDownload TopicRate TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
mynameisbob




PostPosted: Tue Jun 01, 2004 11:55 pm   Post subject: SNIPER Game

This is my first game. I made it for a comp eng. project about a month ago.
Sponsor
Sponsor
Sponsor
sponsor
Tony




PostPosted: Wed Jun 02, 2004 12:05 am   Post subject: (No subject)

some points - it might be better if user could aim with the mouse rether then scroll with keyboard.

also, instead of
code:

if killcount = 9 then
        Font.Draw ("9", 547, 40, font2, 42)

you should have used
code:

        Font.Draw (intstr(killcount), 547, 40, font2, 42)


I don't really approve of how terrorist locations are hardcoded, but the game is put together well and overall I like it

+30Bits
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
mynameisbob




PostPosted: Wed Jun 02, 2004 7:03 am   Post subject: (No subject)

well actually the real controls are not with the keys. This program was only half the project, the other half was making a joystick. Its a lot better with the joystick. And thanks for the tip a bout the FontDraw. Can u use int variables with Font.Draw?
Tony




PostPosted: Wed Jun 02, 2004 12:32 pm   Post subject: (No subject)

no, that's why you have to use intstr() to typecast the variable to string first.

do you mean you had to build your own joystick? Confused
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
mynameisbob




PostPosted: Wed Jun 02, 2004 2:18 pm   Post subject: (No subject)

yea I made a circuit board then the joystick. The code for the joystick is kind of like the code for the arrow keys so i used that for this version instead of the mouse. Anyways how would u make the picture follow the mouse arrow?
Tony




PostPosted: Wed Jun 02, 2004 5:16 pm   Post subject: (No subject)

that's preaty cool.

for mouse, you just follow x/y values of the mouse
code:

var x, y, b : int
loop
    Mouse.Where (x, y, b)
    Draw.FillOval (x, y, 5, 5, red)
end loop
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
aside




PostPosted: Thu Jun 03, 2004 2:56 pm   Post subject: (No subject)

is it possible to hide the mouse? I used Mouse.Hide before and somehow it didn't work (or weren't suppose to be used to this)
Tony




PostPosted: Thu Jun 03, 2004 4:17 pm   Post subject: (No subject)

you cannot hide the mouse Rolling Eyes
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
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  [ 8 Posts ]
Jump to:   


Style:  
Search: