Add moving player and borders
This commit is contained in:
parent
ddbd53292c
commit
ffcaeccc2f
7 changed files with 61 additions and 63 deletions
31
scenes/Room.tscn
Normal file
31
scenes/Room.tscn
Normal file
|
@ -0,0 +1,31 @@
|
|||
[gd_scene load_steps=3 format=3 uid="uid://durhes43gex7a"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://c7bfiw54rvaq2" path="res://scenes/player_melodie.tscn" id="1_cl1wt"]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_18mp2"]
|
||||
size = Vector2(1280, 720)
|
||||
|
||||
[node name="Room" type="Node2D"]
|
||||
|
||||
[node name="Player_Melodie" parent="." instance=ExtResource("1_cl1wt")]
|
||||
position = Vector2(0, -9)
|
||||
|
||||
[node name="Camera2D" type="Camera2D" parent="."]
|
||||
|
||||
[node name="StaticBody2D" type="StaticBody2D" parent="."]
|
||||
|
||||
[node name="Bottom Wall" type="CollisionShape2D" parent="StaticBody2D"]
|
||||
position = Vector2(3, 721)
|
||||
shape = SubResource("RectangleShape2D_18mp2")
|
||||
|
||||
[node name="Top Wall" type="CollisionShape2D" parent="StaticBody2D"]
|
||||
position = Vector2(0, -719)
|
||||
shape = SubResource("RectangleShape2D_18mp2")
|
||||
|
||||
[node name="Left Wall" type="CollisionShape2D" parent="StaticBody2D"]
|
||||
position = Vector2(-1278, -2)
|
||||
shape = SubResource("RectangleShape2D_18mp2")
|
||||
|
||||
[node name="Right Wall" type="CollisionShape2D" parent="StaticBody2D"]
|
||||
position = Vector2(1280, -4)
|
||||
shape = SubResource("RectangleShape2D_18mp2")
|
Loading…
Add table
Add a link
Reference in a new issue