Handmade Hero»Forums»Game
Miguel Lechón
78 posts / 2 projects
Error asserts vs error assets
While annotating the last episode, I've noticed that this question from the Q&A:
Should there be error asserts if there are no assets that match a query?
was originally written like this in the twitch chat:
Should there be error assets if there are no assets that match a query?

On top of Casey's answer (not asserting but logging the error), the original questions suggests to me the possibility of showing some outlandish image, like an internet explorer logo, an owl of shame or some other thing that speaks trouble. I think I would like that sort of immediate indication of an asset load error, as long as that "feature" was automatically turned off for release.
Casey Muratori
801 posts / 1 project
Casey Muratori is a programmer at Molly Rocket on the game 1935 and is the host of the educational programming series Handmade Hero.
Error asserts vs error assets
That is what I typically do in my normal codebase - it's a bright pink texture thing :) But I don't know how applicable that will be in Handmade Hero. We will see.

- Casey