var fnt1 := Font.New ("Ariel:18x12")
var spd := 0
var sdp := 5
var x := maxx div 2
var y := maxy div 2
var stp := 0
var menuB := 1
var x1 := 0
var y1 := 0
var x2 := 0
var y2 := 0
var pst := 1
var clr := 0
View.Set ("offscreenonly")
var chars : array char of boolean
loop
Input.KeyDown (chars)
if stp = 8 then
if pst = 1 then
if chars (KEY_DOWN_ARROW) then
if y1 > 0 then
cls
y1 := y1 - 1
View.Update
delay (10)
end if
end if
if chars (KEY_UP_ARROW) then
if y1 < maxy then
cls
y1 := y1 + 1
View.Update
delay (10)
end if
end if
if chars (KEY_RIGHT_ARROW) then
if x1 < maxx then
cls
x1 := x1 + 1
View.Update
delay (10)
end if
end if
if chars (KEY_LEFT_ARROW) then
if x1 > 0 then
cls
x1 := x1 - 1
View.Update
delay (10)
end if
end if
if chars (KEY_ENTER) then
cls
pst := 2
delay (250)
end if
Draw.FillBox (x1, y1, x1 + 2, y1 + 2, black)
View.Update
elsif pst = 2 then
if chars (KEY_DOWN_ARROW) then
if y2 > 0 then
cls
y2 := y2 - 1
View.Update
delay (10)
end if
end if
if chars (KEY_UP_ARROW) then
if y2 < maxy then
cls
y2 := y2 + 1
View.Update
delay (10)
end if
end if
if chars (KEY_RIGHT_ARROW) then
if x2 < maxx then
cls
x2 := x2 + 1
View.Update
delay (10)
end if
end if
if chars (KEY_LEFT_ARROW) then
if x2 > 0 then
cls
x2 := x2 - 1
View.Update
delay (10)
end if
end if
if chars (KEY_ENTER) then
cls
pst := 3
delay (250)
end if
Draw.FillBox (x1, y1, x1 + 2, y1 + 2, black)
Draw.FillBox (x2, y2, x2 - 2, y2 - 2, black)
View.Update
elsif pst = 3 then
Draw.FillBox (x1, y1, x2, y2, grey)
if chars (KEY_ENTER) then
Draw.FillBox (x1, y1, x2, y2, grey)
Font.Draw (("Draw.FillBox (" + intstr (x1) + "," + intstr (y1) + "," + intstr (x2) + "," + intstr (y2) + ",black)"), 50, y, fnt1, black)
View.Update
delay (10000)
stp := 1
pst := 1
cls
View.Update
end if
View.Update
end if
elsif stp = 7 then
if chars (KEY_DOWN_ARROW) then
if clr > 0 then
clr := clr - 1
View.Update
delay (250)
end if
end if
if chars (KEY_UP_ARROW) then
if clr < 255 then
clr := clr + 1
View.Update
delay (250)
end if
end if
if chars (KEY_ENTER) then
cls
Draw.FillBox (0, 0, maxx, maxy, clr)
Font.Draw (("Draw.FillBox (0,0,maxx,maxy," + intstr (clr) + ")"), 50, y, fnt1, black)
View.Update
delay (10000)
cls
stp := 1
clr := 0
end if
Draw.FillBox (0, 0, maxx, maxy, clr)
View.Update
elsif stp = 6 then
cls
put ("Welcome to copthesaint's Position Editor.")
put ("Use the Up, Down, Right, Left keys on your keyboard to move the Pointer.")
put ("If you have found the First Position of your Box simply press enter and repeat step 1.")
put ("If you have found the Second Position of your Box simply press enter and watch as your box appears on the screen.")
put ("Press enter a thrid time and the code will appear on the screen.")
put ("Enjoy!")
put ("")
put ("Press Enter to START")
View.Update
if chars (KEY_ENTER) then
delay (50)
cls
stp := 8
delay (250)
end if
elsif stp = 5 then
cls
put ("Welcome to copthesaint's Color Finder.")
put ("Use the Up and Down keys on your keyboard to change the color.")
put ("If you have found the color you were looking for simply press enter and the program will show the code in the middle of the screen.")
put ("Enjoy!")
put ("")
put ("Press Enter to START")
View.Update
if chars (KEY_ENTER) then
delay (50)
cls
stp := 7
delay (250)
end if
elsif stp = 4 then
cls
put ("Welcome to copthesaint's Sound Finder.")
put ("Use the Up and Down keys on your keyboard to change how low or high the note is.")
put ("Use the Right and Left keys on your keyboard to change how long the sound is.")
put ("If you have found the sound you were looking for simply press enter and the program will show the code in the middle of the screen.")
put ("Enjoy!")
put ("")
put ("Press Enter to START")
View.Update
if chars (KEY_ENTER) then
delay (50)
cls
stp := 2
delay (250)
end if
elsif stp = 2 then
Music.SoundOff
if chars (KEY_ENTER) then
Font.Draw (("Music.Sound (" + intstr (spd) + "),(" + intstr (sdp) + ")"), 50, y, fnt1, black)
View.Update
delay (7000)
stp := 1
end if
if chars (KEY_DOWN_ARROW) then
if spd > 0 then
spd := spd - 5
stp := 3
delay (50)
end if
end if
if chars (KEY_UP_ARROW) then
if spd < 5500 then
spd := spd + 5
stp := 3
delay (50)
end if
end if
if chars (KEY_RIGHT_ARROW) then
if sdp < 5500 then
sdp := sdp + 1
stp := 3
delay (50)
end if
end if
if chars (KEY_LEFT_ARROW) then
if sdp > 0 then
sdp := sdp - 1
stp := 3
delay (50)
end if
end if
delay (sdp)
View.Update
cls
elsif stp = 3 then
Music.Sound (spd, sdp)
View.Update
cls
delay (sdp)
stp := 2
elsif stp = 0 then
cls
put ("Welcome to Copthesaint's Turing Helper.")
put ("I hope this program helps you.")
put ("Enjoy!")
put ("")
put ("Press Enter to START")
View.Update
if chars (KEY_ENTER) then
delay (50)
cls
stp := 1
delay (250)
end if
elsif stp = 1 then
if chars (KEY_DOWN_ARROW) then
if menuB < 4 then
menuB += 1
delay (250)
cls
end if
end if
if chars (KEY_UP_ARROW) then
if menuB > 0 then
menuB -= 1
delay (250)
cls
end if
end if
if menuB = 1 then
if chars (KEY_ENTER) then
delay (50)
cls
stp := 4
delay (250)
end if
Font.Draw ("Copthesaints Helper Programs", 50, 340, fnt1, black)
Font.Draw ("Sound Finder", 150, 300, fnt1, black)
Font.Draw ("Color Finder", 150, 275, fnt1, black)
Font.Draw ("Position Editor", 150, 250, fnt1, black)
Draw.FillBox (125, 300, 150, 318, black)
View.Update
end if
if menuB = 2 then
if chars (KEY_ENTER) then
delay (50)
cls
stp := 5
delay (250)
end if
Font.Draw ("Copthesaints Helper Programs", 50, 340, fnt1, black)
Font.Draw ("Sound Finder", 150, 300, fnt1, black)
Font.Draw ("Color Finder", 150, 275, fnt1, black)
Font.Draw ("Position Editor", 150, 250, fnt1, black)
Draw.FillBox (125, 275, 150, 293, black)
View.Update
end if
if menuB = 3 then
if chars (KEY_ENTER) then
delay (50)
cls
stp := 6
delay (250)
end if
Font.Draw ("Copthesaints Helper Programs", 50, 340, fnt1, black)
Font.Draw ("Sound Finder", 150, 300, fnt1, black)
Font.Draw ("Color Finder", 150, 275, fnt1, black)
Font.Draw ("Position Editor", 150, 250, fnt1, black)
Draw.FillBox (125, 250, 150, 268, black)
View.Update
end if
end if
end loop |