Compare commits

...

2 Commits

Author SHA1 Message Date
f071e55801 add more colliders 2025-08-22 14:46:12 +10:00
db26ed9a88 tweak metrics even more 2025-08-22 14:46:04 +10:00
3 changed files with 346 additions and 8 deletions

View File

@@ -1,4 +1,4 @@
[gd_scene load_steps=93 format=3 uid="uid://cfvb33kf48sga"]
[gd_scene load_steps=138 format=3 uid="uid://cfvb33kf48sga"]
[ext_resource type="PackedScene" uid="uid://db7d5pwp4gds" path="res://scenes/player.tscn" id="1_bl13t"]
[ext_resource type="Texture2D" uid="uid://j3xt1tbjcu2r" path="res://assets/textures/reference/jumpking_0.png" id="1_iyx0m"]
@@ -183,6 +183,141 @@ size = Vector2(136, 16)
[sub_resource type="RectangleShape2D" id="RectangleShape2D_qfy4l"]
size = Vector2(56, 56)
[sub_resource type="RectangleShape2D" id="RectangleShape2D_ho4wr"]
size = Vector2(128.693, 43.8406)
[sub_resource type="RectangleShape2D" id="RectangleShape2D_4amwq"]
size = Vector2(143, 16)
[sub_resource type="RectangleShape2D" id="RectangleShape2D_3w526"]
size = Vector2(102, 38)
[sub_resource type="RectangleShape2D" id="RectangleShape2D_hpsc0"]
size = Vector2(72, 9)
[sub_resource type="RectangleShape2D" id="RectangleShape2D_tgrws"]
size = Vector2(66.4682, 7.07111)
[sub_resource type="RectangleShape2D" id="RectangleShape2D_g2gmo"]
size = Vector2(9, 47)
[sub_resource type="RectangleShape2D" id="RectangleShape2D_1d0gi"]
size = Vector2(100.409, 43.8406)
[sub_resource type="RectangleShape2D" id="RectangleShape2D_c05ib"]
size = Vector2(28, 12)
[sub_resource type="RectangleShape2D" id="RectangleShape2D_nwu0k"]
size = Vector2(96, 49)
[sub_resource type="RectangleShape2D" id="RectangleShape2D_8pbqr"]
size = Vector2(92, 177)
[sub_resource type="RectangleShape2D" id="RectangleShape2D_ugxyt"]
size = Vector2(40, 40)
[sub_resource type="RectangleShape2D" id="RectangleShape2D_itbbc"]
size = Vector2(80, 156)
[sub_resource type="RectangleShape2D" id="RectangleShape2D_2w7nf"]
size = Vector2(95, 138)
[sub_resource type="RectangleShape2D" id="RectangleShape2D_vspyu"]
size = Vector2(100, 58)
[sub_resource type="RectangleShape2D" id="RectangleShape2D_vs3tm"]
size = Vector2(50, 33)
[sub_resource type="RectangleShape2D" id="RectangleShape2D_yuwb2"]
size = Vector2(47, 32)
[sub_resource type="RectangleShape2D" id="RectangleShape2D_xfgcb"]
size = Vector2(97, 33)
[sub_resource type="RectangleShape2D" id="RectangleShape2D_6rksj"]
size = Vector2(19.7989, 32.5268)
[sub_resource type="RectangleShape2D" id="RectangleShape2D_oyxl4"]
size = Vector2(19.7991, 93.3382)
[sub_resource type="RectangleShape2D" id="RectangleShape2D_xsyvi"]
size = Vector2(19.7991, 138.593)
[sub_resource type="RectangleShape2D" id="RectangleShape2D_mervl"]
size = Vector2(73.5391, 32.527)
[sub_resource type="RectangleShape2D" id="RectangleShape2D_tc0w7"]
size = Vector2(23.3347, 72.8321)
[sub_resource type="RectangleShape2D" id="RectangleShape2D_aw7an"]
size = Vector2(46, 62)
[sub_resource type="RectangleShape2D" id="RectangleShape2D_8o50k"]
size = Vector2(247, 40)
[sub_resource type="RectangleShape2D" id="RectangleShape2D_t8aaa"]
size = Vector2(75, 78)
[sub_resource type="RectangleShape2D" id="RectangleShape2D_4lsv5"]
size = Vector2(23, 99)
[sub_resource type="RectangleShape2D" id="RectangleShape2D_wv7sc"]
size = Vector2(28, 122)
[sub_resource type="RectangleShape2D" id="RectangleShape2D_7qcsl"]
size = Vector2(47, 89)
[sub_resource type="RectangleShape2D" id="RectangleShape2D_7dcpw"]
size = Vector2(160, 65)
[sub_resource type="RectangleShape2D" id="RectangleShape2D_vwa82"]
size = Vector2(48, 180)
[sub_resource type="RectangleShape2D" id="RectangleShape2D_jfe00"]
size = Vector2(30, 25)
[sub_resource type="RectangleShape2D" id="RectangleShape2D_mf2kp"]
size = Vector2(16, 124)
[sub_resource type="RectangleShape2D" id="RectangleShape2D_b65qk"]
size = Vector2(29, 24)
[sub_resource type="RectangleShape2D" id="RectangleShape2D_y2p4a"]
size = Vector2(162.635, 49.4973)
[sub_resource type="RectangleShape2D" id="RectangleShape2D_etvgs"]
size = Vector2(18.3847, 60.8111)
[sub_resource type="RectangleShape2D" id="RectangleShape2D_h5c55"]
size = Vector2(32, 64)
[sub_resource type="RectangleShape2D" id="RectangleShape2D_2pxgj"]
size = Vector2(32, 32)
[sub_resource type="RectangleShape2D" id="RectangleShape2D_mxsuy"]
size = Vector2(80, 24)
[sub_resource type="RectangleShape2D" id="RectangleShape2D_83c18"]
size = Vector2(34, 44)
[sub_resource type="RectangleShape2D" id="RectangleShape2D_sao6w"]
size = Vector2(16, 145)
[sub_resource type="RectangleShape2D" id="RectangleShape2D_5un4f"]
size = Vector2(72, 145)
[sub_resource type="RectangleShape2D" id="RectangleShape2D_f81g6"]
size = Vector2(83, 48)
[sub_resource type="RectangleShape2D" id="RectangleShape2D_2npwi"]
size = Vector2(104, 50)
[sub_resource type="RectangleShape2D" id="RectangleShape2D_5205d"]
size = Vector2(56, 150)
[sub_resource type="RectangleShape2D" id="RectangleShape2D_32c8b"]
size = Vector2(78.489, 37.4766)
[node name="Test" type="Node2D"]
[node name="Debugger" parent="." instance=ExtResource("1_lpvoh")]
@@ -599,9 +734,204 @@ shape = SubResource("RectangleShape2D_80m0l")
position = Vector2(-76, -1952)
shape = SubResource("RectangleShape2D_qfy4l")
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="Geometry"]
position = Vector2(-76, -1952)
polygon = PackedVector2Array(28, -28, -60, -28, -60, -117)
[node name="CollisionShape2D49" type="CollisionShape2D" parent="Geometry"]
position = Vector2(-109, -2010)
rotation = 0.785397
shape = SubResource("RectangleShape2D_ho4wr")
[node name="CollisionShape2D50" type="CollisionShape2D" parent="Geometry"]
position = Vector2(-166.5, -1972)
shape = SubResource("RectangleShape2D_4amwq")
[node name="CollisionShape2D51" type="CollisionShape2D" parent="Geometry"]
position = Vector2(-187, -2082)
shape = SubResource("RectangleShape2D_3w526")
[node name="CollisionShape2D52" type="CollisionShape2D" parent="Geometry"]
position = Vector2(-68, -2095.5)
shape = SubResource("RectangleShape2D_hpsc0")
[node name="CollisionShape2D53" type="CollisionShape2D" parent="Geometry"]
position = Vector2(-78.0001, -2070)
rotation = 0.785397
shape = SubResource("RectangleShape2D_tgrws")
[node name="CollisionShape2D54" type="CollisionShape2D" parent="Geometry"]
position = Vector2(-52.5, -2067.5)
shape = SubResource("RectangleShape2D_g2gmo")
[node name="CollisionShape2D55" type="CollisionShape2D" parent="Geometry"]
position = Vector2(-187, -2121)
rotation = 0.785397
shape = SubResource("RectangleShape2D_1d0gi")
[node name="CollisionShape2D56" type="CollisionShape2D" parent="Geometry"]
position = Vector2(-221, -2166)
shape = SubResource("RectangleShape2D_c05ib")
[node name="CollisionShape2D57" type="CollisionShape2D" parent="Geometry"]
position = Vector2(96, -2204.5)
shape = SubResource("RectangleShape2D_nwu0k")
[node name="CollisionShape2D58" type="CollisionShape2D" parent="Geometry"]
position = Vector2(190, -2292.5)
shape = SubResource("RectangleShape2D_8pbqr")
[node name="CollisionShape2D59" type="CollisionShape2D" parent="Geometry"]
position = Vector2(-68, -2167)
shape = SubResource("RectangleShape2D_ugxyt")
[node name="CollisionShape2D60" type="CollisionShape2D" parent="Geometry"]
position = Vector2(-48, -2258)
shape = SubResource("RectangleShape2D_itbbc")
[node name="CollisionShape2D61" type="CollisionShape2D" parent="Geometry"]
position = Vector2(-40.5, -2391)
shape = SubResource("RectangleShape2D_2w7nf")
[node name="CollisionShape2D62" type="CollisionShape2D" parent="Geometry"]
position = Vector2(6, -2352)
shape = SubResource("RectangleShape2D_vspyu")
[node name="CollisionShape2D63" type="CollisionShape2D" parent="Geometry"]
position = Vector2(-111, -2252.5)
shape = SubResource("RectangleShape2D_vs3tm")
[node name="CollisionShape2D64" type="CollisionShape2D" parent="Geometry"]
position = Vector2(-89.5, -2276)
shape = SubResource("RectangleShape2D_yuwb2")
[node name="CollisionShape2D65" type="CollisionShape2D" parent="Geometry"]
position = Vector2(-200.5, -2339.5)
shape = SubResource("RectangleShape2D_xfgcb")
[node name="CollisionShape2D66" type="CollisionShape2D" parent="Geometry"]
position = Vector2(-117.5, -2273.5)
rotation = 0.785397
shape = SubResource("RectangleShape2D_6rksj")
[node name="CollisionShape2D67" type="CollisionShape2D" parent="Geometry"]
position = Vector2(16, -2297)
rotation = 0.785397
shape = SubResource("RectangleShape2D_oyxl4")
[node name="CollisionShape2D68" type="CollisionShape2D" parent="Geometry"]
position = Vector2(104, -2271)
rotation = 0.785397
shape = SubResource("RectangleShape2D_xsyvi")
[node name="CollisionShape2D69" type="CollisionShape2D" parent="Geometry"]
position = Vector2(18.4999, -2395.5)
rotation = 0.785397
shape = SubResource("RectangleShape2D_mervl")
[node name="CollisionShape2D70" type="CollisionShape2D" parent="Geometry"]
position = Vector2(178, -2398.5)
rotation = 0.785397
shape = SubResource("RectangleShape2D_tc0w7")
[node name="CollisionShape2D71" type="CollisionShape2D" parent="Geometry"]
position = Vector2(215, -2445)
shape = SubResource("RectangleShape2D_aw7an")
[node name="CollisionShape2D72" type="CollisionShape2D" parent="Geometry"]
position = Vector2(-115.5, -2536)
shape = SubResource("RectangleShape2D_8o50k")
[node name="CollisionShape2D73" type="CollisionShape2D" parent="Geometry"]
position = Vector2(-205.5, -2483)
shape = SubResource("RectangleShape2D_t8aaa")
[node name="CollisionShape2D74" type="CollisionShape2D" parent="Geometry"]
position = Vector2(-227.5, -2401.5)
shape = SubResource("RectangleShape2D_4lsv5")
[node name="CollisionShape2D75" type="CollisionShape2D" parent="Geometry"]
position = Vector2(-222, -2575)
shape = SubResource("RectangleShape2D_wv7sc")
[node name="CollisionShape2D76" type="CollisionShape2D" parent="Geometry"]
position = Vector2(215.5, -2656.5)
shape = SubResource("RectangleShape2D_7qcsl")
[node name="CollisionShape2D77" type="CollisionShape2D" parent="Geometry"]
position = Vector2(-72, -2644.5)
shape = SubResource("RectangleShape2D_7dcpw")
[node name="CollisionShape2D78" type="CollisionShape2D" parent="Geometry"]
position = Vector2(-128, -2762)
shape = SubResource("RectangleShape2D_vwa82")
[node name="CollisionShape2D79" type="CollisionShape2D" parent="Geometry"]
position = Vector2(-161, -2751.5)
shape = SubResource("RectangleShape2D_jfe00")
[node name="CollisionShape2D80" type="CollisionShape2D" parent="Geometry"]
position = Vector2(-144, -2910)
shape = SubResource("RectangleShape2D_mf2kp")
[node name="CollisionShape2D81" type="CollisionShape2D" parent="Geometry"]
position = Vector2(-222.5, -2880)
shape = SubResource("RectangleShape2D_b65qk")
[node name="CollisionShape2D82" type="CollisionShape2D" parent="Geometry"]
position = Vector2(-67, -2717)
rotation = 0.785397
shape = SubResource("RectangleShape2D_y2p4a")
[node name="CollisionShape2D83" type="CollisionShape2D" parent="Geometry"]
position = Vector2(220, -2716)
rotation = 0.785397
shape = SubResource("RectangleShape2D_etvgs")
[node name="CollisionShape2D84" type="CollisionShape2D" parent="Geometry"]
position = Vector2(-24, -2820)
shape = SubResource("RectangleShape2D_h5c55")
[node name="CollisionShape2D85" type="CollisionShape2D" parent="Geometry"]
position = Vector2(72, -2820)
shape = SubResource("RectangleShape2D_h5c55")
[node name="CollisionShape2D86" type="CollisionShape2D" parent="Geometry"]
position = Vector2(168, -2820)
shape = SubResource("RectangleShape2D_h5c55")
[node name="CollisionShape2D87" type="CollisionShape2D" parent="Geometry"]
position = Vector2(168, -2948)
shape = SubResource("RectangleShape2D_2pxgj")
[node name="CollisionShape2D88" type="CollisionShape2D" parent="Geometry"]
position = Vector2(-24, -2912)
shape = SubResource("RectangleShape2D_mxsuy")
[node name="CollisionShape2D89" type="CollisionShape2D" parent="Geometry"]
position = Vector2(-1, -2942)
shape = SubResource("RectangleShape2D_83c18")
[node name="CollisionShape2D90" type="CollisionShape2D" parent="Geometry"]
position = Vector2(-24, -2992.5)
shape = SubResource("RectangleShape2D_sao6w")
[node name="CollisionShape2D91" type="CollisionShape2D" parent="Geometry"]
position = Vector2(-52, -3115.5)
shape = SubResource("RectangleShape2D_5un4f")
[node name="CollisionShape2D92" type="CollisionShape2D" parent="Geometry"]
position = Vector2(193.5, -3068)
shape = SubResource("RectangleShape2D_f81g6")
[node name="CollisionShape2D93" type="CollisionShape2D" parent="Geometry"]
position = Vector2(-188, -3068)
shape = SubResource("RectangleShape2D_2npwi")
[node name="CollisionShape2D94" type="CollisionShape2D" parent="Geometry"]
position = Vector2(-212, -3161)
shape = SubResource("RectangleShape2D_5205d")
[node name="CollisionShape2D95" type="CollisionShape2D" parent="Geometry"]
position = Vector2(-177, -3107.5)
rotation = 0.785397
shape = SubResource("RectangleShape2D_32c8b")
[node name="Player" parent="." instance=ExtResource("1_bl13t")]
position = Vector2(240, 328)
@@ -622,6 +952,7 @@ metadata/_custom_type_script = "uid://ceyu5der8j8gq"
position = Vector2(240, 328)
script = ExtResource("4_74lek")
_steps = 71
_do_collisions = false
metadata/_custom_type_script = "uid://ceyu5der8j8gq"
[node name="Trajectory2" type="Marker2D" parent="Trajectories"]
@@ -720,3 +1051,10 @@ position = Vector2(22, -624)
script = ExtResource("4_74lek")
_steps = 79
metadata/_custom_type_script = "uid://ceyu5der8j8gq"
[node name="Trajectory16" type="Marker2D" parent="Trajectories"]
position = Vector2(464, -2296)
script = ExtResource("4_74lek")
flip = true
_steps = 79
metadata/_custom_type_script = "uid://ceyu5der8j8gq"

View File

@@ -12,9 +12,9 @@ static var instance: Player
@export_group("Metrics")
@export var _move_speed: float = 1.5 * 60.0
@export var _jump_speed: float = 3.5 * 60.0
@export var _jump_force: float = 8.5 * 60.0 + 16.0
@export var _jump_force: float = 8.5 * 60.0 + 20.0
@export var _fall_speed: float = 10.0 * 60.0
@export var _fall_acceleration: float = 0.25 * 60.0 / (1.0 / 60.0) + 28.0
@export var _fall_acceleration: float = 0.25 * 60.0 / (1.0 / 60.0) + 25.0
@export var _jump_full_charge_frames: float = 35
@export var _wall_bounce_velocity_loss: float = 0.5

View File

@@ -129,7 +129,7 @@ const JUMP_REFERENCE: PackedFloat32Array = [
set(value):
_jump_speed = value
queue_redraw()
@export var _jump_force: float = 8.5 * 60.0 + 16.0:
@export var _jump_force: float = 8.5 * 60.0 + 20.0:
set(value):
_jump_force = value
queue_redraw()
@@ -137,7 +137,7 @@ const JUMP_REFERENCE: PackedFloat32Array = [
set(value):
_fall_speed = value
queue_redraw()
@export var _fall_acceleration: float = 0.25 * 60.0 / (1.0 / 60.0) + 28.0:
@export var _fall_acceleration: float = 0.25 * 60.0 / (1.0 / 60.0) + 25.0:
set(value):
_fall_acceleration = value
queue_redraw()