tweak the metrics even more
This commit is contained in:
@@ -17,18 +17,20 @@ script = ExtResource("1_g2els")
|
||||
_trajectory = NodePath("Trajectory")
|
||||
|
||||
[node name="JumpParticlesHolder" type="Node2D" parent="."]
|
||||
position = Vector2(-9.53674e-07, 0)
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="."]
|
||||
position = Vector2(2.38419e-07, -13)
|
||||
position = Vector2(-9.53674e-07, -13)
|
||||
scale = Vector2(0.140625, 0.203125)
|
||||
texture = ExtResource("1_3vyb7")
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
position = Vector2(0, -13)
|
||||
position = Vector2(-9.53674e-07, -13)
|
||||
shape = SubResource("RectangleShape2D_3vyb7")
|
||||
debug_color = Color(1, 0.29, 0.988167, 0.419608)
|
||||
|
||||
[node name="PlayerAnimator" type="Node2D" parent="." node_paths=PackedStringArray("_player", "_collision_particles_holder", "_jump_particles_holder")]
|
||||
position = Vector2(-9.53674e-07, 0)
|
||||
script = ExtResource("3_qhqgy")
|
||||
_player = NodePath("..")
|
||||
_collision_particles = ExtResource("4_dqkch")
|
||||
@@ -40,6 +42,7 @@ _particles_transform_top = Transform2D(-1, 0, 0, 1, 0, -26)
|
||||
_particles_transform_right = Transform2D(0, -1, 0, 1, 9, -10)
|
||||
|
||||
[node name="CollisionParticlesHolder" type="Node2D" parent="."]
|
||||
position = Vector2(-9.53674e-07, 0)
|
||||
|
||||
[node name="Trajectory" type="Marker2D" parent="."]
|
||||
visible = false
|
||||
|
||||
@@ -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
|
||||
@export var _jump_force: float = 8.5 * 60.0 + 16.0
|
||||
@export var _fall_speed: float = 10.0 * 60.0
|
||||
@export var _fall_acceleration: float = 0.25 * 60.0 / (1.0 / 60.0)
|
||||
@export var _fall_acceleration: float = 0.25 * 60.0 / (1.0 / 60.0) + 28.0
|
||||
@export var _jump_full_charge_frames: float = 35
|
||||
@export var _wall_bounce_velocity_loss: float = 0.5
|
||||
|
||||
@@ -28,6 +28,7 @@ var _jump_charge_frames: float = 0
|
||||
var _charge_strength: float = 0
|
||||
var _direction: float = 0
|
||||
var _freemove_enabled: bool = false
|
||||
var _min_y: float = 999;
|
||||
|
||||
@onready var _saved_state: Vector2 = global_position
|
||||
|
||||
@@ -126,6 +127,9 @@ func _physics_process(delta: float) -> void:
|
||||
Debugger.text("is_charging_jump", _is_charging_jump)
|
||||
Debugger.text("jump_charge_frames", _jump_charge_frames)
|
||||
Debugger.text("charge_strength", _charge_strength)
|
||||
if global_position.y < _min_y:
|
||||
_min_y = global_position.y
|
||||
Debugger.text("min_y", _min_y)
|
||||
|
||||
|
||||
func _unhandled_input(event: InputEvent) -> void:
|
||||
|
||||
@@ -129,7 +129,7 @@ const JUMP_REFERENCE: PackedFloat32Array = [
|
||||
set(value):
|
||||
_jump_speed = value
|
||||
queue_redraw()
|
||||
@export var _jump_force: float = 8.5 * 60.0:
|
||||
@export var _jump_force: float = 8.5 * 60.0 + 16.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):
|
||||
@export var _fall_acceleration: float = 0.25 * 60.0 / (1.0 / 60.0) + 28.0:
|
||||
set(value):
|
||||
_fall_acceleration = value
|
||||
queue_redraw()
|
||||
|
||||
Reference in New Issue
Block a user