Computer Science Canada

SNIPER Game

Author:  mynameisbob [ 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.

Author:  Tony [ Wed Jun 02, 2004 12:05 am ]
Post 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

Author:  mynameisbob [ Wed Jun 02, 2004 7:03 am ]
Post 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?

Author:  Tony [ Wed Jun 02, 2004 12:32 pm ]
Post 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

Author:  mynameisbob [ Wed Jun 02, 2004 2:18 pm ]
Post 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?

Author:  Tony [ Wed Jun 02, 2004 5:16 pm ]
Post 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

Author:  aside [ Thu Jun 03, 2004 2:56 pm ]
Post 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)

Author:  Tony [ Thu Jun 03, 2004 4:17 pm ]
Post subject: 

you cannot hide the mouse Rolling Eyes


: