Here is my code:
https://drive.google.com/file/d/1b8J7cQOpRSOukdOxplM1sqr39zie4x5A/view?usp=sharing
I'm having trouble getting it to lag less. I know it wont be lagless, but lagging less would be nice. Is there any way I could maybe draw the background once and have it not interfere with the player sprite? It's made up of tiles. If there is, could you give an example that doesn't have "insert blank here" lines, maybe the source to a game that uses that method would work. The FPS dips when you walk into the middle of the flowers quite a bit. Also, is there a good way I can minimize storage usage without stripping down major parts of the code or removing sprites? Lastly, is there a good way I can avoid using all of those "ifs" before it's total spaghetti code? Thanks in advance (Also, I apologize in advance for my horrendous coding skills. Advice would be nice.)
https://drive.google.com/file/d/1b8J7cQOpRSOukdOxplM1sqr39zie4x5A/view?usp=sharing
I'm having trouble getting it to lag less. I know it wont be lagless, but lagging less would be nice. Is there any way I could maybe draw the background once and have it not interfere with the player sprite? It's made up of tiles. If there is, could you give an example that doesn't have "insert blank here" lines, maybe the source to a game that uses that method would work. The FPS dips when you walk into the middle of the flowers quite a bit. Also, is there a good way I can minimize storage usage without stripping down major parts of the code or removing sprites? Lastly, is there a good way I can avoid using all of those "ifs" before it's total spaghetti code? Thanks in advance (Also, I apologize in advance for my horrendous coding skills. Advice would be nice.)