From 66f1127c53fce39cea54143fb69c7316a41c5aac Mon Sep 17 00:00:00 2001 From: sam-astro <77079540+sam-astro@users.noreply.github.com> Date: Sun, 28 Aug 2022 12:27:25 -0400 Subject: [PATCH] Add simple benchmark script --- examples/Benchmark/mariostill.png | Bin 0 -> 297 bytes examples/Benchmark/script.zs | 157 ++++++++++++++++++++++++++++++ 2 files changed, 157 insertions(+) create mode 100644 examples/Benchmark/mariostill.png create mode 100644 examples/Benchmark/script.zs diff --git a/examples/Benchmark/mariostill.png b/examples/Benchmark/mariostill.png new file mode 100644 index 0000000000000000000000000000000000000000..ceabf77b98ce84c99071a7339c2e4be8309fddc6 GIT binary patch literal 297 zcmV+^0oMMBP)Px#<4Ht8R5*==Q?U($Fc3TtYou_&0#>Aq;4(v`0w!PrCP-2-M9Pd{DPn;X6s!@+ zX=3yLe#kXo|KIt1whJhD9P1$G&aZc&^=6YAc~7j8#ph{G|GhN;fMJ@^TZ6+TcTv(o z+f^Zw;+J9>>#&U6VVQOPFihMD9a9lzsqLzutxm}RaJzmIPfb?Zq>wpe0?~!@h6PGj zrC_HJ$r8>Rpqo=o-GU@L&vT$|s7N}6-kKDi^9HtAn{BfS(mv*Z1~=Wcjev>9FtdBG vMc%6IzJ++_wK-LQ1}Tqit5#|a|3G`c4xD3O&2 1 + // { + // g_jumping = false + // } + // } + // if GetKey("SPACE") == true + // { + // g_jumping = true + // g_jumpingTime = 0 + // g_playerTargetPosition.y -= 2 + // } + // } + + // // Lerps from old position to destination smoothly + // float stopSpeed = deltaTime * 15 + // float lerpedX = Lerp(g_playerSprite.position.x, g_playerTargetPosition.x, stopSpeed) + // s_aa.position = NVec2(lerpedX, g_playerTargetPosition.y) + + // Finally draws all of the sprites + ZS.Graphics.Draw(s_aa) + ZS.Graphics.Draw(s_ab) + ZS.Graphics.Draw(s_ac) + ZS.Graphics.Draw(s_ad) + ZS.Graphics.Draw(s_ae) + ZS.Graphics.Draw(s_af) + ZS.Graphics.Draw(s_ag) + ZS.Graphics.Draw(s_ah) + ZS.Graphics.Draw(s_ai) + ZS.Graphics.Draw(s_aj) + ZS.Graphics.Draw(s_ak) + ZS.Graphics.Draw(s_al) +} + +func Colliding(a, b) +{ + bool bo = ZS.Physics.AxisAlignedCollision(a, b) + return bo +}