2025-09-18 18:10:44 +02:00
|
|
|
class_name Platform extends StaticBody2D
|
|
|
|
|
var building
|
2025-09-17 02:29:35 +02:00
|
|
|
|
2025-09-19 13:42:23 +02:00
|
|
|
func _ready() -> void:
|
|
|
|
|
if(randf() > 0.5):
|
|
|
|
|
$Sprite2D.visible = true
|
|
|
|
|
$Sprite2D2.visible = false
|
|
|
|
|
|
2025-09-17 02:29:35 +02:00
|
|
|
func init_at_horizontal_distortion(distortion : float):
|
|
|
|
|
scale.x *= distortion
|
2025-09-18 18:10:44 +02:00
|
|
|
|
|
|
|
|
func destroy():
|
|
|
|
|
building.destroy()
|