Initil Sprite Animation with the player class. (#4)

* Added RoSpriteSheet and defined animation states.

* Added methods o handle sprite animation states.

* Figured out how to flip sprites when moving left.

* Bug Fix: Ready state wasn't animating, now it is ;)

---------

Co-authored-by: jme9 <jme9@pdx.edu>
This commit is contained in:
J. M. Ellis
2025-05-21 16:21:37 -07:00
committed by GitHub
parent 6b03d0a3f4
commit 019b35dee4
8 changed files with 494 additions and 34 deletions
+24 -12
View File
@@ -98,6 +98,30 @@
/processorParam:TextureFormat=Color
/build:player.png
#begin ro_emoji.png
/importer:TextureImporter
/processor:TextureProcessor
/processorParam:ColorKeyColor=255,0,255,255
/processorParam:ColorKeyEnabled=True
/processorParam:GenerateMipmaps=False
/processorParam:PremultiplyAlpha=True
/processorParam:ResizeToPowerOfTwo=False
/processorParam:MakeSquare=False
/processorParam:TextureFormat=Color
/build:ro_emoji.png
#begin Ro_Sprites/RoSpriteSheet.png
/importer:TextureImporter
/processor:TextureProcessor
/processorParam:ColorKeyColor=255,0,255,255
/processorParam:ColorKeyEnabled=True
/processorParam:GenerateMipmaps=False
/processorParam:PremultiplyAlpha=True
/processorParam:ResizeToPowerOfTwo=False
/processorParam:MakeSquare=False
/processorParam:TextureFormat=Color
/build:Ro_Sprites/RoSpriteSheet.png
#begin Sink area.png
/importer:TextureImporter
/processor:TextureProcessor
@@ -146,15 +170,3 @@
/processorParam:TextureFormat=Color
/build:spr_Cave1_walls.png
#begin sprRo_Wall.png
/importer:TextureImporter
/processor:TextureProcessor
/processorParam:ColorKeyColor=255,0,255,255
/processorParam:ColorKeyEnabled=True
/processorParam:GenerateMipmaps=False
/processorParam:PremultiplyAlpha=True
/processorParam:ResizeToPowerOfTwo=False
/processorParam:MakeSquare=False
/processorParam:TextureFormat=Color
/build:sprRo_Wall.png