Files
sijcdusmode/scenes/player.tscn
T
sijcdu 9dffacd938 Initial commit: Godot 4.7 pixel platformer prototype
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).
2026-10-07 20:32:42 +08:00

30 lines
987 B
Plaintext

[gd_scene format=3 uid="uid://c1u8k6ny02t4y"]
[ext_resource type="Texture2D" uid="uid://cgkn1cd8uhunb" path="res://assets/game/characters/player_green_idle.png" id="1_character"]
[ext_resource type="Script" uid="uid://b0gltif7vthau" path="res://scripts/player_controller.gd" id="1_g2els"]
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_player"]
radius = 5.0
height = 17.0
[node name="Player" type="CharacterBody2D" unique_id=2098904787]
collision_layer = 2
script = ExtResource("1_g2els")
[node name="Sprite2D" type="Sprite2D" parent="." unique_id=921388463]
texture_filter = 1
texture = ExtResource("1_character")
[node name="CollisionShape2D" type="CollisionShape2D" parent="." unique_id=151099089]
position = Vector2(0, 2)
shape = SubResource("CapsuleShape2D_player")
[node name="Camera2D" type="Camera2D" parent="."]
zoom = Vector2(2, 2)
limit_left = 0
limit_top = 0
limit_right = 468
limit_bottom = 270
position_smoothing_enabled = true
position_smoothing_speed = 6.0