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).
36 lines
1.2 KiB
Plaintext
36 lines
1.2 KiB
Plaintext
[gd_scene load_steps=6 format=3]
|
|
|
|
[ext_resource type="Texture2D" path="res://assets/game/vegetation/tree_canopy_left.png" id="1_left"]
|
|
[ext_resource type="Texture2D" path="res://assets/game/vegetation/tree_canopy_middle.png" id="2_middle"]
|
|
[ext_resource type="Texture2D" path="res://assets/game/vegetation/tree_canopy_right.png" id="3_right"]
|
|
[ext_resource type="Texture2D" path="res://assets/game/vegetation/tree_trunk.png" id="4_trunk"]
|
|
|
|
[sub_resource type="RectangleShape2D" id="Shape_trunk"]
|
|
size = Vector2(14, 18)
|
|
|
|
[node name="TreeSmall" type="StaticBody2D"]
|
|
collision_layer = 1
|
|
collision_mask = 0
|
|
|
|
[node name="CanopyLeft" type="Sprite2D" parent="."]
|
|
texture_filter = 1
|
|
position = Vector2(-18, -18)
|
|
texture = ExtResource("1_left")
|
|
|
|
[node name="CanopyMiddle" type="Sprite2D" parent="."]
|
|
texture_filter = 1
|
|
position = Vector2(0, -18)
|
|
texture = ExtResource("2_middle")
|
|
|
|
[node name="CanopyRight" type="Sprite2D" parent="."]
|
|
texture_filter = 1
|
|
position = Vector2(18, -18)
|
|
texture = ExtResource("3_right")
|
|
|
|
[node name="Trunk" type="Sprite2D" parent="."]
|
|
texture_filter = 1
|
|
texture = ExtResource("4_trunk")
|
|
|
|
[node name="Collision" type="CollisionShape2D" parent="."]
|
|
shape = SubResource("Shape_trunk")
|