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).
24 lines
707 B
Plaintext
24 lines
707 B
Plaintext
[gd_scene load_steps=5 format=3]
|
|
|
|
[ext_resource type="Texture2D" path="res://assets/game/tilesets/kenney_tiles_atlas.png" id="1_atlas"]
|
|
[ext_resource type="Script" path="res://scripts/key.gd" id="2_key"]
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_key"]
|
|
atlas = ExtResource("1_atlas")
|
|
region = Rect2(126, 18, 18, 18)
|
|
|
|
[sub_resource type="CircleShape2D" id="Shape_pickup"]
|
|
radius = 7.0
|
|
|
|
[node name="KeyGold" type="Area2D"]
|
|
collision_layer = 16
|
|
collision_mask = 2
|
|
script = ExtResource("2_key")
|
|
|
|
[node name="Sprite" type="Sprite2D" parent="."]
|
|
texture_filter = 1
|
|
texture = SubResource("AtlasTexture_key")
|
|
|
|
[node name="PickupArea" type="CollisionShape2D" parent="."]
|
|
shape = SubResource("Shape_pickup")
|