From b959cc3fa7ba46525242268916a49a41b0e39ee4 Mon Sep 17 00:00:00 2001 From: Damien Date: Fri, 14 May 2021 11:53:51 +0200 Subject: [PATCH] annimation du ptit bonhomme --- core/assets/player0-1.png | Bin 3321 -> 3457 bytes core/assets/player0-2.png | Bin 3457 -> 3321 bytes core/src/sagittarius/model/Player.java | 9 +++++++-- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/core/assets/player0-1.png b/core/assets/player0-1.png index 9091287a8bfc413e954dbb130a9ca2c2fddde694..49efa8968bcfdd7d4508cff17f51629ea3434c09 100644 GIT binary patch delta 3405 zcmV-T4YKn28G##+Reuc@NklY+*EmiU$Br;+?V#ghIx2mj7O2`vr*(h=B3fE#3zqUK1Og?2B(Qmq zgzRRskNfcZ?rzqEWRuYPk6-4?IrrXk&-u>p{LbTdSN?DD!+-12nU4u2osJs)8g_t2 zDr>>Yui9_rM~x8$4AD~+ECi>3Nw61W<4s_DIzMV5Sp}pUwt?)a39{l`um)TJ&IO%d z6lBAH0sjfcz<8Q`Z&)$*bUFa(#$8|qSPinrUhpPxF}M(%2o{5->9ia4fGoq5f?2@Lu&uZ>} zwDD~06T|xGv{fMM%V3azv;)$?XwtqODR!GpKt**r6o=g=PNze>ZkOcdc*X5f#e=-d z=@dm_yMw?w=u20CbnXlW4FSx<0!zSaK@}A$th_KkpcDl1l*;l_@#W^o*pgzY9yeAh z%8Di6^M6TkVNmjLKb}ZPGRfs(5ZLnu@GUUbHw1&^!U8nYI`Br&?#uBiHRCJLaGB(K zJrp7FctSj0k9g5@-7uuLH;xH!N~9+$$4=Hu{*IzA_WhF`wjXRyHSahjQal=Ypk4OBzT*=S#Nig3p ziKGULBqgb7teW8B^d~UVXMq6%(0iI`HaH)q@j4xLrKYMvnLepnL0(LZ?+1;Y(sD5> z#d#i>&lCe|-LB&y(M(eceICmf0)C$q`134b6wwuqh>7O_*MW`bJ*T9Fj1!`94hJ2t z8h^fK!rVqM;Fr=dg<`iuCmN3>b$NQn2eNMW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W!O5H_F?cW z7y>Z$Qt&(Azj4X^ygy2KAG{9aF+M9UZG1$a!YSZpa4^;{OK~91f{YnP1z2Qw1E8|C zR<)x?1msbERDgg)M}>Q`uLGt@#~QG8UIr>LOBodn!m3p( zQMXJmLnrQ*gMV8z+!)MErym7R@Sl0&4K89C?AiF74UO~2_c)g4Z(^~UHJku$L>~$$H!#&`gSfa~yQyN}x&!2X*$Ga07YnS85rnboG0}NdMHJk-l zpv1~;SRS_0RDX1v4csm1xcp+mj@<(C{M*&3sij9F?$u(moh$4z4MwL z4|g(rXAIJs%>p!MB$X8&B+j4#3dx4a7#(DrbWZe!K zXEA`_O2)5SHLB9?TQScs3ud@v<~X|qVWSzPPMJI1DR)e^+2WNq8TIw`o@g{WYpgqQ z(qS{ZWAQ}n^x3A8P+JGTjL@;`!A;-}&;m_66xj1~SVa25sF^iIwoo)~mm8{ma{YMS zI)9ow7&Qa@MsOllg^ep5b125k3;gF2E$!h2E$todrt__CUDsKVj{F9=3BAv3RM{-R zA>^`q61R8(wm6M#b}S& zcCk}(astvFyv4DwsPos(Z9o3$%NsXN+JB^W1{}|Oil%sPTO3euQqN2!F@z z^KQG@>ykJ#2rpEGIo)wH66|GJbFrcn`4rUYl>TS zOY~v~r|)V^zk0(oU#e?pe4;tj`rhYWJe6LT24h44*H%vnGyIEdNo%+&%73mmwc6dT z^Y3nwcsveoFcAtWn39S%|B)Z?By^yz{_M9R(cTw&WAWp2)*Q6=ZGnGlVT|j=+7}f{4#UkMb!i^*Sg~NJ< z@dB4q9=|AzoI zVZY#)?_D5M3gA%qW%H^5KS+EmVBr}Drm%jQ0russ;YjB{0Fzceg)e{(ki$132008~ zq{;b{4Wr|4gM+3PCPqR=fOTUacp&BM;7@lZitgjhQ33Tm#!5#*x_HV0BZCoAR$S@> jpG~L#OYrx`ED-q*j@G4bEuZx!00000NkvXXu0mjfs-vP? diff --git a/core/src/sagittarius/model/Player.java b/core/src/sagittarius/model/Player.java index f3b4687..72eb1b1 100644 --- a/core/src/sagittarius/model/Player.java +++ b/core/src/sagittarius/model/Player.java @@ -19,6 +19,7 @@ public class Player extends EntityQuad { private Planet home; private boolean active; private ArrayList texture; + private int T = 0; // ---------- CONSTRUCTORs ---------- @@ -73,8 +74,12 @@ public class Player extends EntityQuad { @Override public void draw(Batch batch, float parentAlpha) { - batch.draw(texture.get(0), getPosition().x - getWidth()/2, getPosition().y - getHeight()/2, getWidth()/2, getHeight()/2, getWidth(), getHeight(), - 1, 1, getRotation(), 0, 0, texture.get(0).getWidth(), texture.get(0).getHeight(), false, false); + T++; + T %= 100; + int i = (int) (T * ((float) texture.size() / 100)); + System.out.println(i); + batch.draw(texture.get(i), getPosition().x - getWidth()/2, getPosition().y - getHeight()/2, getWidth()/2, getHeight()/2, getWidth(), getHeight(), + 1, 1, getRotation(), 0, 0, texture.get(i).getWidth(), texture.get(i).getHeight(), false, false); super.draw(batch, parentAlpha); }