diff --git a/src/gamelib/character.cpp b/src/gamelib/character.cpp index 40a7341..b2dbcc7 100644 --- a/src/gamelib/character.cpp +++ b/src/gamelib/character.cpp @@ -119,7 +119,7 @@ namespace curry { item.source = source_rect(); item.destination = destination_rect(parViewport.position()); item.texture = texture(); - parDQ.add_for_rendering(DrawaLayerNames::Background, std::move(item)); + parDQ.add_for_rendering(DrawaLayerNames::Characters, std::move(item)); assert(not item.texture); } diff --git a/src/gamelib/draw_layer_names.hpp b/src/gamelib/draw_layer_names.hpp index b3f7d11..e42a6c3 100644 --- a/src/gamelib/draw_layer_names.hpp +++ b/src/gamelib/draw_layer_names.hpp @@ -25,6 +25,7 @@ namespace curry { BETTER_ENUM(DrawaLayerNames, uint16_t, Background, - Debug - ); + Debug, + Characters + ) } //namespace curry diff --git a/src/gamelib/ingamescene.cpp b/src/gamelib/ingamescene.cpp index e6de36d..d7bfdfa 100644 --- a/src/gamelib/ingamescene.cpp +++ b/src/gamelib/ingamescene.cpp @@ -83,6 +83,7 @@ namespace curry { inp.AddAction(ActionDown, Key(InputDevice_Keyboard, SDL_SCANCODE_DOWN), "Move down"); add_layer_assert_done(drawing_queue(), DrawaLayerNames::Background); + add_layer_assert_done(drawing_queue(), DrawaLayerNames::Characters); #if !defined(NDEBUG) add_layer_assert_done(drawing_queue(), DrawaLayerNames::Debug); #endif