diff --git a/Crawler/Ability.cpp b/Crawler/Ability.cpp index 12f2c55e..482c16be 100644 --- a/Crawler/Ability.cpp +++ b/Crawler/Ability.cpp @@ -1,6 +1,7 @@ #include "Ability.h" -PrecastData::PrecastData(){}; +PrecastData::PrecastData() +:castTime(0),range(0),size(0){}; PrecastData::PrecastData(float castTime) :castTime(castTime),range(0),size(0){precastTargetingRequired=true;}; PrecastData::PrecastData(float castTime,float range,float size) diff --git a/Crawler/DamageNumber.cpp b/Crawler/DamageNumber.cpp index 1f6e1d63..45d6fac0 100644 --- a/Crawler/DamageNumber.cpp +++ b/Crawler/DamageNumber.cpp @@ -2,7 +2,8 @@ const float DamageNumber::MOVE_UP_TIME=0.4; -DamageNumber::DamageNumber(){ +DamageNumber::DamageNumber() +:damage(0){ } DamageNumber::DamageNumber(vf2d pos,int damage): diff --git a/Crawler/Map.h b/Crawler/Map.h index 0dd7e3fc..2f78a861 100644 --- a/Crawler/Map.h +++ b/Crawler/Map.h @@ -15,7 +15,7 @@ struct TileCollisionData{ }; struct TilesetData{ - Renderable*tileset; + Renderable*tileset=nullptr; std::mapforegroundTiles; std::mapupperForegroundTiles; std::mapcollision; diff --git a/Crawler/MonsterData.cpp b/Crawler/MonsterData.cpp index 75ce62a0..79b00c94 100644 --- a/Crawler/MonsterData.cpp +++ b/Crawler/MonsterData.cpp @@ -11,7 +11,8 @@ INCLUDE_ANIMATION_DATA std::mapMONSTER_DATA; -MonsterData::MonsterData(){} +MonsterData::MonsterData() +:atk(0),collisionDmg(0),hp(0),id(0),moveSpd(0),size(0),strategy(0){} MonsterData::MonsterData(int id,std::string name,int hp,int atk,std::vectoranimations,float moveSpd,float size,int strategy,int collisionDmg): id(id),name(name),hp(hp),atk(atk),moveSpd(moveSpd),size(size),strategy(strategy),animations(animations),collisionDmg(collisionDmg){} diff --git a/Crawler/Pathfinding.h b/Crawler/Pathfinding.h index eae0f0d8..da120b58 100644 --- a/Crawler/Pathfinding.h +++ b/Crawler/Pathfinding.h @@ -12,7 +12,7 @@ struct Pathfinding{ int x; // Nodes position in 2D space int y; std::vector vecNeighbours; // Connections to neighbours - sNode* parent; // Node connecting to this node that offers shortest parent + sNode* parent=nullptr; // Node connecting to this node that offers shortest parent }; sNode *nodes = nullptr; diff --git a/Crawler/TMXParser.h b/Crawler/TMXParser.h index a0383563..dd097110 100644 --- a/Crawler/TMXParser.h +++ b/Crawler/TMXParser.h @@ -18,7 +18,7 @@ struct XMLTag{ }; struct MapTag{ - int width,height; + int width=0,height=0; vi2d playerSpawnLocation; friend std::ostream& operator << (std::ostream& os, MapTag& rhs); }; diff --git a/Crawler/TSXParser.h b/Crawler/TSXParser.h index 90167551..834e562c 100644 --- a/Crawler/TSXParser.h +++ b/Crawler/TSXParser.h @@ -113,7 +113,8 @@ class TSXParser{ } std::cout<<"\n"<<"=============\n"; } - TSXParser::TSXParser(std::string file){ + TSXParser::TSXParser(std::string file) + :previousTagID(-1){ std::ifstream f(file,std::ios::in); std::string accumulator=""; diff --git a/Crawler/Version.h b/Crawler/Version.h index fcc714fd..04c60fbe 100644 --- a/Crawler/Version.h +++ b/Crawler/Version.h @@ -2,7 +2,7 @@ #define VERSION_MAJOR 0 #define VERSION_MINOR 2 #define VERSION_PATCH 0 -#define VERSION_BUILD 1038 +#define VERSION_BUILD 1041 #define stringify(a) stringify_(a) #define stringify_(a) #a diff --git a/Crawler/pge.html b/Crawler/pge.html index 28be566b..b431c3c6 100644 --- a/Crawler/pge.html +++ b/Crawler/pge.html @@ -1 +1,1295 @@ -Emscripten-Generated Codeimage/svg+xml
Downloading...
Resize canvasLock/hide mouse pointer    
\ No newline at end of file + + + + + + Emscripten-Generated Code + + + + + image/svg+xml + + +
+
Downloading...
+ + + Resize canvas + Lock/hide mouse pointer     + + + + +
+ +
+ + +
+ +
+ + + + + + + diff --git a/Crawler/pge.wasm b/Crawler/pge.wasm index 09d1b815..96e394e4 100644 Binary files a/Crawler/pge.wasm and b/Crawler/pge.wasm differ diff --git a/x64/Release/Crawler.exe b/x64/Release/Crawler.exe index 1ed7f588..3ca5fffc 100644 Binary files a/x64/Release/Crawler.exe and b/x64/Release/Crawler.exe differ diff --git a/x64/Release/Crawler.exe.lastcodeanalysissucceeded b/x64/Release/Crawler.exe.lastcodeanalysissucceeded new file mode 100644 index 00000000..e69de29b