moveable
This commit is contained in:
parent
abb54d45ca
commit
6a9a99389c
8 changed files with 39 additions and 4 deletions
18
gmtk_2024/objects/BoxPushable_1.tscn
Normal file
18
gmtk_2024/objects/BoxPushable_1.tscn
Normal 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")
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue