level changes

This commit is contained in:
Booklordofthedings 2024-08-17 17:33:34 +02:00
parent 878db579bc
commit 7d3e6ccc2a
7 changed files with 43 additions and 12 deletions

View file

@ -8,7 +8,10 @@ radius = 16.0
height = 32.0
[node name="EnemyMover" type="CharacterBody2D"]
collision_layer = 2
collision_mask = 7
script = ExtResource("1_7kapi")
speed = 75
[node name="Sprite2D" type="Sprite2D" parent="."]
texture = ExtResource("1_ci3x0")

View file

@ -1,4 +1,4 @@
[gd_scene load_steps=4 format=3 uid="uid://snxpqx0ony7s"]
[gd_scene load_steps=5 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"]
@ -7,9 +7,13 @@
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 = 3
script = ExtResource("1_a6lhy")
jump_count = 1
jump_strength = 600
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
@ -17,3 +21,12 @@ 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")
[connection signal="body_entered" from="Hurtbox" to="." method="_on_hurtbox_body_entered"]