hexland/Scripts/Chit.gd

13 lines
174 B
GDScript3
Raw Permalink Normal View History

2022-08-26 09:36:29 -05:00
extends Sprite
class_name Chit
const CHIT_SCALE = 0.1
var num = 6
func setup(num):
self.num = num
texture = load("res://Assets/%d-chit.png" % num)
scale *= CHIT_SCALE