Compare commits
2 Commits
f449eda43f
...
ff1863182e
Author | SHA1 | Date | |
---|---|---|---|
|
ff1863182e | ||
|
1cbc8cbbc0 |
3
.gitignore
vendored
3
.gitignore
vendored
@ -110,3 +110,6 @@ CMakeCache.txt
|
||||
|
||||
# macOS finder files
|
||||
.DS_Store
|
||||
|
||||
# VS Code project stuff
|
||||
.vscode*
|
||||
|
@ -145,16 +145,26 @@ void Game::init(const char *title, int width, int height, bool fullscreen, int g
|
||||
}
|
||||
|
||||
std::string kaijuTex = Game::projPath + "assets/textures/actors/kaijuturtle.png";
|
||||
<<<<<<< HEAD
|
||||
std::string fontTex = Game::projPath + "assets/textures/ui/ui-font-lorez5.png";
|
||||
std::string textBoxTex = Game::projPath + "assets/textures/ui/ui-element-bubble.png";
|
||||
std::string musicFile = Game::projPath + "assets/audio/music/sillypuppy.ogg";
|
||||
std::string sfxFile = Game::projPath + "assets/audio/sfx/bwoop.wav";
|
||||
|
||||
assets->AddTexture("player", kaijuTex.c_str());
|
||||
assets->AddTexture("font", fontTex.c_str());
|
||||
assets->AddTexture("textBox", textBoxTex.c_str());
|
||||
=======
|
||||
|
||||
assets->AddTexture("player", kaijuTex.c_str());
|
||||
assets->AddTexture("font", "assets/textures/ui/ui-font-lorez5.png");
|
||||
assets->AddTexture("textBox", "assets/textures/ui/ui-element-bubble.png");
|
||||
assets->AddTexture("collider","assets/textures/ColTex.png");
|
||||
>>>>>>> f449eda43f6cbd3f90508029e94741f4c2de1f9b
|
||||
|
||||
assets->AddMusicTrack("simonZ","assets/audio/music/sillypuppy.ogg");
|
||||
assets->AddMusicTrack("simonZ","assets/audio/music/victory.ogg");
|
||||
assets->AddMusicTrack("simonZ",musicFile.c_str());
|
||||
|
||||
assets->AddSoundClip("bwoop","assets/audio/sfx/bwoop.wav");
|
||||
assets->AddSoundClip("bwoop",sfxFile.c_str());
|
||||
|
||||
std::string myText = "U to Start";
|
||||
|
||||
@ -245,7 +255,7 @@ void Game::update()
|
||||
if (Mix_PlayingMusic() == 0 && gsm->currentState == GameStateManager::ST_COREGAME)
|
||||
{
|
||||
// std::cout << "Play Music Now" << std::endl;
|
||||
// Mix_PlayMusic(assets->GetMusicTrack("simonZ"), -1);
|
||||
Mix_PlayMusic(assets->GetMusicTrack("simonZ"), -1);
|
||||
}
|
||||
if (Mix_PlayingMusic() != 0 && gsm->currentState != GameStateManager::ST_COREGAME)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user