From 55fb38aa0a2220a61c92a7eb9125bd46bdd59e4b Mon Sep 17 00:00:00 2001 From: Wirus Date: Sun, 5 Apr 2020 21:46:04 +0200 Subject: [PATCH 1/3] add water texture to Map --- data/images/terrain/water.jpg | Bin 0 -> 4383 bytes data/mapdata/map.txt | 40 +++++++++++++++++----------------- src/game/Map.py | 4 ++++ 3 files changed, 24 insertions(+), 20 deletions(-) create mode 100644 data/images/terrain/water.jpg diff --git a/data/images/terrain/water.jpg b/data/images/terrain/water.jpg new file mode 100644 index 0000000000000000000000000000000000000000..a7ecffeabb2a37f72bc793e8c24ddacb5b747712 GIT binary patch literal 4383 zcmbW)X;72Nx&YuW3wuzIfC&Z+i;x865ctrr2U!!6KoW34#$iz)88?U^i#Q1&YK*Kw zF=kL8D}u@>3ggV2AiHBwli-Fr2m%7)h=MrkIbP0LXF!zWx&k2xCQr#>cY!u^GEIa1ZRxz~&M?y|B0(9%o+$mO_of zQsW|`u(=z(@$0c!IVpQM2lKH(*iF9XUq^s2z|`2-#MsEx#KgqR%+wr#v_x1~AkeF9 zRw5nj*E%}bV=!1(Pj{^IdKU}^w+X-AiwJ_?T6e!7l6Rn|59s~ZA`mk(GlT^KWoe1> zcEUJ$|DWTl2Cy~-J^`O#5N7~t4S`uhzV-lXmyt%0e+BTL0fEBcM#d(lX66>l3GG$@ z6as@m;V>g3ID9#~Xn7uhTN|x%B8D2Y+&23$_tov_WeNwZF&CKmq zqtN#2+}v?^0_eMO6Uom%EIcAIDw;xN$0uyrx@~)6+OFN{8JQd|?_f^up}hQplG3AP z$Bv&6R@aDYPoJqfD`{+!$rVbKy7|Ye*V?b&=;-|ER(DTtU;n`1ZJpjQ{NUlE$4_32 zjlZ0joO(4qGym@W!s3UekAHsp%LM^o|7I3WvksCV#mg&_l}|W(_xT zA{ws>Wtya9**JR(Op%+b8rr(dTzpt>ZBw)Fo7=g9FV@ZfMf;cRe+Mi6f64v}_TR22 z00IVCK0KH;5CUjn;Nn;vUh{Ao@n`7od6Q>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NEo;m$t`7PRgjrk8F&P;S7-ly$qPzf@4!0-f{#kp}K_TA2vx zbw{3cZq|ex`b{%Ub8I{(q0L8>xt1J&AMs6ERFClUo2QmQ8cJ-@)bo~pZ>%)m;L>)@_)9&cnMa{ywi$Qne$oUFaU{(K$;#PfwzuuEdj)Pvfdu@ zI|DtaZ06NaZtPu+y2rWA)73q-KYX~V99OuayDdg|#834uXyy<~JmD~XAzp>s)uz!o z*190lDzgJ}6&s0N+RdrBiCR~t<}!|__T zp$b%nJGn05p)aTV6G0=gS6` zuMakleH-?meuYV5dZyMA=4u(rtpGcLN;kY2v(n|Z1>uB};UWjELa-q8tl8oa_f zR@Mu`0QJ52Jhi^2rmL4$w@P*Uv%Qe{-n!l>kTh`j$f85nOWwyV+$HFyer`cYIVAYk zVY|8hC+DY-aQuwdcae3kBixhpJ|cF7i(6Bgv@k)IaLlG8k{%^V8s4^^W{H;l5fNS2 zsT7vi`|Ec7$Yi+H;R_{q;M~lYI$y%D`OCrI!BWv^-1&mjO{yL_@=0QHpgk*#?!XDq zU9pf*sXGmTj_amQY~0tL1-TI4z&RNk6k#diVDuDayU#D68*Y}hlF2N;Hc#RE#M62f qmF Date: Sun, 5 Apr 2020 21:48:55 +0200 Subject: [PATCH 2/3] Fixed wrong spawnpoint coords --- src/entities/Player.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/entities/Player.py b/src/entities/Player.py index ed6f38a..3f33f5b 100644 --- a/src/entities/Player.py +++ b/src/entities/Player.py @@ -7,7 +7,7 @@ import pygame class Player(Entity): def __init__(self, spawnpoint, size): - super().__init__("player.jpg", size, spawnpoint) + super().__init__("player.jpg", size, (spawnpoint[0] * size, spawnpoint[1] * size)) # Where the player is facing, 0 - north, 1 self.rotation = Rotations.NORTH From 2f605c291996541d2837c0405abf298776e68062 Mon Sep 17 00:00:00 2001 From: Wirus Date: Sun, 5 Apr 2020 21:53:10 +0200 Subject: [PATCH 3/3] Game: change player spawnpoint --- src/game/Game.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/game/Game.py b/src/game/Game.py index 88f4647..b0573ab 100644 --- a/src/game/Game.py +++ b/src/game/Game.py @@ -42,7 +42,7 @@ class Game: self.mapDataFolder = path.dirname("../data/mapdata/") self.map = Map(path.join(self.mapDataFolder, 'map.txt'), self.screen) - self.player = Player((0, 0), self.map.tileSize) + self.player = Player((6, 2), self.map.tileSize) self.map.addEntity(self.player) self.eventManager = EventManager(self, self.player)