Initial commit
This commit is contained in:
commit
1514fe991b
675 changed files with 6030 additions and 0 deletions
29
objects/player.tscn
Normal file
29
objects/player.tscn
Normal file
|
@ -0,0 +1,29 @@
|
|||
[gd_scene load_steps=4 format=3 uid="uid://26601maon1a3"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://4cn5k0vmbjsq" path="res://sprites/character.png" id="1_ro4sv"]
|
||||
[ext_resource type="Script" path="res://scripts/player.gd" id="2_e1n6a"]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_po4nb"]
|
||||
size = Vector2(12, 12)
|
||||
|
||||
[node name="Player" type="Area2D"]
|
||||
texture_filter = 1
|
||||
script = ExtResource("2_e1n6a")
|
||||
|
||||
[node name="RayCastDown" type="RayCast2D" parent="."]
|
||||
target_position = Vector2(0, 15)
|
||||
|
||||
[node name="RayCastUp" type="RayCast2D" parent="."]
|
||||
target_position = Vector2(0, -15)
|
||||
|
||||
[node name="RayCastRight" type="RayCast2D" parent="."]
|
||||
target_position = Vector2(15, 0)
|
||||
|
||||
[node name="RayCastLeft" type="RayCast2D" parent="."]
|
||||
target_position = Vector2(-15, 0)
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
shape = SubResource("RectangleShape2D_po4nb")
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="."]
|
||||
texture = ExtResource("1_ro4sv")
|
Loading…
Add table
Add a link
Reference in a new issue