globals.bmx 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. '===============================================================================
  2. ' Little Shooty Test Thing
  3. ' Code & Stuff by Richard Olpin ([email protected])
  4. '===============================================================================
  5. ' Constants
  6. '===============================================================================
  7. Const WIDTH=800,HEIGHT=600
  8. Const DEPTH=16,HERTZ=60
  9. '===============================================================================
  10. ' Global Vars
  11. '===============================================================================
  12. Global spawntimer=0
  13. Global sky, ay
  14. Global bg_layer_1
  15. Global bp1
  16. Global bx1
  17. Global sky_pos#=800
  18. Global scroll_speed#=2.0
  19. Const horizon = 200
  20. Global upd=0
  21. '===============================================================================
  22. ' Controls
  23. '===============================================================================
  24. ' Default key mappings for PS2 dualshock through USB adaptor
  25. '
  26. ' For a full game obviously this stuff would be configurable from an options
  27. ' screen, or at the very least read from a text file.
  28. '
  29. Const Joy_L = 15
  30. Const Joy_R = 13
  31. Const Joy_U = 12
  32. Const Joy_D = 14
  33. Const Joy_Fire1 = 2
  34. Const Joy_Fire2 = 3
  35. Const Joy_Fire3 = 1
  36. Const Joy_Fire4 = 0
  37. Const Joy_Start = 9
  38. Const Joy_Select = 8