From c32451a597aa81ef9edf2b7fa951dcc735335fc9 Mon Sep 17 00:00:00 2001 From: Matt Low Date: Sat, 28 Dec 2019 12:55:08 +0400 Subject: [PATCH] Add debug rendering of an entity's current tile --- core/assets/sprites/level.png | Bin 2156 -> 10142 bytes core/assets/sprites/level.xcf | Bin 8124 -> 15860 bytes core/src/com/me/pacman/entity/Entity.java | 6 ++++ core/src/com/me/pacman/entity/Pacman.java | 4 ++- core/src/com/me/pacman/level/Level.java | 34 ++++++++++++-------- core/src/com/me/pacman/level/LevelTile.java | 1 + 6 files changed, 31 insertions(+), 14 deletions(-) diff --git a/core/assets/sprites/level.png b/core/assets/sprites/level.png index 5f3ae17e27e865dc5aaa367e206c1d97b7b10481..292a03db4b5653fba82c49ccb346b45169e6c5a8 100644 GIT binary patch delta 10131 zcmV;ECv4d45S~wvBYz(udQ@0+Qek%>aB^>EX>4U6ba`-PAZ2)IW&i+q+O3>tmg~BX zh5vIDZwO*0hr_tmn?Vo1KTvX(L!ItZ_m*9fEs+Qt8z3k({^!3_{pUab(K^|noR2Bw z5H|j~?6N7mN!$J}uitue>-YNSj#K>oa9mwa7!Fxp?fz#h$A9Mw$NlXKmwV{?cwD99 zj7i6ZjuV#)TDh~~O}`%`$IX6RA0ttD>~BI&@qVb)?62)I+rP`->i&R> zNU3{nWQ`eC+im@J`)4epv)LAY8-5#`_}sSMZ#F7ktlf^0AdrXYU0%2CUO*2*zPwY< z(!aiY622+NaewW4GKNtQI@!gH>bwuXz#1>3{na=V5oITAs_SqE|kZ3q8 zYEu{K$anZ)MdWsUE$|ch-}64MpUh9%%GOYM-`ZCBX*z3zR;JQUcU|<wms^-LL7yojaanjOJpZ_P0Ok z)5*X5s5zU6NN?#XE5>ESL>Y!?PJZ(#6r$&$H@^gY`8m|T-PwauiCQDagn|kqH`bYo2DJC4Gf3mC z4Ms(S%YSfhz7zHOtnnroISe+T2ycUp=msxCSq)s-UlCjQa<|zOb1e+md$9h~`9R zTQ)d_Hw@B?ZdBKzF;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_R&}cDhyj_~LR+GOV7^DJFdpRP@X*9xsY!OZisIH=WynVA5LL_|pR+gKJiv1U^RQ(|7_fz(DD?Ry5p zU~g1g_ks!l41kAl-?V6OsXk#Tbxpkc*cV{pV8mn3fT+18wvkq6YJ_TG^qNLw4c|oL zM(GDk0f36xSxx(YTXtv^Gk$T_XXXAU8lJ5K{|DlEM*u*bvz_IAq_j zmhrcO7j{)HP}=ygcA&7LHPhE09AL+ARL5`Q?U

NHBYv&BWU9XL7WoZ!|~inHE?H zpqrdK#VoJI{2~A%OKMJpT1!Ko(Ww=bWq@^4-uL803jmm<%HgGpsg(+#O|BoXnNnz2JB08uwMYs3|DD&+ zc$ldX0eryVQ_FW|HZuHGg~8gMVkrqyIzD5CHIeUA@*HbT2`@Q-6Y;&pw~8hmXO?mH z82|nFv5b{}M{t48xt_&>$CNfQ$6~vgC9TXYQhA0tzu4}u&`>tn$@L0mo&$Q(-dMad z6b?*gOtL5Mw~I2r%snFapw#^007&z%@L_VUXHf~R>8HNVaFc6}Di^5Du;K#?3&wp` z2z6B=G`T{icE4R~ane?%=LIqfuycLqBSBJgsjhJvz&zOx|lu*XNU d7bU_L{{W`)SL8Yy_8b5J002ovPDHLkV1lkM`mg{1 diff --git a/core/assets/sprites/level.xcf b/core/assets/sprites/level.xcf index e0f5e5a8e8a3c076d3f0365d3474dd33959f6638..29de74acc4cf029bbe70f7f5d7a19158f0fa3bca 100644 GIT binary patch delta 748 zcmZ`%!DrVA;y+s6 zZ=Z#3CHWJeJ9iM=iJEF|J?+_s(&XOUQ9Apy&N3)Ip|jTYeYI#}SNYxcNu&cG|8_ra zVqBi6;?tSEg6dI+__>4$&ua1=rS0qHHPgD7`xoz#%)Pmbo-?@8$ZR~Wq ThuFRG8Guy4=^kSpAJ6{<7@oMN delta 89 zcmexTy~lon6QlV==a-DOlT8`rC-=znPflXIGC5s=-;BwF0RbF