thanks for reading .
Code: Select all
InitSprite()
UsePNGImageDecoder()
InitKeyboard()
OpenWindow(0,0,0,1366,768,"Paul's program! Press Return To Exit!")
OpenWindowedScreen(WindowID(0),0,0,1366,768)
SetWindowColor(0,#Black)
ClearScreen(#Black)
x = -179
y = 400
pf = LoadImage(1,"plane.png")
Loopy:
StartDrawing(WindowOutput(0))
DrawText(10,10,"hello world")
DrawImage(pf,x,y)
x=x+10
If x >= 1366
x= -179
EndIf
StopDrawing()
FlipBuffers()
WindowEvent()
ExamineKeyboard()
If KeyboardPushed(#PB_Key_Return)
End
EndIf
If KeyboardPushed(#PB_Key_W)
y=y-10
EndIf
If KeyboardPushed(#PB_Key_S)
y=y+10
EndIf
Goto loopy