Add moving player and borders
This commit is contained in:
parent
ddbd53292c
commit
ffcaeccc2f
7 changed files with 61 additions and 63 deletions
17
scenes/player_melodie.tscn
Normal file
17
scenes/player_melodie.tscn
Normal file
|
@ -0,0 +1,17 @@
|
|||
[gd_scene load_steps=4 format=3 uid="uid://c7bfiw54rvaq2"]
|
||||
|
||||
[ext_resource type="Script" path="res://scripts/player_control.gd" id="1_7sg4g"]
|
||||
[ext_resource type="Texture2D" uid="uid://b4viqupj5q0je" path="res://ressources/images/icon.svg" id="1_w50ia"]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_trcma"]
|
||||
size = Vector2(122, 128)
|
||||
|
||||
[node name="Player_Melodie" type="CharacterBody2D"]
|
||||
script = ExtResource("1_7sg4g")
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="."]
|
||||
texture = ExtResource("1_w50ia")
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
position = Vector2(-1, 0)
|
||||
shape = SubResource("RectangleShape2D_trcma")
|
Loading…
Add table
Add a link
Reference in a new issue