Code : Tout sélectionner
InitSprite()
InitMouse()
InitKeyboard()
OpenScreen(800,600,16,"test")
x.l = MouseX()
y.l = MouseY()
LoadSprite(1,"c:\wizard\icnormal.bmp")
Repeat
ExamineKeyboard()
ExamineMouse()
StartDrawing(ScreenOutput())
;BackColor(RGB(170,150,0))
Box(0,0,800,600,RGB(170,150,0))
StopDrawing()
DisplaySprite(1,MouseX(),MouseY())
FlipBuffers()
Until KeyboardPushed(#PB_Key_Escape)
