modify map and finalize pokemon randomization

This commit is contained in:
2025-04-07 20:32:22 -04:00
parent 8a8b6c73bb
commit 1f052f901b
3 changed files with 10 additions and 12 deletions
BIN
View File
Binary file not shown.
+10 -12
View File
@@ -61,7 +61,7 @@ private:
MOVEMENT_DIR characterFacing = DOWN; MOVEMENT_DIR characterFacing = DOWN;
int randPokemon = getRandomPokemonId(); int randPokemon = getRandomPokemonId();
olc::vi2d randPokemonXY = { 1, 1 }; olc::vi2d randPokemonXY = { 2, 1 };
int pokemonCaptured = false; int pokemonCaptured = false;
olc::Sprite *backgroundSprite = nullptr; olc::Sprite *backgroundSprite = nullptr;
@@ -74,11 +74,11 @@ protected:
characterSprite = new olc::Sprite("./assets/characters.png"); characterSprite = new olc::Sprite("./assets/characters.png");
pokemonSprite = new olc::Sprite("./assets/pokemon/pokemon151.png"); pokemonSprite = new olc::Sprite("./assets/pokemon/pokemon151.png");
testLevel += L"..............######";
testLevel += L".................###";
testLevel += L"...................#";
testLevel += L"...................."; testLevel += L"....................";
testLevel += L"...................."; testLevel += L".#########..........";
testLevel += L"....................";
testLevel += L"....................";
testLevel += L"....................";
testLevel += L"...................."; testLevel += L"....................";
testLevel += L".............#......"; testLevel += L".............#......";
testLevel += L".............#......"; testLevel += L".............#......";
@@ -89,12 +89,11 @@ protected:
testLevel += L"##..#############..."; testLevel += L"##..#############...";
testLevel += L"...................."; testLevel += L"....................";
testLevel += L"...................."; testLevel += L"....................";
testLevel += L"...................."; testLevel += L"#####..............#";
testLevel += L"...................."; testLevel += L"#####..............#";
testLevel += L"...................."; testLevel += L"#####..............#";
testLevel += L"...................."; testLevel += L"#............#######";
testLevel += L"...................."; testLevel += L"#....###############";
testLevel += L"....................";
return true; return true;
} }
@@ -175,7 +174,6 @@ protected:
//cout << "(" << targetX << ", " << targetY << ")" << endl; //cout << "(" << targetX << ", " << targetY << ")" << endl;
if(getTile(targetX, targetY) == L'p') { if(getTile(targetX, targetY) == L'p') {
cout << "!";
pokemonCaptured = true; pokemonCaptured = true;
} }
} }
BIN
View File
Binary file not shown.