
-----------------------------------
mynameisbob
Tue Jun 01, 2004 11:55 pm

SNIPER Game
-----------------------------------
This is my first game. I made it for a comp eng. project about a month ago.

-----------------------------------
Tony
Wed Jun 02, 2004 12:05 am


-----------------------------------
some points - it might be better if user could aim with the mouse rether then scroll with keyboard.

also, instead of

if killcount = 9 then
        Font.Draw ("9", 547, 40, font2, 42)

you should have used

        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

-----------------------------------
mynameisbob
Wed Jun 02, 2004 7:03 am


-----------------------------------
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
Wed Jun 02, 2004 12:32 pm


-----------------------------------
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? :?

-----------------------------------
mynameisbob
Wed Jun 02, 2004 2:18 pm


-----------------------------------
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
Wed Jun 02, 2004 5:16 pm


-----------------------------------
that's preaty cool.

for mouse, you just follow x/y values of the mouse

var x, y, b : int
loop
    Mouse.Where (x, y, b)
    Draw.FillOval (x, y, 5, 5, red)
end loop


-----------------------------------
aside
Thu Jun 03, 2004 2:56 pm


-----------------------------------
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
Thu Jun 03, 2004 4:17 pm


-----------------------------------
you cannot hide the mouse :roll:
