diff options
Diffstat (limited to 'main.cpp')
| -rw-r--r-- | main.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -447,9 +447,11 @@ void main_loop(void *arg) break; } //show map !? +#ifndef __EMSCRIPTEN__ rect={100,20,150,150}; SDL_RenderCopy(ctx->ren,ctx->textures[8],NULL,&rect); +#endif if(ctx->world.player.dead) { sdl_put_str(ctx->ren, ctx->textures[3],300, -1, 10,"LUNATIC LEMMY DIED!",250,100,100,19,ctx->win_width,ctx->win_height,1,2); @@ -506,6 +508,7 @@ int main(int, char**){ 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)); // PERLIN GENEARTED MAP +#ifndef __EMSCRIPTEN__ ctx->textures.push_back(SDL_CreateTexture(ctx->ren, SDL_PIXELFORMAT_RGBA8888, SDL_TEXTUREACCESS_TARGET, 1024, 768)); double seed=22; @@ -576,12 +579,9 @@ int main(int, char**){ } } SDL_SetRenderTarget(ctx->ren, NULL); - +#endif // PERLIN GENEARTED MAP OVER - - - ctx->show_tiles_size=ctx->win_height/15; ctx->show_tiles_back=ctx->win_width/ctx->show_tiles_size*0.25; |
