9dffacd938
Player: move/jump (Space), test flight (F, debug builds only). Key: pickup, hold S to aim with live trajectory preview, release to throw, W to warp to the thrown key. Spring bounce. Spikes deal damage. 3-heart health, Z consumes a heal item for +1 heart and a 5s shield. HUD with hearts and item count. Death screen with fade-to-black and restart. Hidden passages. Assets: Kenney Pixel Platformer (CC0).
21 lines
648 B
Plaintext
21 lines
648 B
Plaintext
[gd_scene load_steps=4 format=3]
|
|
|
|
[ext_resource type="Texture2D" path="res://assets/game/obstacles/spikes_double.png" id="1_texture"]
|
|
[ext_resource type="Script" path="res://scripts/hazard.gd" id="2_hazard"]
|
|
|
|
[sub_resource type="RectangleShape2D" id="Shape_spikes"]
|
|
size = Vector2(16, 8)
|
|
|
|
[node name="SpikesDouble" type="Area2D" groups=["hazard"]]
|
|
collision_layer = 4
|
|
collision_mask = 2
|
|
script = ExtResource("2_hazard")
|
|
|
|
[node name="Sprite" type="Sprite2D" parent="."]
|
|
texture_filter = 1
|
|
texture = ExtResource("1_texture")
|
|
|
|
[node name="DetectionArea" type="CollisionShape2D" parent="."]
|
|
position = Vector2(0, 4)
|
|
shape = SubResource("Shape_spikes")
|