isadorasophia / murder

Murder is a pixel art ECS game engine.
https://isadorasophia.com/murder/
MIT License
2.45k stars 61 forks source link

👨🏽‍🎨 Add hook points to render context #65

Closed heytherewill closed 9 months ago

heytherewill commented 9 months ago

This adds two extra points to render context, which basically removes most needs to override the End method!

One point happens right after the main game has been drawn and the other one happens right after the UI has been drawn. This means one can now create any number of additional batches and end said batches in these extension points would allow to draw at the correct target at the correct time without having to copy all the code inside the End method over to one's project!