remove player charge strength debug line
This commit is contained in:
@@ -17,7 +17,6 @@ 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(-9.53674e-07, -13)
|
||||
@@ -30,7 +29,6 @@ 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")
|
||||
@@ -42,12 +40,13 @@ _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="."]
|
||||
physics_interpolation_mode = 2
|
||||
visible = false
|
||||
top_level = true
|
||||
script = ExtResource("6_tuyoq")
|
||||
_steps = 180
|
||||
_line_color = Color(1, 1, 0, 1)
|
||||
_charge_color = Color(0, 1, 1, 1)
|
||||
metadata/_custom_type_script = "uid://ceyu5der8j8gq"
|
||||
|
||||
@@ -18,11 +18,6 @@ static var instance: Player
|
||||
@export var _jump_full_charge_frames: float = 35
|
||||
@export var _wall_bounce_velocity_loss: float = 0.5
|
||||
|
||||
@export_group("Debug")
|
||||
@export var _debug_charge_color: Color = Color.SKY_BLUE
|
||||
@export var _debug_charge_len: float = 30
|
||||
@export var _debug_charge_width: float = 3
|
||||
|
||||
var _direction: float = 0
|
||||
var _is_charging_jump: bool = false
|
||||
var _jump_charge_frames: float = 0
|
||||
@@ -190,23 +185,6 @@ func _unhandled_input(event: InputEvent) -> void:
|
||||
_freemove_enabled = not _freemove_enabled
|
||||
|
||||
|
||||
func _draw() -> void:
|
||||
if Debugger.mode == Debugger.Mode.DISABLED:
|
||||
return
|
||||
|
||||
if _is_charging_jump:
|
||||
var charge_strength_line := (
|
||||
Vector2(sin(_charge_strength * PI * 2), -cos(_charge_strength * PI * 2))
|
||||
* _debug_charge_len
|
||||
)
|
||||
draw_line(
|
||||
Vector2.ZERO,
|
||||
Vector2.ZERO + charge_strength_line,
|
||||
_debug_charge_color,
|
||||
_debug_charge_width
|
||||
)
|
||||
|
||||
|
||||
func _gather_input(delta: float, on_floor: bool) -> void:
|
||||
_direction = signf(Input.get_axis("move_left", "move_right"))
|
||||
|
||||
|
||||
@@ -146,7 +146,7 @@ const JUMP_REFERENCE: PackedFloat32Array = [
|
||||
_wall_bounce_velocity_loss = value
|
||||
queue_redraw()
|
||||
|
||||
@export_group("Colors")
|
||||
@export_group("Display")
|
||||
@export var _line_color: Color = Color.MAGENTA
|
||||
@export var _hitbox_color: Color = Color.WHITE
|
||||
@export var _charge_color: Color = Color.WHITE
|
||||
|
||||
Reference in New Issue
Block a user