
-----------------------------------
upthescale
Thu May 25, 2006 8:00 pm

Defend Your Computer
-----------------------------------
Not a bad game at all, quite fun,and good graphics!

i learned some new things to:
1-At the top it will say your name, and your health...you health will decrease
2I learned the function Math.DistancePointLine...not to hard
3I got Window.Close to work...

to play, you must click on the targets, you may have to click on them once, twice or three times depending on how strong they are...(I set a randint of hitcounts)
You can get head shots, or body shots. To throw a bomb and kill them all, you must hit enter, but you only have 3 so use them wisely!
get 200 to win, 0 to lose
have fun!


*Edit-  game is now updated

-----------------------------------
TheOneTrueGod
Thu May 25, 2006 8:08 pm


-----------------------------------
Uh... All that happens is the "bomb" rolls across the screen, kills everything, and once it gets to the right hand side of the screen it says I win.  Not to mention the fact that I tried to hit the enemies before the bomb got there, and they didn't get hit...

-----------------------------------
upthescale
Thu May 25, 2006 8:55 pm


-----------------------------------
WOPS SORRY ...while i was testing the winning section, i fer got to change


if score >=12 then
%Code
end if


to 

if score >=200then
%Code
end if

it is now updated

-----------------------------------
MysticVegeta
Fri May 26, 2006 2:06 pm


-----------------------------------
hey, cool game, nice graphics. Really liked playing it :)

-----------------------------------
Vertico
Fri May 26, 2006 6:03 pm


-----------------------------------
it was fairly interesting  :clap: i give it two thumbs up   8-)

-----------------------------------
upthescale
Fri May 26, 2006 9:42 pm


-----------------------------------
thanks guys

-----------------------------------

Sat May 27, 2006 8:18 am


-----------------------------------
All you have to do now is add a command, each time your computer gets hit, it deletes a random file on your hard drive =)

-----------------------------------
Darkmantis
Sat May 27, 2006 8:44 am


-----------------------------------
All you have to do now is add a command, each time your computer gets hit, it deletes a random file on your hard drive =) lmao, nice.

-----------------------------------
upthescale
Sat May 27, 2006 2:47 pm


-----------------------------------
even if i knew how to do that i still wudnt but good thinking lol

-----------------------------------

Sat May 27, 2006 5:51 pm

Hehe
-----------------------------------
Here is some code that lists all the files in your directory of choice:


% The "DirectoryListing" program.
var winID := Window.Open ("graphics:0;0")
var dir : string
setscreen ("text")
put "Enter a directory ('.' for current, '..' for back): " ..
get dir : *
put ""
var streamNumber := Dir.Open (dir)
var num : int
var fileName : string
var q : char
assert streamNumber > 0

for i : 1 .. streamNumber
    fileName := Dir.Get (streamNumber)
    put fileName
    exit when fileName = ""
end for

Dir.Close (streamNumber)

put "Press any key to exit " ..
Input.Pause
Window.Close (winID)
return


Look up on File.Delete if you wish to delete a random file. Possibly associate the File with a number, and count the numbers, then use Rand.Int to randomly select 1 of all the numbers, then File.Delete(fileName)!

-----------------------------------
jamonathin
Sun May 28, 2006 10:55 am

Re: Hehe
-----------------------------------

Look up on File.Delete if you wish to delete a random file. Possibly associate the File with a number, and count the numbers, then use Rand.Int to randomly select 1 of all the numbers, then File.Delete(fileName)!

 [url=http://compsci.ca/v2/viewtopic.php?t=256]eh hem 

-----------------------------------

Mon May 29, 2006 3:02 pm


-----------------------------------
Hey I am just saying it's possible, and I didn't tell him how to use File.Delete or anything  :twisted:

-----------------------------------
BenLi
Mon May 29, 2006 4:11 pm


-----------------------------------
hey i don't think your dir listing prog works, it keeps returning assert false

-----------------------------------
upthescale
Mon May 29, 2006 4:15 pm


-----------------------------------
File.Delete("Target.t")

so w/e the filename is u put it there right? to delre it?

-----------------------------------

Mon May 29, 2006 7:47 pm


-----------------------------------
Yeah, it deletes whatever the directory is. But it doesn't delete the folder. So let's say this:


File.Delete("c:/program files/turing/turing_files.ini") 

