Navigation between unlocked stages is now possible.

This commit is contained in:
2023-11-04 22:19:25 -05:00
parent 54614d31dc
commit 4f65d2240a
11 changed files with 136 additions and 9 deletions
+5
View File
@@ -3,12 +3,17 @@
#include "ConnectionPoint.h"
class State_OverworldMap:public GameState{
friend class Crawler;
ConnectionPoint*currentConnectionPoint;
float currentTime;
vf2d playerTargetPos;
const float playerMoveSpd=48.0;
public:
State_OverworldMap();
static std::vector<ConnectionPoint>connections;
static ConnectionPoint&GetCurrentConnectionPoint();
void SetStageMarker(std::string connectionName);
ConnectionPoint&ConnectionPointFromIndex(int ind);
virtual void OnStateChange(GameState*prevState)override;
virtual void OnUserUpdate(Crawler*game)override;
virtual void Draw(Crawler*game)override;