From c874a7d228514fe167a164866ab424c2cff67de3 Mon Sep 17 00:00:00 2001 From: Sander Schobers Date: Mon, 5 Jun 2023 07:24:44 +0200 Subject: [PATCH] Tweaked level. Added/corrected some tiles. Added background color. --- src/assets/images/tiles_grass_32.png | Bin 8971 -> 9402 bytes src/assets/levels/level1.txt | 4 ++-- src/game_scene.zig | 11 +++++++---- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/src/assets/images/tiles_grass_32.png b/src/assets/images/tiles_grass_32.png index ee54e25a6aeb7baf529cf98d8d9e64db61150a4d..e9809852088cdb37c4cad29d2c128d28eef3f36e 100644 GIT binary patch delta 9058 zcmbW6S5y;U*smu90Wkjxl_FK?AYG(`ARVO&p(AyWuJjT>YLG5X1*JDBp|=15 zqzaMVLJdSX{J)!X^_`0|YtPN>H8Xpy*?a$<_nBzr2DPt65OC0iL(M%nRQeXF zzu#J^K3an^bd{9!4D@^{XMfN|N_A_KQ-Lu#8Hfmx?eg4@ zjDbjo^8NgJ84|WRb>`nrmE$%g7-+D4gP5PN*5A*;2Zo zx2E{wv;XR)Me9_+lUAa(%Y7-b9K{}*i2T7z{A(Xm#v7JPC0_xh7HNHjpj=y1`B>`y z_isALn}Z;N{W9AW;K43t`khBpDIxuZ3^%X7I)44=rE*TtJ$#kLTDOx-;fBIR`f+@H zF+G&#jyQjI70rDnqZ`9JAGj^otA_nVnXmOLG?|s|M+e|`NBu|79~kT7JbV@2tY9Kn zP>%<3gDT{rnSE7nSa2FA4MXRBocm#SLTH|a8S?+LK*vUefyI|7vS0@|sjuKb)ZKi? z88QPN!YiYT0NwQ`osY+Mg>ZVG-r*gh^i+Zt z+*pl$)4QM_x1WCrka}nqib_ZE-s|t4aO-*7@UNdIjLAh0FBE%F=Dp%0UzNCm^1j}? z8`^p1pWNzl4m!EM2>t9@^Sz++8&c%hXNmVNlcYWp@s&2?W~cf|JtH%PLa5=zA3r6D z(Pu#xXGsbg+qXDcQ;ub@Rp^V1cGq5@?v_*I?ee!X6lYT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t^IPU zDD_F+4xuCnugt_kPbklnm@?;=r*7KH*j*pqBM)^9MaEFcgu!rm>5&OA$#Hr!69Itg zZTcT1kGf<1knF4)wsT)5N|aB}15R?%+;T5Iy-O%RzxPTITz1pHc8wv#P;Y``KU^x$7aow=u(#y|Ez%J{i3I9+gn7(EHyfEd)wtP6GJwOFhxFL5%@E>Ar zr@$-)Xu$j`EyNgfpRCQ8G0Us8@%(#1Edi zIZfA*2-$U_It^jF(Q7v*bqeW?TK)|564m86d6hRbQjRC*C6J_o;ly*g$($WM8>xTG z_1r3slld3WY)C}Z&q?Q#%=yqhHXGy@X5U-FrVX9Bw*n2aG0$i~Z!~?!x znBdEH)SHlLs$0(;|MkXeszMigyo~ygQ+ma+x!NhY8Z(7L{VEEJ=A|=I?fh}d4j(2nl eO|pEbYxZZ-1V`efmuxqh3_McNeo&=k8~I-(RA6oZ diff --git a/src/assets/levels/level1.txt b/src/assets/levels/level1.txt index afc06bc..4e48f6a 100644 --- a/src/assets/levels/level1.txt +++ b/src/assets/levels/level1.txt @@ -7,8 +7,8 @@ x x x xxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxx x x xxxxx S x x x x xxxxx x x xxxxxx x xxxxx x xxx x x x x -x x xxxxxxxxx x x S xx x x -x S S x x x xxxxxxxxxxx xxxxx xxxxxxxxxxxxx x xxxxx x +x x xxxxxxxxx x x xxxxx S xx x x +x S S x x x xxxxxxxxxxx xxx xxxxxxxxxxxxx x xxxxx x x xxxxxx xxxxxx xxxxx xxxxx xxxxxxx xxxxx S x x x x x x xxxxx x x x x xxxxxxxxxxx x x x xxx xx x x x x xxx x xxx x x x diff --git a/src/game_scene.zig b/src/game_scene.zig index b83756f..c679b22 100644 --- a/src/game_scene.zig +++ b/src/game_scene.zig @@ -98,11 +98,14 @@ pub const GameScene = struct { const bounds = viewport.bounds; const background = renderer.textures.get("background_jungle").?; + const backgroundColor = allegro.mapRgb(211, 229, 252); const backgroundDisplacementFactor = -0.01; const backgroundCenter = self.game.playerPosition.x * backgroundDisplacementFactor; const backgroundLeft = @mod(backgroundCenter, 1.0) - 1; + allegro.clearToColor(backgroundColor); + background.drawScaled(bounds.min.x + backgroundLeft * bounds.width(), bounds.min.y, bounds.width(), bounds.height()); background.drawScaled(bounds.min.x + (backgroundLeft + 1) * bounds.width(), bounds.min.y, bounds.width(), bounds.height()); @@ -130,14 +133,14 @@ pub const GameScene = struct { switch (ordinals.count()) { 0 => offset = 16, 1 => { - if (ordinals.right) offset = 0; - if (ordinals.left) offset = 3; + if (ordinals.right) offset = 12; + if (ordinals.left) offset = 13; if (ordinals.top) offset = 15; if (ordinals.bottom) offset = 14; }, 2 => { - if (ordinals.right and ordinals.left) offset = 1 + self.game.randomTileOffset(x, y, 2); - if (ordinals.top and ordinals.bottom) offset = 12; + if (ordinals.right and ordinals.left) offset = 0 + self.game.randomTileOffset(x, y, 4); + if (ordinals.top and ordinals.bottom) offset = 20 + self.game.randomTileOffset(x, y, 2); if (ordinals.top and ordinals.left) offset = 9; if (ordinals.top and ordinals.right) offset = 8; if (ordinals.right and ordinals.bottom) offset = 4;