massive work towards godot 4

This commit is contained in:
2023-02-01 04:43:50 -05:00
parent 42259a89ed
commit 5dac6ced93
484 changed files with 5935 additions and 5084 deletions

17
scripts/game.gd Normal file
View File

@@ -0,0 +1,17 @@
extends Camera2D
var speed = 2
func _process(_delta: float) -> void:
var camera_move_dir = Vector2(0,0)
if(Input.is_action_pressed("right")):
camera_move_dir += Vector2(speed,0)
if(Input.is_action_pressed("left")):
camera_move_dir -= Vector2(speed,0)
if(Input.is_action_pressed("up")):
camera_move_dir -= Vector2(0,speed)
if(Input.is_action_pressed("down")):
camera_move_dir += Vector2(0,speed)
global_translate(camera_move_dir)