SNIPER Game
Author |
Message |
mynameisbob
|
Posted: 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
|
|
|
Tony
|
Posted: 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 |
Tony's programming blog. DWITE - a programming contest. |
|
|
|
|
mynameisbob
|
Posted: 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
|
Posted: 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? |
Tony's programming blog. DWITE - a programming contest. |
|
|
|
|
mynameisbob
|
Posted: 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
|
Posted: 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
|
|
Tony's programming blog. DWITE - a programming contest. |
|
|
|
|
aside
|
Posted: 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
|
|
|
|
|
Sponsor Sponsor
|
|
|
|
|