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).
65 lines
1.9 KiB
Plaintext
65 lines
1.9 KiB
Plaintext
[gd_scene load_steps=6 format=3]
|
|
|
|
[ext_resource type="Texture2D" path="res://assets/game/tilesets/kenney_tiles_atlas.png" id="1_atlas"]
|
|
[ext_resource type="Texture2D" path="res://assets/game/collectibles/coin_gold_round.png" id="2_coin"]
|
|
[ext_resource type="Script" path="res://scripts/hud.gd" id="3_hud"]
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_heart_full"]
|
|
atlas = ExtResource("1_atlas")
|
|
region = Rect2(72, 36, 18, 18)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_heart_empty"]
|
|
atlas = ExtResource("1_atlas")
|
|
region = Rect2(108, 36, 18, 18)
|
|
|
|
[node name="HUD" type="CanvasLayer"]
|
|
script = ExtResource("3_hud")
|
|
full_heart_texture = SubResource("AtlasTexture_heart_full")
|
|
empty_heart_texture = SubResource("AtlasTexture_heart_empty")
|
|
|
|
[node name="Heart1" type="TextureRect" parent="."]
|
|
offset_left = 8.0
|
|
offset_top = 6.0
|
|
offset_right = 26.0
|
|
offset_bottom = 24.0
|
|
texture = SubResource("AtlasTexture_heart_full")
|
|
|
|
[node name="Heart2" type="TextureRect" parent="."]
|
|
offset_left = 28.0
|
|
offset_top = 6.0
|
|
offset_right = 46.0
|
|
offset_bottom = 24.0
|
|
texture = SubResource("AtlasTexture_heart_full")
|
|
|
|
[node name="Heart3" type="TextureRect" parent="."]
|
|
offset_left = 48.0
|
|
offset_top = 6.0
|
|
offset_right = 66.0
|
|
offset_bottom = 24.0
|
|
texture = SubResource("AtlasTexture_heart_full")
|
|
|
|
[node name="CoinIcon" type="TextureRect" parent="."]
|
|
offset_left = 9.0
|
|
offset_top = 27.0
|
|
offset_right = 27.0
|
|
offset_bottom = 45.0
|
|
texture = ExtResource("2_coin")
|
|
|
|
[node name="CountLabel" type="Label" parent="."]
|
|
offset_left = 30.0
|
|
offset_top = 26.0
|
|
offset_right = 110.0
|
|
offset_bottom = 46.0
|
|
theme_override_colors/font_color = Color(1, 1, 1, 1)
|
|
theme_override_font_sizes/font_size = 12
|
|
text = "x0"
|
|
|
|
[node name="ShieldLabel" type="Label" parent="."]
|
|
offset_left = 8.0
|
|
offset_top = 46.0
|
|
offset_right = 160.0
|
|
offset_bottom = 66.0
|
|
theme_override_colors/font_color = Color(0.55, 0.9, 1, 1)
|
|
theme_override_font_sizes/font_size = 12
|
|
text = ""
|