I made some pretty drastic changes, but for the better.
- First, I added shooting. I drew up a quick bullet sprite (also getting changed in the future). The main thing with this was that I wanted to have the
Playerclass have its own.shoot()method, but that required me to pass the spriteGroupobject, as well as the actual sprite image into the function. I searched for a “better” solution for a while but ultimately couldn’t find one. Theshoot()method handles the placement, the creation of theBulletobject, and adding it into theGroup. - I have an actual file hierarchy now! I took inspiration from DaFluffyPotato, though I am using an
assetsfolder instead ofdata, because I won’t be storing anything other than sprites and maybe sounds. Also, I will store the.asefiles for the sprites just in case, so that I can fully edit them in Aseprite if there are any layers. The one roadblock I came across here was that the paths to the assets were kind of confusing, but I figured it out quickly.
Overall, I think it’s coming along great!
Comments 0
No comments yet. Be the first!
Sign in to join the conversation.