From 2e28b93d53df1f08f37929a2631502ddd082acbf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20W=C3=A4chter?= Date: Mon, 27 Mar 2023 09:53:52 +0200 Subject: [PATCH] Added Sprites --- project/data/sprites/druckplatten.png | Bin 0 -> 538 bytes project/data/sprites/gate.png | Bin 0 -> 803 bytes project/data/sprites/goal_door.png | Bin 155 -> 1310 bytes project/data/sprites/lever.png | Bin 0 -> 754 bytes project/data/sprites/small_spike.png | Bin 143 -> 574 bytes project/data/sprites/temp_blöcke.png | Bin 0 -> 641 bytes project/level/elements/LoadedLevel.py | 2 +- 7 files changed, 1 insertion(+), 1 deletion(-) create mode 100644 project/data/sprites/druckplatten.png create mode 100644 project/data/sprites/gate.png create mode 100644 project/data/sprites/lever.png create mode 100644 project/data/sprites/temp_blöcke.png diff --git a/project/data/sprites/druckplatten.png b/project/data/sprites/druckplatten.png new file mode 100644 index 0000000000000000000000000000000000000000..9e39fb6a739de4f56b17ed1501dfd76285ec9a4e GIT binary patch literal 538 zcmV+#0_FXQP)qSHHws4o0 zi6@1RgojNzpzyWQ6Ar&9PCNXe*o;P|z^!`v(>0u^VJ&0kgolI!xokQI6S$$vV&o@s&JevFs%9!FvlM(N*s3qx|lB$cIk}peH z<^DfUOCKF^y8FV={A}Cr1K{0-pB>x&KDOWAztC^=K<` zhP=c8000SaNLh0L04^f{04^f|c%?sf0000{NklHq)$07*qoM6N<$f_(GmhyVZp literal 0 HcmV?d00001 diff --git a/project/data/sprites/gate.png b/project/data/sprites/gate.png new file mode 100644 index 0000000000000000000000000000000000000000..1e105b978604bd0484c9bc46444e2007652a4b0b GIT binary patch literal 803 zcmV+;1Kj+HP)Byri@Ai-9!u?Sd* zHogk~fwqFJf*>e@h@HK!M#6f>2ocd)X79(DIhUC;;7=6vqSG`8#gc0$C*#`e+`JZi zB0vv8y6Md5jy08@ZOL$S@U;k!=$7pYj|nGMT}$z%aHpQn zED7%mM{PNv@P*Q|b$(QwtMjX3JDnT{zv`*wesJ~&>v_8QcIHA-@d^w-!v=Y(dBPZ!4^l3ym+IcmZhs9)fC;3uRulR z{yR^{93HB755=MR!Si1FAh-p!s^@(icwX%g0{3uMYWPOuuQu^D(r~LB|!eF4VL7Ugzi*(rfZWm$0)7{jxv2_zB-6XZu%u ztA_vp010qNS#tmYE+YT{E+YYWr9XB600CP`L_t(Y4eeGda>GCjl{39SS$Ied%Sr;u za)hw@3PC=DuTW%I)+3abhQug5DAVZ$oPC;=EPL1XB&d__0!zF4`dQLCBcisdDo4gw z(=;rs>zXphwd1OxWZ{lrL=pvbw|Sz0;|+WfskiW=Amq9`yvcADbE?gEQ?U z$8(N$AVATK8P?SZ-k6Od4Wy2(0V48>z$&8DqKd@7LkR`Tq|)Gxk9(;0<8Y)AkA002ovPDHLkV1mf!a{mAT literal 0 HcmV?d00001 diff --git a/project/data/sprites/goal_door.png b/project/data/sprites/goal_door.png index 609e9cba60416ed526e897abe28e2eb90a34d845..19251a0155970ea2c1e32bb2b915abdc5816b3c6 100644 GIT binary patch delta 1303 zcmV+y1?c*l0iFtw7=H)`0002&`85v!00C}kLqkw$V`BgSD3NuMJ4*vW6otPeN<uw?>aoODSKz|QGy6Md5jy08@ZOL$S@U;k!=$7pYj|nGMT}$z%aHpQnED7%mM{PNv@P*Q|b$(Qw ztMjX3JDnT{zv`*wesJ~&>v_8 zQcIHA-@d^w-+weK;?d=AQNb2Rj=XrIqL!trA=MP!kgq^R<^DTQ#~dE2cMrv(`N8vE z`XIOkwW{ZR9C%*s5CZpbR%-ZHB&X3g(W?zDvIpUHI5}@<*=;!8fUY|$V`sjkfK0z> z!t*h-&q2o(v@X=M`d;Vg7Se0-M3=C$3;nV`y!Z*hB1s@3X_OQa(I$ZW69X4etavmU zp)#Az#@6^^vejy37K;Uj9qxVfVnu)jlx=uS>_9Y`OxVn}J2VnV!$4$bo9|veHm{%d z%=@$F-qdtDMc*9`CUAyWRSq1+!$%M82P6`S1Ao~!q6FHA`<>2V7cG-m2l8l80H?qa z2^W@02;4l&a|qNq>>DYW0s?VNtybpi)=7f805Ln>2M`4MAG`YB&&~oK*#|EI)<5t_ z3|#)|o8@w8`loN~Gog>GN07j%HN3t0Y)Q0n@~Y5=ss5|M)f}qm_&{!?jv0e5(uEw?93#PNJwCl zeGX!P3@&XU(Gnee4gg-a42MJW_1+U}o`1S3j=D_&7%L!o@#mYpk1(H=NP_@41unJ{ z3HmHi5CQVb(()zZ=n-%t8?h}KvII?5onu9s?Gn|Taml>P<7+tUh1BxR897kBKPo** z;-n@lum(*Ogz?_qkK7`T9f-1oG5I ztPFJm#xeBab+yWC{qxp{@F#5b!>LpppI(X=)$52uk%AlGr|Y1Y+1`?fqny z0CQg22f)QgFRN%w(7nF!(nxS1tACK6;Z`KV2J1}*5lZ6-iX>tuNN}j+BuYkrToa|M z{tJqci9DRri(Qle;Nm2PrFC?Z+XBa;q6DR@jrrYug6Jm4LQReFk^X;GL{(}eQS8YK zSoTjmkMnIBY%=Ga>{QzJ2sn`~1=N0)KzU}oXkrghb7(7*O7r?V?XzwL{=c5Ex;$l z6-fX8|9|Pt`FDXV&H|6fVg?4jLmz`O@O1TaVOi&t&;$TayC?ww diff --git a/project/data/sprites/lever.png b/project/data/sprites/lever.png new file mode 100644 index 0000000000000000000000000000000000000000..7878bef42c54858050538f6241fa853f6e012388 GIT binary patch literal 754 zcmVqSHHws4o0 zi6@1RgojNzpzyWQ6Ar&9PCNXe*o;P|z^!`v(>0u^VJ&0kgolI!xokQI6S$$vV&o@s&JevFs%9!FvlM(N*s3qx|lB$cIk}peH z<^DfUOCKF^y8FV={A}Cr1K{0-pB>x&KDOWAztC^=K<` zhP=c8000SaNLh0L04^f{04^f|c%?sf0003gNkldtZ&n zddCeUNHWXp{Wvq{GIIvpvso=?HH9FTFPf2=uzxAG?DxLnp??=I{Y=C)%a~i3j?!>^ z-Q!aAE~t7n-dA_DB~z9Lt`^}j%`l6?lftv>MMLqnaF>>eCxwrMhfO)4@U_wt4!x&KDOWAztC^?zt9afZCa00009a7bBm003M@ z003M@0Th%&K>z>%bxA})R45gdky#FaAPhuXF3!m~8#<6j3gXtEI-M=5+jZ)4@`zIe z=W`R6QY_~TH3bYqt^F=BgGn5GGYGi*l!QqePP&9sL`)af(9)4vYaoH+Zlf9RuuI1n yTZRGhZ7C;JJ*5+%7HR)CknnZux8HvMUC03h>MoMW1 X7nwyCq)Uhb)iZdy`njxgN@xNAn>Hlu diff --git a/project/data/sprites/temp_blöcke.png b/project/data/sprites/temp_blöcke.png new file mode 100644 index 0000000000000000000000000000000000000000..50ca821cca383869af8afea0ab52a3e9565430f1 GIT binary patch literal 641 zcmV-{0)G98P)qSHHws4o0 zi6@1RgojNzpzyWQ6Ar&9PCNXe*o;P|z^!`v(>0u^VJ&0kgolI!xokQI6S$$vV&o@s&JevFs%9!FvlM(N*s3qx|lB$cIk}peH z<^DfUOCKF^y8FV={A}Cr1K{0-pB>x&KDOWAztC^=K<` zhP=c8000SaNLh0L04^f{04^f|c%?sf0002ENkl1_;AQ*( zs-)yEyu?^iR#`KkNt!fhCbo`UMYC2Bk=nk^c2;EFNGV0c2uji*vuW~b5Ek$+TFh|D zx_+x2Pl#D*oGuq5k+cjj9|~y`RmGAZe98;(F!(Ywk@DlI>t`A|r8iifKULA7QBczk+R32N2}q{qvXI00_) b{#|+l$AT{1gz?J600000NkvXXu0mjfh8Y}> literal 0 HcmV?d00001 diff --git a/project/level/elements/LoadedLevel.py b/project/level/elements/LoadedLevel.py index c7ff764..de011f0 100644 --- a/project/level/elements/LoadedLevel.py +++ b/project/level/elements/LoadedLevel.py @@ -32,7 +32,7 @@ class LoadedLevel: if tile_element in LevelElementSymbols.BLOCKS_LIST: spritesheet = self.spritesheet_manager.get_sheet(level.theme + tile_element['sprite_id']) sprite = BlockElement(spritesheet) - sprite.set_animation_state(str(random.randint(0, 3))) + sprite.set_animation_state(str(random.randint(1, 3))) sprite.position_scale.position = position elif tile_element == LevelElementSymbols.GOAL_DOOR: