mirror of
https://github.com/tonytins/CozyPixelStudio.git
synced 2025-06-25 22:54:44 -04:00
Merge mirrored drawing and flip
This commit is contained in:
parent
38377e1633
commit
2b64031786
2 changed files with 18 additions and 2 deletions
|
@ -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
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue