From ed4210462119756ade5648bd0ce11e3be2bc9eb2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miloslav=20=C4=8C=C3=AD=C5=BE?= Date: Thu, 17 Oct 2019 12:29:25 +0200 Subject: [PATCH] Add enemy sprites --- assets.h | 44 ++++++++++++++++++++++++++++++++++++++ assets/enemy_1_attack.png | Bin 0 -> 1474 bytes assets/enemy_1_idle.png | Bin 0 -> 1245 bytes assets/enemy_1_walk.png | Bin 0 -> 1286 bytes assets/enemy_dead.png | Bin 0 -> 449 bytes 5 files changed, 44 insertions(+) create mode 100644 assets/enemy_1_attack.png create mode 100644 assets/enemy_1_idle.png create mode 100644 assets/enemy_1_walk.png create mode 100644 assets/enemy_dead.png diff --git a/assets.h b/assets.h index de56335..15e5132 100644 --- a/assets.h +++ b/assets.h @@ -734,6 +734,50 @@ frame for idle and walking, some enemies can share the same dead sprite etc.). Also: add flip option to sprite drawing function so that some frames can be reused flipped (good for walk anims). */ +SFG_PROGRAM_MEMORY uint8_t + SFG_enemySprites[][SFG_TEXTURE_SIZE * SFG_TEXTURE_SIZE] = +{ + { // 0, idle +175,175,175,0,0,0,0,175,175,175,175,175,175,175,175,175,175,175,175,175,175,175, +175,175,175,0,0,0,0,175,175,175,175,175,0,5,4,95,5,0,175,175,175,175,175,175, +175,175,175,175,175,175,175,175,175,175,0,6,3,5,4,0,175,175,175,0,5,0,2,2,0,5,0, +175,175,175,175,175,175,175,175,175,175,175,175,175,0,0,7,6,3,4,3,3,0,175,175,0, +95,2,93,3,2,4,0,175,175,175,175,175,175,175,175,175,175,175,0,0,7,6,6,5,0,0,0,0, +0,0,175,0,4,2,3,93,2,95,0,175,175,0,175,175,175,175,175,175,175,0,7,6,6,5,4,0, +175,175,175,175,175,175,175,0,5,0,2,2,0,5,0,0,175,0,0,175,175,175,175,0,0,7,6,6, +5,10,0,175,175,175,175,175,175,175,175,175,0,5,95,4,5,1,1,1,0,3,6,0,175,175,175, +175,175,0,0,3,10,4,0,175,175,175,175,175,175,175,175,0,1,3,0,0,1,3,1,3,5,5,5,0, +175,175,175,175,175,175,175,0,5,4,3,0,175,175,175,175,175,175,0,5,4,5,1,1,4,10, +4,6,5,6,6,6,0,175,175,175,175,175,175,0,5,4,3,0,0,0,0,0,175,175,0,4,3,4,1,3,0,6, +6,6,5,5,5,5,4,0,175,175,175,0,0,0,3,3,7,6,3,5,5,4,0,175,0,5,4,95,1,0,0,62,62,6, +5,4,5,4,5,0,175,0,0,7,7,7,6,6,6,6,3,4,4,3,3,0,175,0,0,0,4,6,6,223,63,223,62,5,4, +4,4,0,175,175,175,0,6,6,6,6,5,5,10,10,10,10,10,0,175,175,0,6,6,6,5,223,7,63,223, +223,4,4,4,4,0,175,175,175,10,3,3,10,10,3,3,3,4,3,0,175,175,175,0,0,65,65,3,62, +223,7,223,223,223,4,4,4,4,120,120,120,20,18,5,4,18,3,0,0,0,0,0,0,175,0,75,74,65, +68,145,3,4,223,223,63,62,223,4,4,120,1,18,3,20,20,1,5,4,0,175,175,175,175,175, +175,0,69,68,0,74,74,82,145,4,4,223,7,63,223,3,120,18,18,3,20,20,21,3,3,1,175, +175,175,175,175,175,175,0,76,75,0,67,67,67,145,4,4,223,7,63,223,3,120,18,18,3, +20,20,21,3,3,1,175,175,175,175,175,175,175,175,0,75,74,65,74,145,3,4,223,223,63, +62,223,4,4,120,1,18,3,20,20,1,5,4,0,175,175,175,175,175,175,175,175,0,0,65,65,3, +62,223,7,223,223,223,4,4,4,4,120,120,120,20,18,5,4,10,3,0,0,0,0,0,0,175,175,0,6, +6,6,5,223,7,63,223,223,4,4,4,4,0,175,175,175,10,5,4,10,10,3,3,3,4,3,0,175,175,0, +0,0,4,6,6,223,63,223,62,5,4,4,4,0,175,175,175,0,7,7,7,7,7,6,10,10,10,10,10,0,0, +5,4,95,1,0,0,62,62,6,5,4,5,4,5,0,175,0,0,6,6,6,6,6,6,6,3,5,5,4,3,0,0,4,3,4,1,3, +0,6,6,6,6,5,5,5,4,0,175,175,175,0,0,0,3,3,7,6,3,4,4,3,0,175,0,5,4,5,1,1,4,10,4, +6,6,6,6,6,0,175,175,175,175,175,175,0,5,4,3,1,0,0,0,0,175,175,175,0,1,3,0,0,1,3, +1,3,5,5,5,0,175,175,175,175,175,175,175,0,5,4,3,0,175,175,175,175,175,175,175, +175,0,5,4,95,5,1,1,1,0,3,6,0,175,175,175,175,175,0,0,3,3,4,0,175,175,175,175, +175,175,175,175,0,5,0,2,2,0,5,0,0,175,0,0,175,175,175,175,0,0,7,7,7,7,10,0,175, +175,175,175,175,175,175,175,0,95,2,3,93,2,4,0,175,175,0,175,175,175,175,175,175, +175,0,7,6,6,6,7,0,175,175,175,175,175,175,175,0,4,2,93,3,2,95,0,175,175,175,175, +175,175,175,175,175,175,175,0,0,5,6,6,6,0,0,0,0,0,0,175,0,5,0,2,2,0,5,0,175,175, +175,175,175,175,175,175,175,175,175,175,175,0,0,5,6,3,4,4,3,0,175,175,175,0,5, +95,4,5,0,175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,0,5,3, +4,3,0,175,175,175,175,175,0,0,0,0,175,175,175,175,175,175,175,175,175,175,175, +175,175,175,175,175,175,175,0,0,0,0,175,175,175 + } +}; + uint8_t SFG_charToFontIndex(char c) { if (c >= 'a' && c <= 'z') diff --git a/assets/enemy_1_attack.png b/assets/enemy_1_attack.png new file mode 100644 index 0000000000000000000000000000000000000000..3890cb7fc16ce4d7fde7a194aea758a0abfe3943 GIT binary patch literal 1474 zcmV;z1wHzSP)ZGnN1V02y>e zSad^gZEa<4bO1wgWnpw>WFU8GbZ8()Nlj2!fese{00k;ZL_t(o!^M{&aO*e_hQDSC z3=JMI2oMMm2nY-)2q+LZU~nMdKtVx3fk8oGVL*UDK|n#kfq(}L3IrZ7cp%WAKp;S% zz~F$v0|uG#0mqJ=r0JU@rx{Hh?XTU{>fc@Us(_OJaa^CQ%#VIQeZJY-|1CZP%+IVH z>FY5+1?G>{1dszk&<`48ZR7Lj1U*}wl?DCatiEieI`*!LdG`uxAb`JsY^+H(7JsM+ z{|Fmd^yf2t6Y!4%K!1O3Wbs>!|E>|^kYE!XoS@n-7IF6q+Cl)I7=KZHyG;y8+_o}g ztwl;nwl`cm(3ZKa!$-mX$;v?rtjhoOPcr^v4 z`1=Ukdq>aSyB27=pNCDUN_l=Yje+84#^gqlBncil0Li;!ax1Z0+u-Uw$E0qPJ)qw<)R{9K8$c%*Mxrk4T{@puD=06RU?v(MU2Cf z%*c!4#Q0eUYA2+KNPh|P?TGZ3XewcI;E#+rg*dIg0dyXddy+V%vp2Y&Hkjjab*UZK zO-5^t7<8S8WVa@?Nm*l~D7xG&zjEN17jEm&S|19Ot{TuhIy9mviV%DJxsacX4l{pa z0;Sfv^n_pDg_H6woRpsMt8Ca~P8fe-ei{LJ<`i-uuv>>Oe1dDA$xt+vFx%ziE^jcG z^n6J|IS?eT(aD-M^M)6bp}^})yuNH4kpoe+sM(prLkK=zRlJ#;s@-3V_enT|$``yl!Oq8~8s!*q0L z+vzXSWKr!@5h$#gpE%JwcS>WuDwpFJtu;z1+}1VSF1(L;el@H&8S72P^Q$4ek6H(j zD5Z$sVv2W*F{a845uQY%S9@ySs#0l;AzopyRCi~fkJEDaH;3*-*R>Fa9hVJNmwNbc57L_EcYz7#0!l#l%z?F+d7Of z7-Mi-N1DWVL&@w`AqE0DkSt%8*sX2!)rCwBB=K8}S3gRPF({>wQg$kr_p)U6Fgq#3 zUSASL(E%4l%pOi(OS6X=%a>&bS3h2Boz0t2zv#1NQx0S!``uBOU^$S-MGtRptCscZ z+I*qSYg_ysukB)gp4%H22_AqOj$#L^(%h=CzI6m2PNng{9ybFE%_`l$DSno*A c7y4@1zwqWWnije`O#lD@07*qoM6N<$g3TPV-v9sr literal 0 HcmV?d00001 diff --git a/assets/enemy_1_idle.png b/assets/enemy_1_idle.png new file mode 100644 index 0000000000000000000000000000000000000000..878cbfc9eada2b43adecfce14878e13b0cbee67f GIT binary patch literal 1245 zcmV<31S0#1P)e zSad^gZEa<4bO1wg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g_I9w#hzj z9LEIAHW{|8u*Z(q8uBlqqa#WwWGI`rqLe2nOc;S{lx92V3>|fV*krz1F4f}^xTJ5l zH~EZYMM3^UpYTRk&%^=Z0@Apozn^o^mX@r8P`4T;7ZJvwM|?)MMFGc>Zo||K;nk)8 wj@xo|&(bBV!K!2d6UOqtSg>L;wH)07*qoM6N<$g2DG*pa1{> literal 0 HcmV?d00001 diff --git a/assets/enemy_dead.png b/assets/enemy_dead.png new file mode 100644 index 0000000000000000000000000000000000000000..ea5d0dfd312637a367429d6ccb552b221377e4b0 GIT binary patch literal 449 zcmeAS@N?(olHy`uVBq!ia0vp^3LwnE1|*BCs=fdzwj^(N7l!{JxM1({$v_d#0*}aI z1_nK45N51cYF`EvWH0gbb!C6dCCDYIwD(!tU!ag=iEBiObAE1aYF-J0b5UwyNotBh zd1gt5g1e`0KzJjcI0FNtrl*TzNW|f{({+mu8wj|?8?oB8H8wi-2MA;c1YB^IV0og! z&BId7(#UXFMzNr=p+E6iL&nt|_JzxgX9{GxExzb=tM+#$>lUfRN1eH6Cr7iLV31T` zPHEtoz-Z(E;yhT$;QEH2dBy6Y!hZW7vjz13pUm2F=8(Z=;p;hiN?&U0Z$IR?yjONc zNU7PZyYhcjl!OcO%*1Nez29lRd8O8oz-A>Sk-%q)s|@S*C@V2+e)E4-dwli*nPSlh zmyB&^Srs&#B`z%3vfGT6y&!+~lfw*L3+`?`?V9oZ+ujqia+}$FBfr+3uiJmTv~Slc zea79VcV50&Z1ro)e2G2lvTnuxc5c1;_4}S3K?h{`5*L_ESaz^fPu6U=W)rm%Ut_cj+}SWEnhN{an^LB{Ts5MkcYE literal 0 HcmV?d00001