diff --git a/data/sprites/monsters.sprite b/data/sprites/monsters.sprite index 0e37f62..f54ce4e 100644 --- a/data/sprites/monsters.sprite +++ b/data/sprites/monsters.sprite @@ -46,6 +46,54 @@ "frame_time" : 150, "originx" : 16, "originy" : 40 +}, + +"bat_N" : { + "texture" : "bat", + "topx" : 0, + "topy" : 0, + "height" : 32, + "width" : 32, + "number_of_frames" : 3, + "frame_time" : 150, + "originx" : 16, + "originy" : 40 +}, + +"bat_W" : { + "texture" : "bat", + "topx" : 0, + "topy" : 32, + "height" : 32, + "width" : 32, + "number_of_frames" : 3, + "frame_time" : 150, + "originx" : 16, + "originy" : 40 +}, + +"bat_S" : { + "texture" : "bat", + "topx" : 0, + "topy" : 64, + "height" : 32, + "width" : 32, + "number_of_frames" : 3, + "frame_time" : 150, + "originx" : 16, + "originy" : 40 +}, + +"bat_E" : { + "texture" : "bat", + "topx" : 0, + "topy" : 96, + "height" : 32, + "width" : 32, + "number_of_frames" : 3, + "frame_time" : 150, + "originx" : 16, + "originy" : 40 } } diff --git a/src/saland.cpp b/src/saland.cpp index fe4c6b7..8634241 100644 --- a/src/saland.cpp +++ b/src/saland.cpp @@ -48,6 +48,8 @@ class TitleScreen : public sago::GameStateInterface { sc.Draw(globalData.screen, SDL_GetTicks(), 200, 100); const sago::SagoSprite& bee = globalData.spriteHolder->GetSprite("bee_E"); bee.Draw(globalData.screen, SDL_GetTicks(), 100, 200); + const sago::SagoSprite& bat = globalData.spriteHolder->GetSprite("bat_W"); + bat.Draw(globalData.screen, SDL_GetTicks(), 200, 200); } virtual void ProcessInput(const SDL_Event& event, bool &processed) override {