summaryrefslogtreecommitdiff
path: root/src/entities/food/scripts/food_basic.gd
blob: cfeec18f98f2be282f6f424ef99f77391527443d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
class_name FoodBasic
extends Food

enum Type {
	APPLE,
	BANANA,
	RAT
}


func _ready():
	texture[Type.APPLE] = preload("res://entities/food/sprites/apple.png")
	texture[Type.BANANA] = preload("res://entities/food/sprites/banana.png")
	texture[Type.RAT] = preload("res://entities/food/sprites/rat.png")