Global.gd 1.0 KB

1234567891011121314151617181920212223242526
  1. extends Node2D
  2. # The direction at which this engine node should fire on
  3. # MAIN = The main engine shooting typically from the back of the ship (Propels the craft forward)
  4. # REVERSE = Reverse thrusters firing typically from the front of the ship (Propels the craft backward)
  5. # LEFT = This makes it appear as though the ship is being pushed to rotate left
  6. # RIGHT = This makes it appear as though the ship is being pushed to rotate right
  7. enum engine_dir {MAIN = 1, REVERSE = 2, LEFT = 3, RIGHT = 4}
  8. # Access the logging
  9. onready var logy = $Logger
  10. # Yellow or RED alerts for various systems
  11. enum alerts {NONE = 0, YELLOW = 1, RED = 2}
  12. # Directionals used based on 6 segment shields
  13. enum directionals {NONE = -1, FRONT = 0, BACK = 3, FRONT_LEFT = 2, FRONT_RIGHT = 1, BACK_LEFT = 4, BACK_RIGHT = 5}
  14. # Turret Mount types
  15. enum mount_type {NONE = 0, GUN = 1, LASER = 2, ANTI_MISSILE = 3}
  16. # Ship types
  17. enum ship_type {TRANSPORT = 1, CARGO = 2, WARSHIP = 3}
  18. # Planet type
  19. enum planet_type {NORMAL_EARTH=1, DRY_EARTH=2, WET_EARTH=3}