13 lines
271 B
GDScript
13 lines
271 B
GDScript
class_name Platform extends StaticBody2D
|
|
var building
|
|
|
|
func _ready() -> void:
|
|
if(randf() > 0.5):
|
|
$Sprite2D.visible = true
|
|
$Sprite2D2.visible = false
|
|
|
|
func init_at_horizontal_distortion(distortion : float):
|
|
scale.x *= distortion
|
|
|
|
func destroy():
|
|
building.destroy()
|