Nimbin[12]?SDL & Graphics / mapcreator / commits / 95a6e7c

mapcreator git · master

SDL3 2.5D game and engine using assets, with map editor

sdl3 c++ game engine map-editor cmake · first commit 2025-10-31 · last commit 2026-09-07 (1 month ago) · synced 3 days ago · upstream: git.ide3.de/hsnr/sdl-spieleentwicklung/map_creator

C++ 99.3%
git clone https://git.christianimmanuel.de/sdl-graphics/mapcreator.gitwget https://git.christianimmanuel.de/sdl-graphics/mapcreator/archive/mapcreator.tar.gz

Fix bird missing

Christian Immanuel · 2026-02-20 16:26 · 95a6e7c1824d4486f997477914c28619e1bfd3e5

 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);