From b75726373b7b074c399bec4dbf486756508c53d7 Mon Sep 17 00:00:00 2001 From: Elias <92587199+eliaswolfy@users.noreply.github.com> Date: Thu, 21 Nov 2024 00:10:09 -0400 Subject: [PATCH] Update jsdemo.js --- demos/jsdemo.js | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/demos/jsdemo.js b/demos/jsdemo.js index fcb73ca7b..42b255722 100644 --- a/demos/jsdemo.js +++ b/demos/jsdemo.js @@ -6,21 +6,21 @@ // version: 0.1 // script: js -var t=0 -var x=96 -var y=24 +let t=0; +let x=96; +let y=24; function TIC() { - if(btn(0))y-- - if(btn(1))y++ - if(btn(2))x-- - if(btn(3))x++ - - cls(13) - spr(1+((t%60)/30|0)*2,x,y,14,3,0,0,2,2) - print("HELLO WORLD!",84,84) - t++ + if(btn(0))y--; + if(btn(1))y++; + if(btn(2))x--; + if(btn(3))x++; + + cls(13); + spr(1+((t%60)/30|0)*2,x,y,14,3,0,0,2,2); + print("HELLO WORLD!",84,84); + t++; } //