Heavy Trucking 1.02 - bugfixes and NEW CONTENT??


Hello,

Yesterday I made a I put out a temporary fix to slowdown caused by a system update. Funnily enough, very shortly after I sent out that update, someone at Panic got back to me with a solution that now has the game running just as good as before the update. So, thanks a lot, Will.

I guess I should go more in depth in what happened and what caused the slowdown. I want to make clear that just because this happened doesn't mean it's anyone's fault, things happen and system updates break things. It's just a thing that happens. So I don't want anyone to mad at Panic because an update messed with my game. If anything, I am very lucky that Panic is as developer-friendly as they are. If I was developing for any other platform and a system update caused my game to break, I'd be out of luck. Panic has been extremely helpful and understanding of my situation and I am very grateful for them.

Okay, now I'm just rambling, let's get into what actually happened.

My game works by having a bunch of sprites that scale/rotate once when the game is loaded and then I used the playdate update function to do things like move them or change their image. However, in update  Playdate 2.3 in the release notes: "Scaled/rotated sprites now redraw when source image is updated." Meaning that instead of only doing the calculations to scale/rotate an image once when the game is loaded, it was trying to do it every frame.

The solution to this problem was pretty simple. I used the :setRedrawsOnImageChange(flag) method on each sprite and set them all to false so they no longer would try to update every frame. However, this now caused a new problem where the sprites would never change their image after being created. This was fixed by calling the :markDirty() method on a sprite after changing it's image.

After that, everything was back up to the speed it was at before the system update.


Because you have been so patient with me, I decided to also add new content!

New content:

- added horn button

and I will also be putting the game on sale for a while.

Thank you,

Matthew (Raccoon Formality)

Files

Heavy Trucking 1.02 670 kB
63 days ago
HeavyTrucking1-02-SourceFull.zip 8 MB
63 days ago

Get Heavy Trucking (for playdate)

Buy Now$5.00 USD or more

Comments

Log in with itch.io to leave a comment.

need to get this update so I can HONK!

(+1)

Yaaaay 💙 Thanks for fixing the game so quickly! If you eventually add more content, I'll be here 👀