Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- extends Node2D
- var textures = [
- "res://Graphics/o.png",
- "res://Graphics/tri.png",
- "res://Graphics/x.png"
- ]
- func _ready():
- randomize()
- set_random_texture()
- func set_random_texture() -> void:
- var selection = textures[randi()%textures.size()]
- $Sprite.texture = load(selection)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement