From 19881f9ae5b29969ce3a2d689e386124c4d73a72 Mon Sep 17 00:00:00 2001 From: Damien Date: Fri, 14 May 2021 10:01:17 +0200 Subject: [PATCH] passage de l'arrow0 en 32x32 --- core/assets/arrow0.png | Bin 6304 -> 783 bytes core/assets/player1.png | Bin 1367 -> 1523 bytes core/src/sagittarius/model/Arrow.java | 6 +++--- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/core/assets/arrow0.png b/core/assets/arrow0.png index 0e490254f03d49c9689c109615e09312e70efd15..db0a872a282fd149d1223dd99dbad852dbcf106c 100644 GIT binary patch delta 757 zcmViziBL{Q4GJ0x0000DNk~Le0000W0000W2nGNE0CReJ^pPPbf5HF& z4#EKyC`y0;00N{*L_t(oN4=L#h>cMg$Ir!JY8Fys%H(4(q|9ar327`y6C06_g-Ds1 zvY9fHjV)zTRzfMUQfd}bDCJ{?!a@zj!uTlVvl$pi#Nj9k1k*iN{BPq1r$e_QP5QjB^ZoGoCQQ!TIbvOf~f3POdgmaUk zn~KwtqFWfE8EXQEaTh+t?B1Urq8U>HY(>ra4ZMb5)D~D2q8Xn+34ARdx9|jJ=RJBW z7P6feAQY>@ir3t0Cv5f&&b`Ew*vJU!h#r%)pV58ziZzKWVGH)+JrdB=RKTMf2=9~H z2x&j%&Xh!N=W_RR@LOofe@~&N&ehbnxL*SgL(2%u)@*a_2Tz5X=NYyn#mpKw-O;M( z8?BUvhg|88&ZU1T7KcNrOu6$iN+2aPnP3`vuq#w6;E^+vCsz_aj#`Ae7p%rDSc`fy zp2KF=fG#UzlJ+yY4`0!Tc{&#)&_~eSAj@4k-w?_s{2IvHd0;2%f1U8b*AjF;jKXvh zhAr2IJFs4rfX;#_ObLLlWSW9inEmeS5Y1QG!FVEES(-r#v$OONVY+zv4c%Lv@ZW2j5%S^SDW@FqrMIRQP4g#Hg)#ueDd{BKoz nEY>w3bOO%82dIN-0yy^hA2MssbkPnTh+>B2IkT#CqunrrnbLSd#NHYTG& zH4=S7x#W@$m2M0v6s7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d25nIRU>2;z>vw~R{k8HP|@X&)`@+O$?gF- z%;X)$Ugver5ZMnD&8Lz|0elAFB$Ia%z-cD$o^-FKHFn=HI1rg$_dG9JA+rGfVeAq1QzEe~Qal?Rf;czx`j7k3!f@wD=)jA?!Q*)NF5Mp&#Zg%G`f-=`os0W@S_!5;v z-6L)|EGr))TFr~J#YWV_%1Vf)A8N&f zUoz#F$nd+w5COi%7peUElZfuu)Y~PZIZE{@pZm39sQmA9Tq8pX_SiS!dD{gOU Zc?ZkT*eydK;$i>*002ovPDHLkV1kr-n7;r3 diff --git a/core/src/sagittarius/model/Arrow.java b/core/src/sagittarius/model/Arrow.java index d3f375e..c112e9c 100644 --- a/core/src/sagittarius/model/Arrow.java +++ b/core/src/sagittarius/model/Arrow.java @@ -43,8 +43,8 @@ public class Arrow extends EntityQuad { super(0, 1, shooter.getColor(), shooter.getPosition()); this.velocity = new Vector2(power, 0).setAngleDeg(angle); this.acceleration = new Vector2(); - this.setOrigin(80, 2); - this.setSize(100, 4); + this.setOrigin(40, 2); + this.setSize(50, 4); this.force = computeForce(); this.landed = false; @@ -108,7 +108,7 @@ public class Arrow extends EntityQuad { @Override public void draw(Batch batch, float parentAlpha) { - batch.draw(texture, getPosition().x - 0.8f * getWidth(), getPosition().y - getHeight()/2 - 10, 0.8f * this.getWidth(), this.getHeight()/2 + 10, getWidth(), 20 + getHeight(), + batch.draw(texture, getPosition().x - getOriginX(), getPosition().y - getWidth()/2, getOriginX(), getWidth()/2, getWidth(), getWidth(), 1, 1, getRotation(), 0, 0, texture.getWidth(), texture.getHeight(), false, false); super.draw(batch, parentAlpha); }