Some more work on hexes, chit distributions, added the cheatsheet for reference

This commit is contained in:
2022-08-24 11:48:22 -05:00
parent 112b8fd88b
commit 049f374c5b
9 changed files with 81 additions and 1 deletions

View File

@@ -16,6 +16,7 @@ export(Dictionary) var distribution = {
"pasture": 0,
"desert": 1,
}
export(Array, int) var chits = []
func _ready():
var tiles = []

View File

@@ -19,3 +19,13 @@ func _input(event):
if event is InputEventMouseMotion:
if pan:
translate(-event.relative * zoom)
func get_corner(corner):
return $Corners.get_node(str(corner))
func place_corner(corner, item):
get_corner(corner).add_child(item)
func clear_corner(corner):
for child in get_corner(corner).get_children():
child.queue_free()