GMTK-2024/gmtk_2024/objects/Player.tscn
2024-08-18 21:18:52 +02:00

41 lines
1.3 KiB
Text

[gd_scene load_steps=6 format=3 uid="uid://snxpqx0ony7s"]
[ext_resource type="Script" path="res://scripts/player_movement.gd" id="1_a6lhy"]
[ext_resource type="Texture2D" uid="uid://qcx482jc7pqr" path="res://textures/player.png" id="2_sscjv"]
[ext_resource type="Texture2D" uid="uid://bd7y5w6cfi5ly" path="res://textures/Eye Lase.png" id="3_yg3ur"]
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_jqi2f"]
radius = 9.0
height = 22.0
[sub_resource type="CircleShape2D" id="CircleShape2D_vxfel"]
radius = 12.0
[node name="Player" type="CharacterBody2D"]
collision_layer = 4
collision_mask = 19
script = ExtResource("1_a6lhy")
jump_strength = 600
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
shape = SubResource("CapsuleShape2D_jqi2f")
[node name="Sprite2D" type="Sprite2D" parent="."]
texture = ExtResource("2_sscjv")
[node name="Hurtbox" type="Area2D" parent="."]
collision_layer = 0
collision_mask = 2
[node name="CollisionShape2D" type="CollisionShape2D" parent="Hurtbox"]
shape = SubResource("CircleShape2D_vxfel")
[node name="data_link" type="Line2D" parent="."]
visible = false
texture_repeat = 2
points = PackedVector2Array(0, 0, 0, 0)
default_color = Color(0.298039, 1, 0.141176, 1)
texture = ExtResource("3_yg3ur")
texture_mode = 1
[connection signal="body_entered" from="Hurtbox" to="." method="_on_hurtbox_body_entered"]