The Snivy Video Game Is Complete

This commit is contained in:
2025-12-29 05:10:56 -05:00
parent d0f9669b8b
commit 62b988a678
705 changed files with 210576 additions and 162 deletions

View File

@@ -1,6 +1,7 @@
#include "resources.h"
using namespace game::resource;
using namespace game::anm2;
namespace game
{
@@ -8,5 +9,16 @@ namespace game
{
for (int i = 0; i < shader::COUNT; i++)
shaders[i] = Shader(shader::INFO[i].vertex, shader::INFO[i].fragment);
for (int i = 0; i < audio::COUNT; i++)
audio[i] = Audio(audio::PATHS[i]);
for (int i = 0; i < texture::COUNT; i++)
textures[i] = Texture(texture::PATHS[i]);
for (int i = 0; i < anm2::COUNT; i++)
anm2s[i] = Anm2(anm2::PATHS[i]);
}
void Resources::sound_play(audio::Type type) { audio[type].play(); }
}