git push origin master --force Added flip Horizontal/Vertical

This commit is contained in:
danielnaoexiste 2019-10-23 18:01:52 -03:00
parent c64c3408e8
commit 918eec30ce
4 changed files with 46 additions and 18 deletions

View file

@ -192,6 +192,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)
@ -507,4 +508,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