From 2ce47e21651a87cf646165ce535817d11007a092 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miloslav=20=C4=8C=C3=AD=C5=BE?= Date: Mon, 6 Jul 2020 11:25:01 +0200 Subject: [PATCH] Update level --- assets/levelZ.gif | Bin 4271 -> 4534 bytes platform_sdl.h | 32 ++++++++++++++++---------------- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/assets/levelZ.gif b/assets/levelZ.gif index 3c95ba6d6b08529ee270655037a211b90c5ddf0c..b95ca76f1690a90db0f8b2048e8577d72dbc1a9b 100644 GIT binary patch delta 3579 zcmV0H-XRZ#UB3K&zH*TDNQc!G)_cfAo2ZMcmShix=TgRG( zQ>rw8?xjoq_4W?9G2ipH3KI*dcz`6}Dej)`2M2MK>lXSqgu&(Iidqfj44k$Cy=PlI+o_ z<307+x0;X}{>NXD*d6JCl1Vb@WE=jVSz2h@!O>o6?6J2&SzB6Ik&pLjIGvb8epqH> zZrb?biES1N=XS@`=_rG7md2${d-D0^Yk$_pSbzR$ie!JG0$P@+p_cWtsFgIa@5zS`w;mr7@Ab^YaP+k+4) zd0?-+R-^5mi~`W0lI)qqoU)W&G;6c@fe9^{(2WIOX743=Xeqvy){nN;03a+JSAr_+ zxB$R<(7AtsVft)`xDGn4ckoJBnuHP7D_IHnmbO8^pz^~nzyfn*uB8P#tKqtWwp+-V z45tvUo0mvDS;f2B$lwNf@+c6&Q-PW3kXc2ma8oFQqhrk3Y743oN*IE43E7OcBSJXa zy7R3*n~d_7MB7NQws(1lFTRF^t@J6!Jv}hUIU9dGGQw5=2(-{x7us^s)pT9j*V>A0 zNd7NZ=p~svW_!#O+EO39Y1?9Yu;p^zE#kP1EtgONeD`u~m)CgftpwS~0nkR^B@ON) zx-bFrx1LOs-_oVJlIB-vDp``h|qoy7uWM zNA-V{2Syl?7VC_=4*Mdq(;o2^S7Z$z(%_rcdB7bP6t(i|vWH?of&RS&10W;1mFc7&98pU$)5z_u|J}Lryk2n4e7$9 zDFh~lHh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Vll`bduQ_>m83B>`EHr6`W;I7s%$jv!%@z(|cO3I2^P`HLtS zlkGT@wkV7UX_JLyk0ptdVu*_v`H>x&k0D7BlxT^VsEM5DiJ&NopHz%L36vKYiwg;n z5y^j${*aWHn2DR%iJusXXHbv)HI-BueO7soM5&M>iIkPtl}rhiPdS#FB$a3Rh4z4o zBf*nB*^+m8l6z@d8R?HV`Ilh`lW*0Q#duw2X_(B1m{K*EZF!B3X^?@*mlai+UkI7M zw33P8nV-~{?|2I6K#)~=nVnf)=BSw)h?;+$i6NkwnXK8GD}|ZeG@G<}khUqCxQUjo zxtkawnwrU(z{!feDSgCQoUtLCm6@E%2};N5o3;6z6v=#TkbKwKo6i18o%a--$~c|e zSsl#jnA;hi7vY`3_?zbGm+1MJ>e-G*ah~nzp0$aUim8$Id5<2D7UN?C9*|QWfN_5w z@C^j2D;@xM_J9%dNuRo@kh=Jw`N)uq*^T>&7XA638x^4ZHlPJc8V3q@3c8@m7mxKA zp$UnfSy`bsaG?MypahC{9*UqLDx&C6p1~EL<7t>y>5(R?i#!^e6`>$0d7Cs^qa)#< zJzA7R2}(j*m^8Yh{Wy{iik19$PfdSHnIdYV_H-|+nWaa1l}D*<8@Z4bVR1tmnnh}) z^+}HrDw6g{k4t(HX6mF~TAw}|r5ZV=QYxn!N2d#_rQPI4GFhadY1xsJSx5%zr}GJ= z9I2Iv>Y<9-o{VagZThH@ai+Xkr@G0DT)L%c3Z;0;qoJCl9zal-im0D@q?Kvvrq!sG zo>{5`b*hGxs%u)J9QmfUYND{(3$l7EIr^7?8k&OIrGNUK>-np9*?7vjtjyZ1&H7G8 z(@+R0t;}c=&U&pfQ4uSlt@p&O4Fweag{|Vc5brdtK0y-OYOUkCuIzde0RaFzTasaD diff --git a/platform_sdl.h b/platform_sdl.h index cfb9cf1..5e40c06 100644 --- a/platform_sdl.h +++ b/platform_sdl.h @@ -30,7 +30,7 @@ #include "sounds.h" #undef SFG_LOG -#define SFG_LOG(str) printf("game: %s\n",str); +#define SFG_LOG(str) puts(str); #undef SFG_BACKGROUND_BLUR #define SFG_BACKGROUND_BLUR 1 @@ -261,26 +261,26 @@ int main(int argc, char *argv[]) else if (argv[i][0] == '-' && argv[i][1] == 'f' && argv[i][2] == 0) argForceFullscreen = 1; else - printf("SDL: unknown argument: %s\n",argv[i]); + puts("SDL: unknown argument"); } if (argHelp) { - printf("TODOGAME, a suckless first person shooter game (SDL2 frontend)\n\n"); - printf("version TODO, by Miloslav Ciz, released under CC0 1.0 + waiver of all IP\n"); - printf("possible arguments:\n\n"); - printf("-h print this help and end\n"); - printf("-w force run in window\n"); - printf("-f force run fullscreen\n\n"); - printf("controls:\n"); - printf("TODO\n"); + puts("TODOGAME, a suckless first person shooter game (SDL2 frontend)\n"); + puts("version TODO, by Miloslav Ciz, released under CC0 1.0 + waiver of all IP"); + puts("possible arguments:\n"); + puts("-h print this help and end"); + puts("-w force run in window"); + puts("-f force run fullscreen\n"); + puts("controls:"); + puts("TODO"); return 0; } - printf("SDL: starting\n"); + puts("SDL: starting"); - printf("SDL: initializing SDL\n"); + puts("SDL: initializing SDL"); window = SDL_CreateWindow("raycasting", SDL_WINDOWPOS_UNDEFINED, @@ -301,7 +301,7 @@ int main(int argc, char *argv[]) if (!argForceWindow && argForceFullscreen) { - printf("SDL: setting fullscreen\n"); + puts("SDL: setting fullscreen"); SDL_SetWindowFullscreen(window,SDL_WINDOW_FULLSCREEN_DESKTOP); } @@ -321,7 +321,7 @@ int main(int argc, char *argv[]) audioSpec.samples = 128; if (SDL_OpenAudio(&audioSpec,0) < 0) - printf("SDL: could not initialize audio\n"); + puts("SDL: could not initialize audio"); for (int i = 0; i < SFG_SFX_SAMPLE_COUNT; ++i) audioBuff[i] = 127; @@ -337,7 +337,7 @@ int main(int argc, char *argv[]) mainLoopIteration(); #endif - printf("SDL: freeing SDL\n"); + puts("SDL: freeing SDL"); SDL_PauseAudio(1); SDL_DestroyTexture(texture); @@ -345,7 +345,7 @@ int main(int argc, char *argv[]) SDL_DestroyWindow(window); SDL_CloseAudio(); - printf("SDL: ending\n"); + puts("SDL: ending"); return 0; }