surrsurus / edgequest

Edgequest Season Two
Mozilla Public License 2.0
8 stars 1 forks source link

Add screens to renderer #47

Open surrsurus opened 6 years ago

surrsurus commented 6 years ago

The renderer could benefit from a Screen trait that has some draw_all() method implemented. This would allow the renderer to hold some Box<Screen> and allow the game to swap such screens in and out. This would allow for things such as UI screens, a main game screen, etc that could be modularly hot swapped on a button press.