Handmade Hero » Forums » Game » Error asserts vs error assets
debiatan
Miguel Lechón
61 posts
#4218 Error asserts vs error assets
3 years ago

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.
cmuratori
Casey Muratori
810 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.

#4219 Error asserts vs error assets
3 years ago

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