borntofrappe / game-development

Repository for an aspiring game developer, starting from CS50's Intro to Game Development and creating interactive demos. Lots and lots of demos.
10 stars 1 forks source link

Optimize graphics #121

Closed borntofrappe closed 3 years ago

borntofrappe commented 3 years ago

Berzerk, see issue #118, optimizes the image making up the spritesheet, and is the second project in the Practice folder to do so. The reduction is size is considerable enough to warrant the same action for every single game in the repository.

borntofrappe commented 3 years ago

Most images are .png, and it seems the format is quite suited for low-res, pixelated assets. In the moment the image becomes more complex the jpg format provides a valid alternative, so it is necessary to weight the options.

As a for instance, consider the practice project Picross. Here the image making up the background shows a gradient with varying degrees of blue, and the png version is considerably heavier than the jpg counterpart.