Basic player controls and aiming
This commit is contained in:
parent
56695d303e
commit
f5999da412
114 changed files with 6611 additions and 2 deletions
17
scripts/debug_visualization/draw_basis.gd
Normal file
17
scripts/debug_visualization/draw_basis.gd
Normal 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)
|
Reference in a new issue