Can someone tell me, what is wrong here ?
sync on
sync rate 80
hide mouse
title$="Alchemy Sign RPG"
fps=screen fps()
width=screen width()
height = screen height()
function CreateButton(x1, y2, String$)
text x1, y2, String$
endfunction
set display mode 640, 480, 32
set window title "Alchemy Sign RPG"
set window on
load image "logo.jpg", 1, 1
paste image 1,0,0
text 500,195, "New game"
text 500,210, "Options"
text 500,225, "Quit"
do
circle mousex(), mousey(), 4
sync
loop
wait key
If I don't use
function CreateButton(x1, y2, String$)
text x1, y2, String$
endfunction
Everything works, but if I add this part of code, program crashes after compilation... wtf ? ; /
The future belongs to those who believe in the beauty of their dreams
E. Roosevelt