This commit is contained in:
Booklordofthedings 2024-08-18 11:02:15 +02:00
parent abb54d45ca
commit 6a9a99389c
8 changed files with 39 additions and 4 deletions

View file

@ -0,0 +1,18 @@
[gd_scene load_steps=4 format=3 uid="uid://d17jpcgayfg6i"]
[ext_resource type="Texture2D" uid="uid://buqgl7x10et1f" path="res://temp_assets/img.png" id="1_ocrks"]
[ext_resource type="Script" path="res://scripts/pushable.gd" id="1_tf1fy"]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_legx4"]
size = Vector2(34, 32)
[node name="BoxPushable1" type="CharacterBody2D"]
collision_layer = 16
collision_mask = 5
script = ExtResource("1_tf1fy")
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
shape = SubResource("RectangleShape2D_legx4")
[node name="Sprite2D" type="Sprite2D" parent="."]
texture = ExtResource("1_ocrks")

View file

@ -9,7 +9,7 @@ height = 32.0
[node name="EnemyMover" type="CharacterBody2D"]
collision_layer = 2
collision_mask = 7
collision_mask = 23
script = ExtResource("1_7kapi")
speed = 75

View file

@ -12,7 +12,7 @@ radius = 12.0
[node name="Player" type="CharacterBody2D"]
collision_layer = 4
collision_mask = 3
collision_mask = 19
script = ExtResource("1_a6lhy")
jump_strength = 600