Made very basic graphics test scene

This commit is contained in:
cblech
2024-10-27 21:31:14 +01:00
parent 6090e7b17b
commit ea20332b4f
55 changed files with 998 additions and 1 deletions
+13
View File
@@ -0,0 +1,13 @@
extends Camera2D
@export var multiplier = 1.0
@export var followNode: Node2D
func _ready() -> void:
pass
func _process(delta: float) -> void:
transform.origin.x = followNode.transform.origin.x
transform.origin.y = followNode.transform.origin.y
+20
View File
@@ -0,0 +1,20 @@
extends Node2D
@export var speed: float = 100.0
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
pass # Replace with function body.
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta: float) -> void:
if(Input.is_action_pressed("move_right")):
position.x += speed * delta
if(Input.is_action_pressed("move_left")):
position.x -= speed * delta
if(Input.is_action_pressed("move_up")):
position.y -= speed * delta
if(Input.is_action_pressed("move_down")):
position.y += speed * delta
pass