Started a Godot Project to remake Tailgunner.
This commit is contained in:
commit
9621323983
67 changed files with 976 additions and 0 deletions
11
scripts/player_controller.gd
Normal file
11
scripts/player_controller.gd
Normal file
|
@ -0,0 +1,11 @@
|
|||
@tool
|
||||
class_name PlayerController
|
||||
extends FlyerController
|
||||
|
||||
func _physics_process(delta: float) -> void:
|
||||
if not Engine.is_editor_hint():
|
||||
controlled_flyer.directionInput = Vector2(Input.get_axis("plane_left","plane_right"), Input.get_axis("plane_up","plane_down"))
|
||||
if InputMap.has_action("shoot_primary") and Input.is_action_just_pressed("shoot_primary"):
|
||||
controlled_flyer.shoot(1)
|
||||
if InputMap.has_action("shoot_secondary") and Input.is_action_just_pressed("shoot_secondary"):
|
||||
controlled_flyer.shoot(2)
|
Loading…
Add table
Add a link
Reference in a new issue