Stannellc

AGK2 Tutorial SpaceShooter main.agc

Aug 27th, 2017
263
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. https://pastebin.com/aYEsL6L5
  2.  
  3. SetVirtualResolution( 768, 1024 ) // doesn't have to match the window
  4. //UseNewDefaultFonts( 1 )
  5.  
  6. playerx as float
  7. playery as float
  8. //lazerx as float = -100
  9. //lazery as float
  10. //enemyx as float
  11. //enemyy as float
  12. //enemy_direction = 4
  13. //score=0
  14. //stars as integer[50,2]
  15.  
  16. #include "Loader.agc"
  17. #include "PlayerMove.agc"
  18. //#include "Player_shoots.agc"
  19. //#include "enemy_move.agc"
  20. //#include "collision.agc"
  21. //#include "stars.agc"
  22. //#include "Text.agc"
  23. //#include "Sounds.agc"
  24.  
  25. Gosub loader
  26. //Gosub make_stars
  27. //Gosub Load_sounds
  28. //Gosub Load_Music
  29.  
  30.  
  31. do
  32.  
  33. Gosub PlayerMove
  34. // Gosub Move_stars
  35. // Gosub Show_score
  36.  
  37. // Gosub Player_shoots
  38. // Gosub Enemy_move
  39. // Gosub collision
  40.  
  41. Sync()
  42. loop
Advertisement
Add Comment
Please, Sign In to add comment