Removed static from struct. Emscripten build now uses C++20. Removed stray safemap cpp file.

This commit is contained in:
sigonasr2 2023-08-13 03:04:30 -05:00
parent 2fca13a6a2
commit 6e37993261
8 changed files with 2912 additions and 14 deletions

View File

@ -124,7 +124,7 @@ public:
void SetState(State newState); void SetState(State newState);
static void InitializeStrategies(); static void InitializeStrategies();
private: private:
static struct STRATEGY{ struct STRATEGY{
static void RUN_STRATEGY(Monster&m,float fElapsedTime); static void RUN_STRATEGY(Monster&m,float fElapsedTime);
static void RUN_TOWARDS(Monster&m,float fElapsedTime); static void RUN_TOWARDS(Monster&m,float fElapsedTime);

View File

@ -2,7 +2,7 @@
#define VERSION_MAJOR 0 #define VERSION_MAJOR 0
#define VERSION_MINOR 2 #define VERSION_MINOR 2
#define VERSION_PATCH 0 #define VERSION_PATCH 0
#define VERSION_BUILD 988 #define VERSION_BUILD 992
#define stringify(a) stringify_(a) #define stringify(a) stringify_(a)
#define stringify_(a) #a #define stringify_(a) #a

View File

@ -1,2 +1,2 @@
~\Documents\emsdk\emsdk_env.ps1 activate latest ~\Documents\emsdk\emsdk_env.ps1 activate latest
em++ -std=c++17 -O2 -s ALLOW_MEMORY_GROWTH=1 -s MAX_WEBGL_VERSION=2 -s MIN_WEBGL_VERSION=2 -s USE_LIBPNG=1 $(Get-ChildItem *.cpp) -o pge.html --preload-file assets em++ -std=c++20 -O2 -s ALLOW_MEMORY_GROWTH=1 -s MAX_WEBGL_VERSION=2 -s MIN_WEBGL_VERSION=2 -s USE_LIBPNG=1 $(Get-ChildItem *.cpp) -o pge.html --preload-file assets

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

Binary file not shown.

View File

@ -1,3 +0,0 @@
#include "safemap.h"
safemap::initializeCompleted=false;

Binary file not shown.