Advertisement
Guest User

Untitled

a guest
Jul 11th, 2017
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #Include "windows.bi"
  2. #Include "test.bi"
  3.  
  4.  
  5. ScreenRes 800, 600, 32, 2
  6. '==============================================
  7. 'VARIABLES
  8. '==============================================
  9. DIM Background AS ANY PTR
  10. DIM mysprite    AS ANY PTR
  11. DIM x AS INTEGER, mx AS INTEGER, my AS INTEGER
  12. '==============================================
  13. 'FUNCTIONS
  14. '==============================================
  15.  
  16. '==============================================
  17. 'SUBS
  18. '==============================================
  19. DECLARE SUB testi ()
  20.  
  21.  
  22.  
  23.  
  24. mysprite = IMAGECREATE(128, 128)
  25.  
  26. BLOAD "test.bmp", mysprite
  27.  
  28. 'Schleife
  29. Do
  30.     x = x + 1
  31.    
  32.     GETMOUSE mx, my
  33.    
  34.  
  35.     PUT(x, 100), mysprite, PSET
  36.     PUT(mx, my), mysprite, PSET
  37.  
  38.     If x > 500 Then testi()
  39.    
  40.     blub ()
  41.    
  42.     SLEEP 1
  43.    
  44.    
  45.    
  46.     SCREENSYNC 
  47.     Cls
  48.  
  49. Loop Until InKey = Chr(27)
  50.  
  51. Sub testi ()
  52.    
  53.     LOCATE 30, 20
  54.     Print "Hallo"
  55.    
  56.    
  57.    
  58. End Sub
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65. ImageDestroy mysprite
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement