Basic player controls and aiming

This commit is contained in:
Haze Weathers 2024-08-21 21:02:35 -04:00
parent 56695d303e
commit f5999da412
114 changed files with 6611 additions and 2 deletions

View file

@ -0,0 +1,17 @@
@tool
extends Node2D
@export var x_length: float = 8.0
@export var y_length: float = 8.0
func _process(delta: float) -> void:
if Engine.is_editor_hint() and Engine.get_process_frames() % 10 == 0:
queue_redraw()
func _draw() -> void:
if Engine.is_editor_hint():
draw_line(Vector2.ZERO, Vector2(x_length, 0.0), Color.LIGHT_CORAL)
draw_line(Vector2.ZERO, Vector2(0.0, y_length), Color.LIGHT_GREEN)