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:
+6
-1
@@ -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);
|
||||
};
|
||||
Reference in New Issue
Block a user