diff options
| author | Anson Bridges <bridges.anson@gmail.com> | 2025-08-19 12:38:02 -0700 |
|---|---|---|
| committer | Anson Bridges <bridges.anson@gmail.com> | 2025-08-19 12:38:02 -0700 |
| commit | 255fbf19cc9499ef384d41f68515da5e49e8a3ce (patch) | |
| tree | 13c838229198383b24644f613787e34842ea7ab2 /scripts/Plane.gd | |
| parent | f087c6a98b1da55525a6e3c1d7c82477f82eb5cd (diff) | |
added menus, reworking GC client architecture
Diffstat (limited to 'scripts/Plane.gd')
| -rw-r--r-- | scripts/Plane.gd | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/scripts/Plane.gd b/scripts/Plane.gd index 62ffc43..6889e31 100644 --- a/scripts/Plane.gd +++ b/scripts/Plane.gd @@ -1,22 +1,25 @@ extends Area -var starting_altitude:int = 0 # initial altitude for the turn, determines number of actions -var altitude:int = 0 # 0, 1, or 2 -var pos_x:int -var pos_y:int +var starting_altitude: int = 0 # initial altitude for the turn, determines number of actions +var altitude: int = 0 # 0, 1, or 2 +var pos_x: int +var pos_y: int onready var meshes = [$Fuselage, $Cone, $Wings, $Tail] # bearings: E, NE, NW, W, SW, SE const bearings = [ [0,1] , [-1, 0], [-1, -1], [0, -1], [1, 0], [1, 1] ] -var bearing:int = 0 # index of above list of potential bearings +var bearing: int = 0 # index of above list of potential bearings var destination_num: int # for display purposes only var destination_col: Color # for display purposes only +var destination_name: String # for display purposes var destination_id: int # determines above ^ var rotation_tween: Tween = null +var actions: Array = [] + var plane_material func _ready(): @@ -25,9 +28,7 @@ func _ready(): mesh.set_surface_material(0, plane_material) var new_col = Color(randf(), randf(), randf() ) - print(new_col) set_color(new_col) - func set_color(color: Color): plane_material.set_albedo(color) |
