From 3a5adfac6472e29cf6632f0c400c86b8da1c1674 Mon Sep 17 00:00:00 2001 From: Fcalva Date: Mon, 11 Nov 2024 13:36:10 +0100 Subject: [PATCH] revert ce0a319a52122e65691494ee6c1d91838a43247c revert Fix post-jam --- eng/moteur.c | 1 + include/C3D/config.h | 4 ++-- src/.game.c | Bin 20480 -> 0 bytes src/game.c | 5 ++++- src/gfx.c | 2 +- 5 files changed, 8 insertions(+), 4 deletions(-) delete mode 100644 src/.game.c diff --git a/eng/moteur.c b/eng/moteur.c index c69e5ef..94f7814 100644 --- a/eng/moteur.c +++ b/eng/moteur.c @@ -37,6 +37,7 @@ void move(RcGame *game) { V2d *dir = &game->player.dir; V2d *pos = &game->player.pos; int map_w = game->current_map->w; + int map_h = game->current_map->h; fixed_t oldDirX; fixed_t oldPlaneX; diff --git a/include/C3D/config.h b/include/C3D/config.h index 5566c13..4355c05 100644 --- a/include/C3D/config.h +++ b/include/C3D/config.h @@ -7,7 +7,7 @@ #define screen_w 128 #define screen_h 64 -#define viewport_w 109 +#define viewport_w 100 #define viewport_h 64 #define max_dist fix(32) //Max sprites to attempt to render @@ -32,6 +32,6 @@ //===== Paramètres de debug ===== -#define debug 0 //pour afficher les infos de debug +#define debug 1 //pour afficher les infos de debug #define asm_opti 0 diff --git a/src/.game.c b/src/.game.c deleted file mode 100644 index 2115bd28cffc1286b9907a16a6e9129be96605df..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 20480 zcmeI2e~cVu8ONtkEdupNMX@OOww1bjce}TH*W*X8cj$N392uiAzL?8i;2}X;AhD0uE7c|O z&9_oLRrIH`1F5;FrtQ4JB}Ys3{w>wQeA%x=VgGow)*Re2QJD!Uet%dm^v~qWe!B1m z*Sch$DQkSgs1_!b_MAxldqu#&j^0#5oUFsBY3OEIv0!{&^fK$LJ;1qBQ z{J$v>)lT=W#_7|nP((m@X+d=04a1u^{)Fb=ja2+hb0hobl*bBR00xp9wSPieP^t>10e)uk2 z5A(1WCg5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Xfa@w45i>f-s-c8M zTV3(E*cy`=5yZjH#~HPXwS2J{J3xxQVeIvLhYk~Nb#At{FKX6&Ju>S|tZ}3GFBWu) zbX*fxa)F$MUDwbZC?Iy^qRCcBklL+yt2Mp7y4FSQc3r+>hZUh!NCcSNzH7_G-rQu; zi%rw37dz_}14VJy^cV3#iy?+GjVv!miwE*vV3Oo$p!2kqaq1DHarPocBGj;wP4R}I z-$KmGhWVdvWN5F9gK7N=kZyLJH?ncQew%5wownQQI^OLU7OOVm+xHhMhV?3b$i`x! ztvp5Al+@wptqUrJx%r~6))H&!*|lv6Go?mXf{aHLX)7~6xW%lA@3>M@^`P2$y(Am= z!cH@rcqj#xne^;v%QR_4JeD;1{lA^x>PJ9+|MT-vZ_ji7XZRC54tK)UAmt8&+nfSU z0jGddz$xGqa0)mDoB~b(r+`zyDc}@%iwekh4f%4UC%SU8)#`qk=Gh_BUR&oYg`VVk zzP{*8{YB|bi{=B$>92l4C5Y_&S^UAue6qB2LS|}@4`K5A|Ku{}eVLz?-~Y$0>#y+} z|5bPnehZJm&*6UfA)JJ7!L4u$+zb`?6l{j~!RyT1KMjw7%>UmC$KVF|5>#OajKT=4 zg5~f6^Y>qdFG2(6;3^0p3m=77nX`Wgeg;2<+u(XwfB?o}3^v0bnYX_Ou7$mDDXa#W z&wqk>`(MBva2;F&`{C0t1PWHea=456`&-}|koo;15W)ed!5)yg{xjk4%-R12?u9$x zb~pw{pbB}IgbBC^J`S(&@#R@~0)7R*ga_b0_z`>^Zi0hw1<3sWZs>#a;VI_szX3PG z4G_W%48b4_z!|Ut{=)qIqi`SG2`Atu=?F3yj0Z zU?u2&^cK6nEA~I2fMSa$`Sf&D_c-AeRft5Ln_E=j7F8^+<7uDpTbvN-S~TGnRj?ex zEvo34I~player, &hit); if(dist > weapon_stats[game->curr_weapon].range || !hit) return; + //:p + if(hit > 0x90000000) + return; hit->hp -= weapon_stats[game->curr_weapon].dmg; } diff --git a/src/gfx.c b/src/gfx.c index 36d3cb1..8b7e687 100644 --- a/src/gfx.c +++ b/src/gfx.c @@ -97,7 +97,7 @@ void draw_hands(CCGame *game){ void draw_gui(CCGame *game){ draw_hands(game); - dline(109,0,109,63,3); + dline(100,0,100,63,3); dprint_opt(127,10,3,C_NONE,DTEXT_RIGHT,DTEXT_TOP,"%d",game->_bgame.player.hp); //TODO : replace w/ icon dtext_opt(127,20,3,C_NONE,DTEXT_RIGHT,DTEXT_TOP,"HP",-1);