13 lines
174 B
GDScript3
13 lines
174 B
GDScript3
|
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
|