Some more work on hexes, chit distributions, added the cheatsheet for reference
This commit is contained in:
@@ -16,6 +16,7 @@ export(Dictionary) var distribution = {
|
||||
"pasture": 0,
|
||||
"desert": 1,
|
||||
}
|
||||
export(Array, int) var chits = []
|
||||
|
||||
func _ready():
|
||||
var tiles = []
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user