ssergiorodriguezz [Lexaloffle Blog Feed]https://www.lexaloffle.com/bbs/?uid=32049 pgui - a GUI library for Picotron! (Immediate Mode) <p> <table><tr><td> <a href="/bbs/?pid=147208#p"> <img src="/bbs/thumbs/pico64_pgui-1.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=147208#p"> pgui</a><br><br> by <a href="/bbs/?uid=32049"> ssergiorodriguezz</a> <br><br><br> <a href="/bbs/?pid=147208#p"> [Click to Play]</a> </td></tr></table> </p> <p>I made a GUI library for Picotron!</p> <p>It includes basic components: boxes, text boxes, text input, buttons, sliders, radio and multiple selection buttons, and color selecter. And layout components: vertical and horizontal stacks, dropdowns, a topbar and a scrollable container.</p> <p>It can be useful to test game mechanics or to build app interfaces.</p> <p>You can use this cart and see how it works or check the documentation on the <a href="https://github.com/srsergiorodriguez/pgui">github repository</a>.</p> <p>(I'll try to make a video on how to use it and post it here too :))</p> <p>Here's one simple example:<br /> <div><div><input type="button" value=" Show " onClick="if (this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display != '') { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = ''; this.innerText = ''; this.value = ' Hide '; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value = ' Show '; }"></div><div><div style="display: none;"></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>include &quot;pgui.lua&quot; function _init() -- Define the initial value of the slider slidervalue = 10 end function _update() -- Refresh pgui each frame pgui:refresh() -- Create a slider and set its value back from its return value slidervalue = pgui:component(&quot;hslider&quot;,{pos=vec(190,20),value=slidervalue}) end function _draw() cls(5) -- Draw the circle, its size is based on the return value of the slider circfill(240,140,slidervalue,8) -- Draw all pgui components pgui:draw() 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></div></div></div></p> <p>Let me know if you use it for any projects or if you have improvement ideas!</p> <p>Note: I noticed it isn't recognizing the backspace key in the text input on the bbs cartridge</p> https://www.lexaloffle.com/bbs/?tid=141913 https://www.lexaloffle.com/bbs/?tid=141913 Tue, 23 Apr 2024 20:47:53 UTC bebop music generator jukebox <p> <table><tr><td> <a href="/bbs/?pid=130455#p"> <img src="/bbs/thumbs/pico8_bebopjukebox-0.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=130455#p"> bebop jukebox 1.0</a><br><br> by <a href="/bbs/?uid=32049"> ssergiorodriguezz</a> <br><br><br> <a href="/bbs/?pid=130455#p"> [Click to Play]</a> </td></tr></table> </p> <p>This is a sample jukebox of songs made with bebop, a music generator desktop app I created for making songs for videogames. With bebop you can generate songs in .wav format or export a function that saves the song in your Pico-8 cartridge in the sfx and pattern slots (either momentarily or permanently).</p> <p>You can find the tool here: <a href="https://srsergior.itch.io/bebop"><a href="https://srsergior.itch.io/bebop">https://srsergior.itch.io/bebop</a></a></p> <p>This jukebox has a couple of generated songs that show the type of music that bebop can make. I think that this tool can be useful for giving Pico-8 games that extra musical polish in fast game jams and other projects :)</p> <p>(it is not an AI tool)</p> <p>You can freely use any of the songs in this jukebox by downloading the cartridge and adapting the code to your project. Just, please, mention my itch account in your credits: <a href="https://srsergior.itch.io/">https://srsergior.itch.io/</a></p> <h2>how to export from bebop to Pico-8</h2> <p><object width="640" height="400"><param name="movie" value="https://www.youtube.com/v/X_rxJUxxDYo&hl=en&fs=1&rel=0"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="https://www.youtube.com/v/X_rxJUxxDYo&hl=en&fs=1&rel=0" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="640" height="400"></embed></object></p> https://www.lexaloffle.com/bbs/?tid=52959 https://www.lexaloffle.com/bbs/?tid=52959 Fri, 02 Jun 2023 15:18:02 UTC Bloki (1 or 2p, strategy, falling blocks!) <h1>BLOKI</h1> <p> <table><tr><td> <a href="/bbs/?pid=121875#p"> <img src="/bbs/thumbs/pico8_bloki-1.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=121875#p"> bloki 1</a><br><br> by <a href="/bbs/?uid=32049"> ssergiorodriguezz</a> <br><br><br> <a href="/bbs/?pid=121875#p"> [Click to Play]</a> </td></tr></table> </p> <p>This is my second Pico-8 game!</p> <h2>Instructions</h2> <p>This a 1 or 2 player game.</p> <p>When a player makes a move the block underneath reduces one on its counter, and when it reaches 0 the block crumbles appart. The idea is to make the other player (human or computer) fall.</p> <h2>Controls</h2> <p>In 1 player mode, you can move with either the SEDF letters or with the arrow keys, in 2 player mode one player uses the SEDF letters and the other one uses the arrow keys.</p> <img style="margin-bottom:16px" border=0 src="/media/32049/bloki.gif" alt="" /> <img style="margin-bottom:16px" border=0 src="/media/32049/bloki p8_1.gif" alt="" /> <p>1 player mode has three different levels of difficulty, I used a minimax algorithm to implement the AI.</p> <h1>Other games</h1> <p>I also did a game called POF, a speedrunning boss shooting game: <a href="https://www.lexaloffle.com/bbs/?tid=46519">https://www.lexaloffle.com/bbs/?tid=46519</a></p> https://www.lexaloffle.com/bbs/?tid=50509 https://www.lexaloffle.com/bbs/?tid=50509 Mon, 05 Dec 2022 23:12:31 UTC POF (speed dueling game) <h1>POF</h1> <h2>Speedrunning dueling game</h2> <p> <table><tr><td> <a href="/bbs/?pid=106640#p"> <img src="/bbs/thumbs/pico8_pof-2.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=106640#p"> POF 1.2</a><br><br> by <a href="/bbs/?uid=32049"> ssergiorodriguezz</a> <br><br><br> <a href="/bbs/?pid=106640#p"> [Click to Play]</a> </td></tr></table> </p> <h2>Help POF shoot all nightmares away! Can you do it fast?</h2> <p><img style="margin-bottom:16px" border=0 src="/media/32049/pof_2.gif" alt="" />. <img style="margin-bottom:16px" border=0 src="/media/32049/pof_0.gif" alt="" /></p> <img style="margin-bottom:16px" border=0 src="/media/32049/pof_controls.png" alt="" /> <h3>Rules</h3> <p>This is a casual speed duel game. Help POF kill all the monster nightmares as fast as possible and without losing all your lives. Every nightmare has its own behavior, so find the best strategy to defeat each one of them quickly. As you advance, you can buy new weapons and upgrade your stats, choose wisely to improve your times.</p> <p>This is my first Pico 8 game, let me know what you think,<br /> and don't forget to screenshot and share your best times in the comments!</p> <h3>Credits</h3> <p>Game design, coding and music: Sergio R G (Twitter: @srsergior)</p> <p>Character design: Paula R G (Check her nice crochet amigurumis at @harucrochets)</p> <p>Beta Testers: Miguel and Justin</p> https://www.lexaloffle.com/bbs/?tid=46519 https://www.lexaloffle.com/bbs/?tid=46519 Thu, 10 Feb 2022 04:13:03 UTC