Implemented unlocking of areas via clearing stages. Game fade in/out for state transitions. Asset loading for visual novel assets. Visual Novel command execution code implemented. Visual Novel basic rendering and input handling enabled.

This commit is contained in:
2023-11-28 18:29:06 -06:00
parent 3601e8b83a
commit a7f13e0077
21 changed files with 279 additions and 127 deletions
+6 -1
View File
@@ -1,3 +1,4 @@
#pragma region License
/*
License (OLC-3)
~~~~~~~~~~~~~~~
@@ -29,6 +30,7 @@ CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
SUCH DAMAGE.
*/
#pragma endregion
#pragma once
#include <map>
#include <iostream>
@@ -47,6 +49,9 @@ namespace States{
};
class GameState{
friend class Crawler;
private:
static void _ChangeState(States::State newState);
public:
inline static GameState*STATE=nullptr;
inline static std::map<States::State,GameState*>states;
@@ -55,5 +60,5 @@ public:
virtual void OnStateChange(GameState*prevState)=0;
virtual void OnUserUpdate(Crawler*game)=0;
virtual void Draw(Crawler*game)=0;
static void ChangeState(States::State newState);
static void ChangeState(States::State newState,float fadeOutDuration=0);
};