PraxTube / ace-of-the-heavens

Fast paced online 1vs1 action game in an arcade-like, 2D top-down style
https://praxtube.itch.io/ace-of-the-heavens
MIT License
12 stars 0 forks source link

ARCH: Figure out how to properly handle UI input #34

Closed PraxTube closed 1 year ago

PraxTube commented 1 year ago

Should UI input be handled in ui module or somewhere separate?

Current idea Have the UI module consistent of different parts: visual and logic or something similar.

Alternative Have many small modules like game_over, round_start and so on and have logic split there (you could even split them like visual, logic in there too).

PraxTube commented 1 year ago

I don't like the current idea anymore. With growing complexity this will most likely result in splitting the visual and logic stuff into things like game_over, round_start etc. In that case I prefer to have the visual and logic parts in each section, so ui::main_menu::logic rather then ui::logic::main_menu.

I will close this once the UI restructure is done as it can be applied to each section as needed (another plus point for this variant).