adding physics object statue

This commit is contained in:
2023-01-30 17:52:27 -05:00
parent 73120c4f35
commit d3dcbc153a
14 changed files with 652 additions and 401 deletions

View File

@@ -7,9 +7,13 @@ const Player = preload("res://Characters/test_player/test_player.tscn")
# Called when the node enters the scene tree for the first time.
func _ready():
var level_1 = Level1.instantiate()
var spawn_location = level_1.get_node("PlayerSpawnLocation")
spawn_location.set_visible(false)
manager.add_child(level_1)
var new_player = Player.instantiate()
manager.add_child(new_player)
new_player.set_position(spawn_location.get_position())

View File

@@ -0,0 +1,11 @@
[gd_scene load_steps=2 format=3 uid="uid://bfv4b6j4eunqj"]
[ext_resource type="Texture2D" uid="uid://cgtkkroa583fo" path="res://TileSets/Stuff.png" id="1_3afh2"]
[node name="PlayerSpawnLocation" type="Node2D"]
[node name="Sprite2D" type="Sprite2D" parent="."]
scale = Vector2(3, 3)
texture = ExtResource("1_3afh2")
region_enabled = true
region_rect = Rect2(0, 42, 5, 6)