From 8a40f24d653d25b8bf0634fe62fa799e38b95587 Mon Sep 17 00:00:00 2001 From: Wobbl Date: Thu, 18 Jul 2024 10:53:51 +0200 Subject: [PATCH] Got the engine working. --- assets/stacked_sprites/Building.png | Bin 0 -> 4617 bytes assets/stacked_sprites/Robot.png | Bin 0 -> 1348 bytes sprite_stacking_engine/cache.py | 66 +++++++++++++++++++++++ sprite_stacking_engine/engine.py | 53 ++++++++++++++++++ sprite_stacking_engine/player.py | 58 ++++++++++++++++++++ sprite_stacking_engine/scene.py | 42 +++++++++++++++ sprite_stacking_engine/settings.py | 31 +++++++++++ sprite_stacking_engine/stacked_sprite.py | 47 ++++++++++++++++ 8 files changed, 297 insertions(+) create mode 100644 assets/stacked_sprites/Building.png create mode 100644 assets/stacked_sprites/Robot.png create mode 100644 sprite_stacking_engine/cache.py create mode 100755 sprite_stacking_engine/engine.py create mode 100644 sprite_stacking_engine/player.py create mode 100644 sprite_stacking_engine/scene.py create mode 100644 sprite_stacking_engine/settings.py create mode 100644 sprite_stacking_engine/stacked_sprite.py diff --git a/assets/stacked_sprites/Building.png b/assets/stacked_sprites/Building.png new file mode 100644 index 0000000000000000000000000000000000000000..8268a984e29f7f473c409ab5cc55355b9bb84f34 GIT binary patch literal 4617 zcmYLNcU%)$xE;k6S5d?YyA%->kuIz#NKixp6{2*cL_q|BPz^OCuq=zpDkxnDaYa!? z$WkLML8Z6Q0z!beLWmMVBq4$HH*tOM%^x%OcfTq3-0!>hoHO^XINEOC`pZ@T0JhuP z**F1!d@|TRxMeeVCJeV%0)Wzxz0FydxMJqayNtc|zjv*~rG~EA>v&fOzuc?tHU9Rf zOX<yW z6?5Fk{hQ2m8ZEo2R_VWoESv9^FB*%~W5|D)|DurrFUq;eiSWBdx zOd)27Z;Md`2lnHD*LVFE2}iv6Rw&_TfDVZ2*A& zWy|-hrdv33n)c0?relL{p0eMO*=YA!p;8MuKgq4_C>N^KH~)xy_6$X(AV{W zn0R@k>n3%CD%acw&=R86J*t=^e9vMI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Rfn&>;o#U9MfA-6^x<3R{T;uu9EB5AYVwC_n%*>8fgTDs2kbUlk0f_*M; zm@3UmY6s=2l$FC76Z_nS*$x>Ps6Cj96vT08XN2v8W)DQ$#mMyK(q{86xF;JySshF* za(~S8Fa*7mJz3YlYEyN|*;gm>o@fYP%QqH-{@(tv;UgXj}O8V=ipV3QTY?jw^t zb=W@WbNvEFl$VuluA#*he{(Pa=sob)EM?2@qN@c_%Y3N^b8{Pj4y=lmqvc1mVfwq9 zmLj`JX(6zqom3kLnBq@{YhubY$M(hG%GZ85W#4^A9EksU0b)m8BFs$Y!RZiDC zkRm!jvo6F`2w3cx;hJcCXp)Jbko#we5MgIOD(?@_W^QCnH~{*rAaPr%adGc@w^f literal 0 HcmV?d00001 diff --git a/assets/stacked_sprites/Robot.png b/assets/stacked_sprites/Robot.png new file mode 100644 index 0000000000000000000000000000000000000000..5c59f36e751c8ce08fc9d62bf93370f77f6472c3 GIT binary patch literal 1348 zcmV-K1-tr*P)$XQvr`nN39CFrlXTi@vOcn!b7M014W0R zZ+eJlb<-PM`kiG;Jc=iak@*2aEQ_hzx*3Bcdp(IPy3+j1@_ zvMjeQDo+$e8+puw)7qS0Jgdvr?{VI?vZy#H_Gl{$mBYlQbq?9@ed@ts53YI{L)~JY zu71k`&ITg8r~#x&URrfGU`QwMBIoo5&-o4zCt4tv-FTk2Ni)$!Zj0ti+{CwOo`C%Eh* z5ZTl~Oks=T+7g7uRJZt@RKM*tfH*ifj2pcM5D~%Z!=gijExjcNZ0Rj+>G{W0xA>h@ zzwIr6)Q3MWF^CjJ;c?{QfGrKx77kki83$~sTaj1CZ+i(KS(bT18GPYqDqtB(dJ_l! z+muG(kiB~d4wJGp<<$-B_`O|p;LyX>ZM!bIIsowa?ckt%7FFfr;!ta=pO?S|Q4|@; z0{~2}7DgQJ@4k1I$2=xwaj+l993&SP7Zm`&a=FxsQdmwn;lu1~{c!e{z8!klEnZ| z()NNUj^j;Qp662err=SQWrgK2k4%T3Uq6xLR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