Skip to content

0x2539/Project-Kitten-Renderer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

84 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Project-Kitten-Renderer

This is how sounds should work:

#include "AudioEngine.h"
class AudioEngine
{
public:
	static void playSound(string sound_path);
	static void loadSound(string sound_path);
};

#include "Sounds.h"
{
public:
	static constant string PLAYER_DIES = "sounds/player_die.wav";
	static constant string MONSTER_DIES = "sounds/monster_die.wav";
	static constant string FINISHED_LEVEL = "sounds/finished_level.wav";
	...
}

#include "SomeGameLogicClass.h"
void checkMonsterCollision()
{
	...
	if(monster was killed by user)
	{
		AudioEngine::playSound(Sounds::MONSTER_DIES);
	}
	...
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •