Advertisement
Guest User

Untitled

a guest
Sep 17th, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ScreenRes 1000, 800
  2. Dim figureX As Integer
  3. Dim figureY As Integer
  4.  
  5. figureX = 200
  6. figureY = 500
  7.  
  8. const KEY_ESC as string = chr(27)
  9. const KEY_CLOSE as string = chr(255) & "k"
  10. const KEY_LEFT as string = chr(255) & "K"
  11.  
  12.  
  13.  
  14. Do
  15.     Dim key As String
  16.     key = InKey()
  17.  
  18.     if key = KEY_ESC or key = KEY_CLOSE then exit do
  19.    
  20.     if key = KEY_LEFT then figureX -= 1
  21.  
  22.  
  23.     screenlock
  24.     cls
  25.   'line (figureX, figureY) - step(20, 20), 1, BF ist die schnellere Variante
  26.     line (figureX, figureY) - (figureX + 20, figureY + 20), 1, BF
  27.     screenunlock
  28.  
  29.     sleep 10
  30. Loop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement