Skip to content

Commit

Permalink
added background and fixed bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
gustavo-tomas committed Jul 1, 2022
1 parent 516d57f commit 450db9f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/Sound.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ void Sound::Open(const char* file)

Sound::~Sound()
{
Stop();

}

bool Sound::IsOpen()
Expand Down
7 changes: 7 additions & 0 deletions src/State.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,13 @@
State::State() :
music("./assets/audio/stageState.ogg")
{
// Background
GameObject* bgGo = new GameObject();
Sprite* bg = new Sprite(*bgGo, "./assets/image/ocean.jpg");

bgGo->AddComponent(bg);
objectArray.emplace_back(bgGo);

// Tileset & Tilemap
GameObject* tileGo = new GameObject();
TileSet* tileSet = new TileSet(64, 64, "./assets/image/tileset.png");
Expand Down

0 comments on commit 450db9f

Please sign in to comment.