summaryrefslogtreecommitdiff
path: root/Towers/Components/TowerComponent.gd
blob: 570b4427cadd1dfdb5ac903e6662077c5e1bfe57 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
class_name TowerComponent
extends Resource


var name: String
var sprite: Sprite2D = Sprite2D.new()


func set_sprite(texture: Texture2D):
	sprite.texture = texture
	
	sprite.texture_filter = CanvasItem.TEXTURE_FILTER_NEAREST
	sprite.centered = false
	sprite.scale = Vector2(2, 2)
	sprite.name = name