From cb2a440172549647b4c017615f756324842228f0 Mon Sep 17 00:00:00 2001 From: Fisch Date: Mon, 11 Nov 2024 17:35:05 +0100 Subject: [PATCH] clean up --- scripts/tiretrails.gd | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/scripts/tiretrails.gd b/scripts/tiretrails.gd index 0c28e9f..5342805 100644 --- a/scripts/tiretrails.gd +++ b/scripts/tiretrails.gd @@ -5,7 +5,6 @@ var point var isSliding=false var currentTrail:Line2D -#TODO: queue_free(), #clear_points() const STARTALPHA=0.8 const MAXIMUM_POINTS=100 #maximum points per trail @@ -27,12 +26,7 @@ func _physics_process(delta: float) -> void: c.queue_free() func setSliding(psliding:bool): - if not isSliding and psliding: #just started sliding - #Reduce old lines - const KEEP_LINES=3 - #if get_child_count()>KEEP_LINES: - # var trails=get_children() - + if not isSliding and psliding: #just started sliding #Create new Line currentTrail=Line2D.new() add_child(currentTrail)