From 1026839cb80b732449213c2659ea46b92058511b Mon Sep 17 00:00:00 2001 From: Mitchell Adair Date: Sun, 12 Sep 2021 01:22:42 -0400 Subject: [PATCH] remove testscript, optimize SpriteRenderer, update Physics ref --- build/SFramework_v0.3.3.cspack | Bin 0 -> 10402 bytes src/SFramework/CS API Extensions/GameObject.lua | 2 +- src/SFramework/Components/SpriteRenderer.lua | 6 +++--- src/TestScript.lua | 16 ---------------- 4 files changed, 4 insertions(+), 20 deletions(-) create mode 100644 build/SFramework_v0.3.3.cspack delete mode 100644 src/TestScript.lua diff --git a/build/SFramework_v0.3.3.cspack b/build/SFramework_v0.3.3.cspack new file mode 100644 index 0000000000000000000000000000000000000000..7e2574b92c73757a4166402cf97ff87381dfc767 GIT binary patch literal 10402 zcmbuF1x%e=mxd4STHM{;-QC^Y-QA@?ad-Ek#hv0%++A8)oZ{}o-^on>%k5-xXCP#K zUqbSn_3pFxvaKKu0*V3vKtcjUplOtsN(M|50RTYT>mMe71R&__Z0h1nuWamO>F{cq z=!~76e?3D32wwjM0007D03apS6Ov08f!azX7! zU{=_RLd_{G#^Oz8~zJ5=}q4!0E0wGH@)Qb%tds#!O%) zSJODls8f;;x%oolnsK7Hmh~POxp8Qv5`>`JM?xA6)X;%LEfK-qAmPdVNKi=1 zemO#PMp2ug0G6G3kw{ohjqOtSi?>adErkU@06-ncAH8M#qqhhv-+y`g)+Q_WM65C( z9@+L>5{Gv7bM|i>*CJX_x=^wxw0Ub^=c$sND`-23I|)%dW%^l&CuEx`3zv0^VRd?5 z>@c=@JyBKZt5=}dFf@`Af_)7I%NZ^b*6VdCXsTwZC%%i&D z@PLj8fvPtJDKP*6&hyj`9XI*@men>l;!X=lC|iYphkm@vV|S$X^$q z^;)o~2owN7e+K|y{r#)X$neM2N5((D!_Q@tH7;ceA8_qW>Xjd zGsV|(q*ao9a^ zc5@G(6+LCeYB$Bn-KhFX? zRv(3#8sm!dB09*qU?H~#DO@tHtPz>DTxKefgBV;#_kgfZ`cCwrPr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2WU&vLc5thcGdZ&n-Lf3yA% ziNssZ+pztcQ-c47^N)h~Th7}c_?y#B@P_k`LgHJ_+mP~`vqA{?zXTWsX|UG|2><}x P>#s2w06= self.animSpeed then newFrame = true self.currentAnimFrame = self.currentAnimFrame + 1 if self.currentAnimFrame >= self.numFrames then @@ -171,7 +171,7 @@ function Behavior:Update() end if newFrame then self.gameObject.textRenderer:SetText(string.char(self.currentAnimFrame + 32)) - self.animCounter = 0 + self.animCounter = 1 else self.animCounter = self.animCounter + 1 end diff --git a/src/TestScript.lua b/src/TestScript.lua deleted file mode 100644 index cb7bb59..0000000 --- a/src/TestScript.lua +++ /dev/null @@ -1,16 +0,0 @@ -function Behavior:Awake() - local renderer = self.gameObject:CreateSpriteRenderer() - renderer:SetAnimation(CS.FindAsset("Sprites/Sample/Animations/Idle"), 6) - renderer:StartAnimationPlayback() - - SF.physics.setGravity(1) -end - -function Behavior:Start() - self.gameObject.physics:ApplyImpulse(Vector3:New(0, 0, 0)) -end - -function Behavior:Update() - --self.gameObject.physics.velocity.x = -.1 - --print(self.gameObject.physics.velocity) -end \ No newline at end of file