Merge mirrored drawing and flip

This commit is contained in:
OverloadedOrama 2019-10-24 00:36:22 +03:00
parent 38377e1633
commit 2b64031786
2 changed files with 18 additions and 2 deletions

View file

@ -211,6 +211,7 @@ func _process(delta) -> void:
if sprite_changed_this_frame:
update_texture(current_layer_index)
func update_texture(layer_index : int) -> void:
layers[layer_index][1].create_from_image(layers[layer_index][0], 0)
@ -564,4 +565,5 @@ func rectangle_center(pos : Vector2, size : Vector2) -> Vector2:
return (pos - size / 2).floor()
func _on_Timer_timeout() -> void:
Global.can_draw = true
Global.can_draw = true