From da998e0862b3172bb9de1974229ea801fa012641 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Heredero?= Date: Wed, 15 Jun 2022 09:23:49 +0200 Subject: [PATCH] some maps and fix turn, display and new sprite --- resources/Base_flipped.png | Bin 0 -> 1434 bytes resources/Character_flipped.png | Bin 0 -> 4281 bytes resources/map/21N2.tmx | 13 ++---- resources/map/21N205.tmx | 2 +- resources/map/21N3.tmx | 27 +++++------ resources/map/21N304.tmx | 2 +- resources/map/21N307.tmx | 4 +- resources/map/21N308.tmx | 2 +- resources/map/21RI.tmx | 4 +- resources/map/21RS.tmx | 16 +++---- resources/map/23N1.tmx | 28 ++++++------ resources/map/Maps.tiled-session | 67 ++++++++++++++-------------- resources/map/SS.tmx | 26 +++++------ resources/map/assets/pokemon_v2.tsx | 6 +-- resources/sprite_flipper.py | 26 +++++++++++ src/Entity/Character.java | 4 +- src/Entity/Player.java | 40 +++++++++++++---- src/Main/PokeMudry.java | 3 +- src/Screen/ScreenMap.java | 39 ++++++++++++---- src/Screen/ScreenPlayer.java | 6 +-- 20 files changed, 188 insertions(+), 127 deletions(-) create mode 100644 resources/Base_flipped.png create mode 100644 resources/Character_flipped.png create mode 100644 resources/sprite_flipper.py diff --git a/resources/Base_flipped.png b/resources/Base_flipped.png new file mode 100644 index 0000000000000000000000000000000000000000..3123e12324ac1569c8bb636fbbf935838df9f0f6 GIT binary patch literal 1434 zcmV;L1!ek)P)E^Tr$G{rjy#ef`EE-thL-ReRp9cfP)5!f6 zA7(YD#W%3TzwW?qDvbm2>=?$Crq=kzff5k{5CURZF|fw>T_73ATCaEp*7!$lGBW@` zV5YW`7zSS9Lk4m`fScBc_-_EhSDa3B*T5Rzxg$sgF{>+SDguBpt4r;5zIEVOs;KtB zZa}f%@q&qi?dtI8jyhjUQ-xu{x;WWTA3Xrhrh&&Z z1Kj+o@)(Dw1FWC`+;;2PD3ddmnND+;Cl0%H`b>!vQ`rcQwDY$|B$E1G|G-et&#a^??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}ZKAgS+it zSxc}nFx)V}rXDMqgR;ksfS?G9dkObz**4wzkBf{S@84c)4vbTX#nJY zo4-eV7~Xl6@Npy!78D{Xmucv9xHgmQZjvBCWt3hIqRda4&sbmA^zezhE2EdpUCYyO z;{96C*8HSkYxv}jgvbTu)3<3QN@>V`y z{`q($8K}To48JqyNaIEl413Z88X{3yaS2aC)8l%i^W5NZj~-KmwWE$>?D^96_3CX* zV>rdbw0rV@%7p@C8j(5rV}=bxfH^Vf6S_6>WA0T(Z(o9x(7wH6Nry%f^_JwQOYKUchz4kCAXRcm=L z{X4V3{nK5`4TF6K0r&4813XU9vwAN1R}z=1ov4<=ixe0u!Or+f9C-i9&FgC7wJF-6 zn>l2qs1#2G{d^}6$FBjEs6Uj57$M;0fWLTp_a9Gi4Wp9K1l&fw&uRMCWgvg5cSC7z zZtji4V`duhuzK4HwsYP*m?_7~yAB>hZfh?HJ-fb=pEF&j8J}kAxt$ODX}RVY9%`R=sZ_7>19z4#Ui$xy|4-Hwtbzc2;v8gPu)VlrBZJn+{A$;w~M%n>Ffg z*rE2bs6O4ZO+j8Tw4hVQssvBN9;BAQ*0NCR%VF2mGDHD@M-_N)I&SQ&O<4TGTWEr1 jH@Z`@Wbh!eZ4K9uANqFjor?_gO9Ge}VDvv;aEkmtiz5(N literal 0 HcmV?d00001 diff --git a/resources/map/21N2.tmx b/resources/map/21N2.tmx index 5ac007c..b5caf2d 100644 --- a/resources/map/21N2.tmx +++ b/resources/map/21N2.tmx @@ -90,7 +90,7 @@ - + @@ -98,26 +98,19 @@ - + - - - - - - - + - diff --git a/resources/map/21N205.tmx b/resources/map/21N205.tmx index 3a3c0c4..a43bd5c 100644 --- a/resources/map/21N205.tmx +++ b/resources/map/21N205.tmx @@ -60,7 +60,7 @@ - + diff --git a/resources/map/21N3.tmx b/resources/map/21N3.tmx index 55955dd..816c777 100644 --- a/resources/map/21N3.tmx +++ b/resources/map/21N3.tmx @@ -78,16 +78,20 @@ - + - + + + + + - + @@ -95,25 +99,15 @@ - + - - - - - - - - - - - + @@ -121,12 +115,11 @@ - + - diff --git a/resources/map/21N304.tmx b/resources/map/21N304.tmx index cf7f5c4..7d02200 100644 --- a/resources/map/21N304.tmx +++ b/resources/map/21N304.tmx @@ -60,7 +60,7 @@ - + diff --git a/resources/map/21N307.tmx b/resources/map/21N307.tmx index ee19edb..6533d6c 100644 --- a/resources/map/21N307.tmx +++ b/resources/map/21N307.tmx @@ -60,7 +60,7 @@ - + @@ -68,7 +68,7 @@ - + diff --git a/resources/map/21N308.tmx b/resources/map/21N308.tmx index cada9bf..02ad206 100644 --- a/resources/map/21N308.tmx +++ b/resources/map/21N308.tmx @@ -78,7 +78,7 @@ - + diff --git a/resources/map/21RI.tmx b/resources/map/21RI.tmx index 09f2636..37008ab 100644 --- a/resources/map/21RI.tmx +++ b/resources/map/21RI.tmx @@ -90,7 +90,7 @@ - + @@ -98,7 +98,7 @@ - + diff --git a/resources/map/21RS.tmx b/resources/map/21RS.tmx index e60edaa..2100be2 100644 --- a/resources/map/21RS.tmx +++ b/resources/map/21RS.tmx @@ -10,7 +10,7 @@ 1007,1007,1007,1007,1007,1007,1007,1007,1007,837,837,837,837,837,837,837,837,837,837,837,837,837,837,837,837,837,837,837,837,837,1007,1007,1007,1007,837,837,837,837,837,837,837, 1007,1007,1007,1007,1007,1007,1007,1007,1007,837,837,837,837,837,837,837,837,837,837,837,837,837,837,837,837,837,837,837,837,837,1007,1007,1007,1007,837,837,837,837,837,837,837, 1007,1007,1007,1007,1007,1007,1007,1007,1007,837,837,837,837,837,837,837,837,837,837,837,837,837,837,837,837,837,837,837,837,837,1007,1007,1007,1007,837,837,837,837,837,837,837, -1007,1007,1007,1007,1007,1007,1007,1007,1007,837,837,837,837,837,837,837,837,837,837,837,837,837,837,837,837,837,837,837,837,837,1007,1007,1007,1007,837,837,837,837,837,837,837, +1007,1007,1063,1007,1007,1063,1007,1007,1007,837,837,837,837,837,837,837,837,837,837,837,837,837,837,837,837,837,837,837,837,837,1007,1007,1007,1007,837,837,837,837,837,837,837, 1063,1063,1063,1063,1063,1063,1063,1063,1063,837,837,837,837,837,837,837,837,837,837,837,837,837,837,837,837,837,837,837,837,837,1007,1007,1007,1007,837,837,837,837,837,837,837, 1063,1063,1063,1063,1063,1063,1063,1063,1063,837,837,837,837,837,837,837,837,837,837,837,837,837,837,837,837,837,837,837,837,837,1031,1031,1031,1031,837,837,837,837,837,837,837, 1063,1063,1063,1063,1063,1063,1063,1063,1063,837,837,837,837,837,837,837,837,837,837,837,837,837,837,837,837,837,837,837,837,837,837,837,837,837,837,837,837,837,837,837,837, @@ -90,7 +90,7 @@ - + @@ -98,7 +98,7 @@ - + @@ -106,7 +106,7 @@ - + @@ -114,16 +114,16 @@ - - + + - - + + diff --git a/resources/map/23N1.tmx b/resources/map/23N1.tmx index 0cfbc23..3f40f0c 100644 --- a/resources/map/23N1.tmx +++ b/resources/map/23N1.tmx @@ -10,8 +10,8 @@ 21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,77,77,77,77,77,77,77,77,77,77,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21, 21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,77,77,77,77,77,77,77,77,77,77,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21, 21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,77,77,77,77,77,77,77,77,77,77,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21, -21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,77,77,77,77,77,77,77,77,77,77,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21, -21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,77,77,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,77,77,77,77,77,77,77,77,77,77,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21, +21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,77,21,21,77,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,77,77,77,77,77,77,77,77,77,77,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21, +21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,77,77,77,77,77,77,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,77,77,77,77,77,77,77,77,77,77,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21, 77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21, 77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21, 77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21, @@ -21,8 +21,8 @@ 21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,21,21, 21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,21,21, 21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,21,21, -21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,77,77,77,77,77,77,77,77,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21, -21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,77,77,77,77,77,77,77,77,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21, +21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,77,77,77,77,77,77,77,77,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,77,77,77,77,77,77,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21, +21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,77,77,77,77,77,77,77,77,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,77,21,21,77,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21, 21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,77,77,77,77,77,77,77,77,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21, 21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,77,77,77,77,77,77,77,77,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21, 21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,77,77,77,77,77,77,77,77,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21, @@ -92,7 +92,7 @@ - + @@ -100,23 +100,23 @@ - - - - + + + + - - - - + + + + - + diff --git a/resources/map/Maps.tiled-session b/resources/map/Maps.tiled-session index 18cd08a..b163c3e 100644 --- a/resources/map/Maps.tiled-session +++ b/resources/map/Maps.tiled-session @@ -19,11 +19,11 @@ "expandedObjectLayers": [ 6 ], - "scale": 1.5, + "scale": 0.75, "selectedLayer": 3, "viewCenter": { - "x": 254, - "y": 269 + "x": 968.6666666666666, + "y": 588.6666666666666 } }, "21N205.tmx": { @@ -33,8 +33,8 @@ "scale": 2, "selectedLayer": 3, "viewCenter": { - "x": 80.5, - "y": 302.25 + "x": 173.25, + "y": 328.75 } }, "21N3.tmx": { @@ -42,10 +42,10 @@ 6 ], "scale": 1, - "selectedLayer": 0, + "selectedLayer": 3, "viewCenter": { - "x": 673, - "y": 358.5 + "x": 697.5, + "y": 339.5 } }, "21N304.tmx": { @@ -55,8 +55,8 @@ "scale": 2.0908482142857143, "selectedLayer": 3, "viewCenter": { - "x": 122.43834738977259, - "y": 302.50880751574675 + "x": 126.02540834845733, + "y": 270.94267107932103 } }, "21N307.tmx": { @@ -64,10 +64,10 @@ 5 ], "scale": 1.5, - "selectedLayer": 0, + "selectedLayer": 3, "viewCenter": { - "x": 251.3333333333333, - "y": 237 + "x": 173.66666666666666, + "y": 52.333333333333314 } }, "21N308.tmx": { @@ -77,7 +77,7 @@ "scale": 1.5, "selectedLayer": 4, "viewCenter": { - "x": 256.6666666666667, + "x": 257, "y": 214.33333333333331 } }, @@ -93,11 +93,11 @@ "expandedObjectLayers": [ 6 ], - "scale": 1, - "selectedLayer": 1, + "scale": 0.75, + "selectedLayer": 3, "viewCenter": { - "x": 233, - "y": 318.5 + "x": 772.6666666666666, + "y": 484.66666666666663 } }, "21RS.tmx": { @@ -107,19 +107,19 @@ "scale": 1, "selectedLayer": 3, "viewCenter": { - "x": 313, - "y": 380.5 + "x": 933.5, + "y": 292.5 } }, "23N1.tmx": { "expandedObjectLayers": [ 5 ], - "scale": 2, - "selectedLayer": 3, + "scale": 1, + "selectedLayer": 0, "viewCenter": { - "x": 2511, - "y": 592.25 + "x": 2131.5, + "y": 597.5 } }, "C:/Users/remi/AppData/Roaming/Tiled/#Tests": { @@ -243,8 +243,8 @@ "scale": 0.5, "selectedLayer": 3, "viewCenter": { - "x": 3098, - "y": 503 + "x": 3567, + "y": 847 } }, "assets/32x32 first tileset.tsx": { @@ -323,6 +323,7 @@ "scaleInEditor": 1.5 }, "assets/pokemon_v2.tsx": { + "dynamicWrapping": false, "scaleInDock": 1.5, "scaleInEditor": 1 }, @@ -434,18 +435,18 @@ "project": "Maps.tiled-project", "property.type": "string", "recentFiles": [ + "21N205.tmx", + "21RS.tmx", + "21N2.tmx", + "21N3.tmx", + "assets/pokemon_v2.tsx", + "assets/PokeMudry.tsx", "SS.tmx", "21RI.tmx", "23N1.tmx", "assets/Dungeon_v2.tsx", - "21RS.tmx", - "21N3.tmx", "21N307.tmx", - "21N308.tmx", - "21N205.tmx", - "21N2.tmx", - "21N304.tmx", - "assets/pokemon_v2.tsx" + "21N308.tmx" ], "resizeMap.removeObjects": true, "tileset.lastUsedFilter": "Fichiers de jeu de tuiles Tiled (*.tsx *.xml)", diff --git a/resources/map/SS.tmx b/resources/map/SS.tmx index 33193d0..20e70de 100644 --- a/resources/map/SS.tmx +++ b/resources/map/SS.tmx @@ -5,8 +5,8 @@ -1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007, -586,586,1139,586,586,1139,586,586,586,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007, +1007,1007,1007,1007,1007,1139,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007, +586,586,1139,586,586,1139,586,586,586,1007,1063,1007,1007,1007,1007,1007,1063,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007, 1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007, 1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007, 1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007, @@ -15,8 +15,8 @@ 1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007, 1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007, 1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007, -1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007, -1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,586,586,586,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007, +1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1063,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007, +1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1007,1007,1007,1007,1063,1063,1007,1007,1007,1063,1007,1007,1063,1063,1007,586,586,586,1007,1063,1007,1007,1007,1007,1063,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1063,1007,1007,1007,1063,1007,1007,1007,1007,1063,1007,1007,1007,1007,1007,1007,1007,1007,1063,1063,1063,1007,1007,1063,1063,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1063,1063,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1063,1063,1007,1007,1007,1007,1007,1007,1007,1007,1007,1063,1063,1007,1007,1007,1007,1007,1007,1007,1007,1063,1063,1007,1007,1007,1007,1007,1063,1007,1007,1007,1007,1063,1063,1007,1007,1063,1063,1007,1007,1007, 1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139, 1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139, 1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139, @@ -25,8 +25,8 @@ 1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007, 1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007, 1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1139,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007, -1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007, -1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007 +1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1063,1063,1063,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007, +1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1063,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007,1007 @@ -90,24 +90,24 @@ - + - + - - + + - + - - + + diff --git a/resources/map/assets/pokemon_v2.tsx b/resources/map/assets/pokemon_v2.tsx index 1d49493..8896164 100644 --- a/resources/map/assets/pokemon_v2.tsx +++ b/resources/map/assets/pokemon_v2.tsx @@ -4342,7 +4342,7 @@ - + @@ -4360,7 +4360,7 @@ - + @@ -4564,7 +4564,7 @@ - + diff --git a/resources/sprite_flipper.py b/resources/sprite_flipper.py new file mode 100644 index 0000000..a9ce606 --- /dev/null +++ b/resources/sprite_flipper.py @@ -0,0 +1,26 @@ +#!/usr/bin/env python +# -*- coding: utf-8 -*- +from PIL import Image +import numpy as np +import os + +W, H = 32, 32 + +if __name__ == "__main__": + path = input("Path: ") + + img = Image.open(path).convert() + a = np.array(img) + b = np.zeros((a.shape[1], a.shape[0], *a.shape[2:]), dtype=a.dtype) + + w, h = a.shape[1]//W, a.shape[0]//H + + for y in range(h): + for x in range(w): + b[x*W:x*W+W,y*H:y*H+H] = a[y*H:y*H+H,x*W:x*W+W] + + img.close() + img = Image.fromarray(b) + dirname, basename = os.path.dirname(path), os.path.basename(path) + basename, ext = os.path.splitext(basename) + img.save(os.path.join(dirname, basename+"_flipped"+ext)) diff --git a/src/Entity/Character.java b/src/Entity/Character.java index d94aa6b..ffa1652 100644 --- a/src/Entity/Character.java +++ b/src/Entity/Character.java @@ -137,10 +137,10 @@ public abstract class Character extends Entity{ textureY = 2; break; case LEFT: - textureY = 1; + textureY = 3; break; case UP: - textureY = 3; + textureY = 1; break; case DOWN: textureY = 0; diff --git a/src/Entity/Player.java b/src/Entity/Player.java index 77ae101..74e07fe 100644 --- a/src/Entity/Player.java +++ b/src/Entity/Player.java @@ -17,7 +17,7 @@ public class Player extends Character{ public boolean onEnemy = false; public Player(int x, int y, String map) { - super("Player", x, y, "Character", map); + super("Player", x, y, "Character_flipped", map); } public void addXp(int xp){ @@ -26,6 +26,8 @@ public class Player extends Character{ public void manageEntity(ScreenMap sm, Controller c) { + boolean onDoor = sm.isDoor(getPosition()); + // Do nothing if hero is already moving if (!isMoving()) { @@ -34,19 +36,21 @@ public class Player extends Character{ Player.Direction goalDirection = Player.Direction.NULL; Vector2 nextPos = new Vector2(position); - if (c.keyStatus.get(Input.Keys.RIGHT)) { + + + if (c.keyStatus.get(Input.Keys.RIGHT) && !onDoor) { goalDirection = Player.Direction.RIGHT; nextCell = sm.getTile(getPosition(), 1, 0); nextPos.x+=sm.tileWidth; - } else if (c.keyStatus.get(Input.Keys.LEFT)) { + } else if (c.keyStatus.get(Input.Keys.LEFT) && !onDoor) { goalDirection = Player.Direction.LEFT; nextCell = sm.getTile(getPosition(), -1, 0); nextPos.x-=sm.tileWidth; - } else if (c.keyStatus.get(Input.Keys.UP)) { + } else if (c.keyStatus.get(Input.Keys.UP) && !onDoor) { goalDirection = Player.Direction.UP; nextCell = sm.getTile(getPosition(), 0, 1); nextPos.y+=sm.tileHeight; - } else if (c.keyStatus.get(Input.Keys.DOWN)) { + } else if (c.keyStatus.get(Input.Keys.DOWN) && !onDoor) { goalDirection = Player.Direction.DOWN; nextCell = sm.getTile(getPosition(), 0, -1); nextPos.y-=sm.tileHeight; @@ -59,7 +63,7 @@ public class Player extends Character{ turn(goalDirection); System.out.println("It's a enemy !!"); } else { - setSpeed(sm.getSpeed(nextCell)); + setSpeed(sm.getSpeed(nextCell)*3); //TODO remove x3 go(goalDirection); } } else { @@ -68,7 +72,7 @@ public class Player extends Character{ } - if(sm.isDoor(getPosition())){ + if(onDoor){ String nMap = null; Integer x = null; Integer y = null; @@ -77,12 +81,32 @@ public class Player extends Character{ x = ScreenMap.Door.nextX; y = ScreenMap.Door.nextY; goalDirection = ScreenMap.Door.nextDirection; + /* + if (ScreenMap.Door.changeDirection) { + switch (goalDirection) { + case UP: + goalDirection = Direction.DOWN; + System.out.println("go down"); + break; + + case DOWN: + goalDirection = Direction.UP; + System.out.println("go up"); + + default: + goalDirection = Direction.NULL; + break; + } + } + */ } catch (Exception e) { } ScreenMap.Door.reset(); if (nMap == null || x == null || y == null) return; map = nMap; setPosition(x*sm.tileWidth, y*sm.tileHeight); - System.out.println("Go to: " + sm.map + " in " + x + " x " + y); + System.out.println(goalDirection); + turn(goalDirection); + System.out.println("Go to: " + map + " in " + x + " x " + y); } } } diff --git a/src/Main/PokeMudry.java b/src/Main/PokeMudry.java index 1b4d60f..ddf24bc 100644 --- a/src/Main/PokeMudry.java +++ b/src/Main/PokeMudry.java @@ -46,7 +46,8 @@ public class PokeMudry extends PortableApplication { // add player, create and add all enemies in entities entities.add((Entity) sp.p); enemies.add(new Enemy("Mudry", 10, 15, "lumberjack_sheet32", "desert", 25, "informatique")); - //enemies.add(new Enemy("Pignat", 5, 1, "lumberjack_sheet32", "test", 150)); + enemies.add(new Enemy("Mudry", 5, 11, "lumberjack_sheet32", "21N304", 25, "informatique")); + for (Enemy enemy : enemies) { entities.add(enemy); } //Init all entities diff --git a/src/Screen/ScreenMap.java b/src/Screen/ScreenMap.java index 625b6c2..020029e 100644 --- a/src/Screen/ScreenMap.java +++ b/src/Screen/ScreenMap.java @@ -16,6 +16,7 @@ import com.badlogic.gdx.maps.tiled.TmxMapLoader; import com.badlogic.gdx.maps.tiled.renderers.OrthogonalTiledMapRenderer; import com.badlogic.gdx.math.Vector2; +import Entity.Character; import Entity.Player; import ch.hevs.gdx2d.components.screen_management.RenderingScreen; import ch.hevs.gdx2d.lib.GdxGraphics; @@ -52,15 +53,28 @@ public class ScreenMap extends RenderingScreen{ createMap("test"); createMap("test_couloir"); createMap("desert"); + createMap("SS"); + //createMap("RI"); + //createMap("RS"); + createMap("21RI"); createMap("21RS"); createMap("21N2"); createMap("21N3"); + createMap("21N205"); createMap("21N304"); createMap("21N307"); createMap("21N308"); + + //createMap("23RI"); + //createMap("23RS"); + createMap("23N1"); + //createMap("23N2"); + + //createMap("23N20"); + //createMap("23N215"); } @@ -69,11 +83,15 @@ public class ScreenMap extends RenderingScreen{ tiledLayer.clear(); + // Get actual map of the player try { map = player.getMap(); } catch (Exception e) {} - for (int i = 0; i < 50; i++) { + // Get all layers on the current map + for (int i = 0; i < 50; i++) { try { tiledLayer.add((TiledMapTileLayer) tMap.get(map).getLayers().get(i)); } catch (Exception e) { } } + + // Get heigh and width of tiles and the size of the tiles TiledMapTileLayer tl = tiledLayer.get(0); width = tl.getWidth(); tileWidth = (int) tl.getTileWidth(); @@ -82,14 +100,15 @@ public class ScreenMap extends RenderingScreen{ //System.out.println(width + " x " + height + " - " + tileWidth + " x " + tileHeight); - try { + // Get all doors on the current map + try { doors = tMap.get(map).getLayers().get("door").getObjects(); } catch (Exception e) { doors = null; } // Render the tileMap - //g.zoom(zoom); - g.moveCamera(player.getPosition().x, player.getPosition().y, width * tileWidth, height * tileHeight); + g.zoom(zoom); + g.moveCamera((int)player.getPosition().x, (int)player.getPosition().y, width * tileWidth, height * tileHeight); tMapRenderer.get(map).setView(g.getCamera()); tMapRenderer.get(map).render(); @@ -116,10 +135,11 @@ public class ScreenMap extends RenderingScreen{ public boolean isWalkable(Vector tile) { if (tile == null) return false; - boolean walkable = false; + if (tile.size() == 0) return false; + boolean walkable = true; for (TiledMapTile tiledMapTile : tile) { Object test = tiledMapTile.getProperties().get("walkable"); - walkable = Boolean.parseBoolean(test.toString()) ? true:walkable; + walkable = Boolean.parseBoolean(test.toString()) ? walkable:false; } return walkable; } @@ -160,7 +180,8 @@ public class ScreenMap extends RenderingScreen{ try { Door.nextMap = mapProperties.get("nextMap").toString(); } catch (Exception e) { } try { Door.nextX = Integer.parseInt(mapProperties.get("nextX").toString()); } catch (Exception e) { } try { Door.nextY = Integer.parseInt(mapProperties.get("nextY").toString()); } catch (Exception e) { } - try { Door.nextDirection = Door.nextDirection.valueOf(mapProperties.get("nextDirection").toString()); } catch (Exception e) { } + try { Door.nextDirection = Character.Direction.valueOf(mapProperties.get("nextDirection").toString()); } catch (Exception e) { } + try { Door.changeDirection = Boolean.parseBoolean(mapProperties.get("changeDirection").toString()); } catch (Exception e) { } } } @@ -171,13 +192,15 @@ public class ScreenMap extends RenderingScreen{ public static String nextMap; public static Integer nextX; public static Integer nextY; - public static Player.Direction nextDirection; + public static Character.Direction nextDirection; + public static Boolean changeDirection; public static void reset(){ nextMap = null; nextX = null; nextY = null; nextDirection = null; + changeDirection = null; } } diff --git a/src/Screen/ScreenPlayer.java b/src/Screen/ScreenPlayer.java index 04197ed..2090001 100644 --- a/src/Screen/ScreenPlayer.java +++ b/src/Screen/ScreenPlayer.java @@ -16,10 +16,10 @@ public class ScreenPlayer { public void init(){ // One player by ScreenPlayer - p = new Player(8, 15, "desert"); - //p = new Player(4, 2, "21RI"); + //p = new Player(8, 15, "desert"); + p = new Player(4, 2, "21RI"); - b = new Battle(new Enemy("enemi", 0, 0, "charachter", "desert", 50, "enemi")); + b = new Battle(new Enemy("enemi", 0, 0, "lumberjack_sheet32", "desert", 50, "enemi")); // Create both type of screen and record for reuse screenManager.registerScreen(ScreenMap.class);