Compose buildings from definitions and capabilities
This commit is contained in:
parent
1721edd123
commit
0504b24d8d
46 changed files with 1091 additions and 878 deletions
|
|
@ -31,9 +31,9 @@ func _ready() -> void:
|
|||
b.position = Vector2(-240.0 + float(i % 3) * 240.0, -105.0 + float(i / 3) * 215.0)
|
||||
add_child(b)
|
||||
if cell.has("phase"):
|
||||
b.set_process(false)
|
||||
b.anim_time = float(cell.phase) * b.CYCLE
|
||||
b.apply_animation()
|
||||
b.visual.set_process(false)
|
||||
b.visual.anim_time = float(cell.phase) * b.visual.CYCLE
|
||||
b.visual.apply_animation()
|
||||
|
||||
var cam: Camera2D = Camera2D.new()
|
||||
cam.zoom = Vector2(1.65, 1.65)
|
||||
|
|
|
|||
Loading…
Reference in a new issue