mirror of
https://github.com/godotengine/godot-demo-projects.git
synced 2026-01-06 16:00:08 +01:00
14 lines
303 B
GDScript
14 lines
303 B
GDScript
extends RigidBody2D
|
|
|
|
#warning-ignore-all:unused_class_variable
|
|
export var min_speed = 150
|
|
export var max_speed = 250
|
|
var mob_types = ["walk", "swim", "fly"]
|
|
|
|
func _ready():
|
|
$AnimatedSprite.animation = mob_types[randi() % mob_types.size()]
|
|
|
|
|
|
func _on_VisibilityNotifier2D_screen_exited():
|
|
queue_free()
|