
-----------------------------------
doow
Tue Jan 20, 2009 8:22 pm

Desperate Help! Turing Project Grade 10
-----------------------------------
I have to create a program that is controlled by a joy stick, as of right now, I just want my "snake" to be controlled by the numbers 8,4,5, and 6.
So that I at least have a program that runs...then I'll worry about hooking up my joy stick.
I'm attempting to make the game snake, or at the very least, similar to it.
I'll post what I've got...
Did I mention I'm HORRIBLE at this?
Any help would be greatly appreciated.

This is what I've got...

setscreen ("graphics")
var KEY : string (1) 
var XPOS, YPOS : int := 300 
var XDIR, YDIR : int := 0 
var LOSE : int := 0 
var SCORE : int := 0 
var ss : int := 0 
var HARDNESS : int := 0 



put "Enter the level of difficulty you wish to play,"
put "    by entering a number between 1 and 5. " 
get HARDNESS   
if HARDNESS > 5 then 
HARDNESS := 5 
elsif HARDNESS 