mapcreator git · master
SDL3 2.5D game and engine using assets, with map editor
C++ 99.3%git clone https://git.christianimmanuel.de/sdl-graphics/mapcreator.gitwget https://git.christianimmanuel.de/sdl-graphics/mapcreator/archive/mapcreator.tar.gzFix bird missing
src/character/character.cpp | 2 +- src/game/state_playing.cpp | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/character/character.cpp b/src/character/character.cpp index 932150b..7061187 100644 --- a/src/character/character.cpp +++ b/src/character/character.cpp @@ -80,7 +80,7 @@ Character::Init(SDL_Renderer* renderer) { selected_item = inventory->hotbar_hands; bird = new Bird(x, y); - bird->Init(renderer); + //bird->Init(renderer); bird->set_State(BirdState::WALKING, 1.4); diff --git a/src/game/state_playing.cpp b/src/game/state_playing.cpp index 185b770..349c89d 100644 --- a/src/game/state_playing.cpp +++ b/src/game/state_playing.cpp @@ -29,6 +29,9 @@ bool StatePlaying::Init(Game* game) { cursor = game->cursor; cursor->set_State(CursorState::HIDDEN); + // INIT Bird + Bird::Init(game->renderer); + player = std::make_unique<Character>(); player->Init(game->renderer); @@ -40,9 +43,6 @@ bool StatePlaying::Init(Game* game) { // INIT Building BuildingData::Init(game->renderer); - // INIT Bird - Bird::Init(game->renderer); - // INIT Enemy Enemy::init_All(game->renderer);