Initial commit (1/2)
This commit is contained in:
commit
3411c5796d
66 changed files with 2261 additions and 0 deletions
8
scripts/SpeedLine.gd
Normal file
8
scripts/SpeedLine.gd
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
extends Line2D
|
||||
|
||||
@onready var MSEngine = $"../../../Engine"
|
||||
|
||||
func _process(_delta):
|
||||
var SpeedPercentage : float = MSEngine.Speed / MSEngine.MaxSpeed * 100
|
||||
var NewPoints = [Vector2.ZERO, Vector2(SpeedPercentage, 0)]
|
||||
points = PackedVector2Array(NewPoints)
|
||||
Loading…
Add table
Add a link
Reference in a new issue