mirror of
https://github.com/tonytins/CozyPixelStudio.git
synced 2025-06-25 21:14:42 -04:00
Merge pull request #182 from luiq54/fake_rotsprite
Rotsprite-like Rotation
This commit is contained in:
commit
f2ed5ade8a
2 changed files with 10 additions and 0 deletions
|
@ -936,6 +936,11 @@ func rotxel(sprite : Image, angle : float) -> void:
|
|||
sprite.unlock()
|
||||
aux.unlock()
|
||||
|
||||
func fake_rotsprite(sprite : Image, angle : float) -> void:
|
||||
sprite.copy_from(scale3X(sprite))
|
||||
nn_rotate(sprite,angle)
|
||||
sprite.resize(sprite.get_width()/3,sprite.get_height()/3,0)
|
||||
|
||||
func nn_rotate(sprite : Image, angle : float) -> void:
|
||||
var aux : Image = Image.new()
|
||||
aux.copy_from(sprite)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue