Twinklebear / LPCGame

Working on a C++ tile based 'engine' using SDL
MIT License
18 stars 1 forks source link

Re-work StateManager + State system #25

Open Twinklebear opened 11 years ago

Twinklebear commented 11 years ago

The current StateManager works but is less than ideal. The SetActiveState function is currently recursive but really could just be a do-while. In addition the state's should be created with std::make_shared instead of new.

Also now that the distinction between Game and Intro is gone these states should be merged. What should be done with the editor?