Behind the scenes: all of Trítono's art and sound is generated by code
Sprites, backgrounds, icons, the pixel font and even the piano notes come out of Python scripts. Why, and how.
A fun fact about Trítono: there isn't a single hand-drawn art file in the project. The tools/ folder holds a procedural generator that creates every asset in the game: the hero, 52 animated creatures, the backgrounds for all 5 acts, icons, buttons, the pixel font with Portuguese accents and the ♯ ♭ ♪ symbols, plus the sound effects and the music.
Why do it this way?
- Consistency: palette, outlines and proportions come out the same everywhere, effortlessly.
- Fast iteration: changing the color of a whole act means changing a number and rerunning the script.
- Scale: going from 15 to 52 creatures didn't take 37 drawing sessions.
This site's font
The pixel font you're reading in this site's headings is the same one used in the game. Each letter is defined as a small grid of # and . in a Python file; for the web, we converted that grid straight into a font file. It stays crisp at multiples of 11 pixels, the height of the original cell.
If anyone ever asks "who made the art?", the honest answer is: a very dedicated script.