added moving platforms and "collectable" coins and death barrier
This commit is contained in:
17
Assets/World/Platforms/platform.tscn
Normal file
17
Assets/World/Platforms/platform.tscn
Normal file
@@ -0,0 +1,17 @@
|
||||
[gd_scene load_steps=3 format=3 uid="uid://bqb3ccnlh1t0s"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://c8wfwo1nixh7d" path="res://Assets/World/Grounds/Dirt.png" id="1_4guyj"]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_vncw8"]
|
||||
size = Vector2(452, 48)
|
||||
|
||||
[node name="Platform" type="AnimatableBody2D"]
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="."]
|
||||
scale = Vector2(0.2, 0.2)
|
||||
texture = ExtResource("1_4guyj")
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
position = Vector2(-11, 0)
|
||||
shape = SubResource("RectangleShape2D_vncw8")
|
||||
one_way_collision = true
|
20
Assets/World/kill_zone.tscn
Normal file
20
Assets/World/kill_zone.tscn
Normal file
@@ -0,0 +1,20 @@
|
||||
[gd_scene load_steps=3 format=3 uid="uid://cyumvt28wwf28"]
|
||||
|
||||
[ext_resource type="Script" path="res://Scripts/kill_zone.gd" id="1_vfalm"]
|
||||
|
||||
[sub_resource type="WorldBoundaryShape2D" id="WorldBoundaryShape2D_6667c"]
|
||||
|
||||
[node name="KillZone" type="Area2D"]
|
||||
collision_mask = 2
|
||||
script = ExtResource("1_vfalm")
|
||||
|
||||
[node name="Timer" type="Timer" parent="."]
|
||||
wait_time = 0.6
|
||||
one_shot = true
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
shape = SubResource("WorldBoundaryShape2D_6667c")
|
||||
debug_color = Color(1, 0.012597, 0.0137024, 0.42)
|
||||
|
||||
[connection signal="body_entered" from="." to="." method="_on_body_entered"]
|
||||
[connection signal="timeout" from="Timer" to="." method="_on_timer_timeout"]
|
Reference in New Issue
Block a user