SingletonJohn [Lexaloffle Blog Feed]https://www.lexaloffle.com/bbs/?uid=106452 Space Invaders tribute <p> <table><tr><td> <a href="/bbs/?pid=159281#p"> <img src="/bbs/thumbs/pico64_spaceinpaders-5.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=159281#p"> spaceinpaders</a><br><br> by <a href="/bbs/?uid=106452"> SingletonJohn</a> <br><br><br> <a href="/bbs/?pid=159281#p"> [Click to Play]</a> </td></tr></table> </p> <p>I&acute;m doing this cartridge to learn about LUA and Picotron</p> <p>It&acute;s the classic arcade Space Invaders (under construction)....nothing else to explain</p> https://www.lexaloffle.com/bbs/?tid=146128 https://www.lexaloffle.com/bbs/?tid=146128 Sun, 15 Dec 2024 21:28:43 UTC Coroutines and HMTL export <p>Hello!</p> <p>I am new at Picotron and I&acute;m studying the system and LUA language to enjoy it!<br /> From now, I love it an it&acute;s fun: very nice work!</p> <p>I have a problem with coroutines and HTML version: in HTML version the executuion freezes (a loop with a yield inside) or the coroutines dont have any effect</p> <p>Also, in HTML, time-dependant actions aren&acute;t as accurate as in &quot;cartridge&quot; execution (I&acute;m talking about changing Pan of a sound frame to frame, as the sound-emitter changes it position)</p> <p>I don&acute;t know if this is a normal behaviour or if it is a bug...I understand that HTML &quot;player&quot; or interpreter isn&acute;t as powerful as the Picotron System</p> <p>I&acute;ll put here and example</p> <div> <div class=scrollable_with_touch style="width:100%; max-width:800px; overflow:auto; margin-bottom:12px"> <table style="width:100%" cellspacing=0 cellpadding=0> <tr><td background=/gfx/code_bg1.png width=16><div style="width:16px;display:block"></div></td> <td background=/gfx/code_bg0.png> <div style="font-family : courier; color: #000000; display:absolute; padding-left:10px; padding-top:4px; padding-bottom:4px; "> <pre>function _draw() cls() print_one_by_one(&quot;Hello world!!!!&quot;) end function print_one_by_one(string) for i=1, #string do print(string[i],8*(i-1),0,7) for j=1, 15 do yield() end end while(not btn(5)) do yield() end --...DO A RESTART ROUTINE end</pre></div></td> <td background=/gfx/code_bg1.png width=16><div style="width:16px;display:block"></div></td> </tr></table></div></div> <p>Thanks in advance! </p> <img loading="lazy" style="margin-bottom:16px" border=0 src="/media/106452/2_Infakers.p64" alt="" /> https://www.lexaloffle.com/bbs/?tid=146123 https://www.lexaloffle.com/bbs/?tid=146123 Sun, 15 Dec 2024 20:15:09 UTC