summaryrefslogtreecommitdiff
path: root/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/main.cpp b/main.cpp
index 59e1e4a..31bca71 100644
--- a/main.cpp
+++ b/main.cpp
@@ -129,10 +129,10 @@ void sdl_play_sound()
if (first)
{
- SDL_LoadWAV("music.wav", &wavSpec, &wavBuffer2, &wavLength2);
+ SDL_LoadWAV("assets/music.wav", &wavSpec, &wavBuffer2, &wavLength2);
std::cout << "---music.wav---" << std::endl;
show_AudioSpec(&wavSpec);
- SDL_LoadWAV("coin.wav", &wavSpec, &wavBuffer, &wavLength);
+ SDL_LoadWAV("assets/coin.wav", &wavSpec, &wavBuffer, &wavLength);
std::cout << "---coin.wav---" << std::endl;
show_AudioSpec(&wavSpec);
sample=wavLength;
@@ -499,14 +499,14 @@ int main(int, char**){
ctx->ren=ctx->sdl_init.second.second;
// init Textures
- ctx->textures.push_back(sdl_load_texture("guy01.bmp",0,0,255,ctx->ren));
- ctx->textures.push_back(sdl_load_texture("guy02.bmp",0,0,255,ctx->ren));
- ctx->textures.push_back(sdl_load_texture("coin.bmp",255,255,255,ctx->ren));
- ctx->textures.push_back(sdl_load_texture("fonts.bmp",0,0,0,ctx->ren));
- ctx->textures.push_back(sdl_load_texture("earth01.bmp",0,0,0,ctx->ren));
- ctx->textures.push_back(sdl_load_texture("gridder01.bmp",255,255,255,ctx->ren));
- ctx->textures.push_back(sdl_load_texture("gridder02.bmp",255,255,255,ctx->ren));
- ctx->textures.push_back(sdl_load_texture("gridder03.bmp",255,255,255,ctx->ren));
+ ctx->textures.push_back(sdl_load_texture("assets/guy01.bmp",0,0,255,ctx->ren));
+ ctx->textures.push_back(sdl_load_texture("assets/guy02.bmp",0,0,255,ctx->ren));
+ ctx->textures.push_back(sdl_load_texture("assets/coin.bmp",255,255,255,ctx->ren));
+ ctx->textures.push_back(sdl_load_texture("assets/fonts.bmp",0,0,0,ctx->ren));
+ ctx->textures.push_back(sdl_load_texture("assets/earth01.bmp",0,0,0,ctx->ren));
+ ctx->textures.push_back(sdl_load_texture("assets/gridder01.bmp",255,255,255,ctx->ren));
+ ctx->textures.push_back(sdl_load_texture("assets/gridder02.bmp",255,255,255,ctx->ren));
+ ctx->textures.push_back(sdl_load_texture("assets/gridder03.bmp",255,255,255,ctx->ren));
// PERLIN GENEARTED MAP
#ifndef __EMSCRIPTEN__
ctx->textures.push_back(SDL_CreateTexture(ctx->ren, SDL_PIXELFORMAT_RGBA8888, SDL_TEXTUREACCESS_TARGET, 1024, 768));