codekitchen [Lexaloffle Blog Feed]https://www.lexaloffle.com/bbs/?uid=20084 &quot;HI, Robot&quot; programming puzzle game <p> <table><tr><td> <a href="/bbs/?pid=41167#p"> <img src="/bbs/thumbs/pico41397.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=41167#p"> HI, Robot 1.1</a><br><br> by <a href="/bbs/?uid=20084"> codekitchen</a> <br><br><br> <a href="/bbs/?pid=41167#p"> [Click to Play]</a> </td></tr></table> </p> <p>Wire up your robot pals using sensors and logic gates to solve the puzzles and maybe even reunite with an old friend.</p> <p>The original development thread is <a href="https://www.lexaloffle.com/bbs/?tid=29058">here</a>.</p> <p>I've put it up <a href="https://codekitchen.itch.io/hi-robot">on itch.io as well</a>.</p> https://www.lexaloffle.com/bbs/?tid=29406 https://www.lexaloffle.com/bbs/?tid=29406 Wed, 31 May 2017 15:47:32 UTC lisp-8 with in-game editor <p>Here's a silly thing that came out of <a href="https://www.lexaloffle.com/bbs/?tid=28160">another thread</a> where I was contemplating parsing game content out of strings, and just how far to take the idea. Eventually configuration/data formats always end up becoming programming languages (heck that's how Lua got its start), so why not just make it a full programming language from the start? Get a jump on <a href="https://en.wikipedia.org/wiki/Greenspun%27s_tenth_rule">Greenspun's 10th rule</a>.</p> <p>So, I implemented lisp-8, a small lisp dialect intended to be used in pico-8 carts. The core code is about 1400 tokens after some fairly aggressive (ugly) optimizations. I could cut it down by about 200 tokens if pico-8 ever exposed Lua's <span style=" display:inline-block; background-color:#eee; padding:2px; margin: 4px; padding-left: 8px; padding-right: 8px; color:#222">_G variable.</p> <p>And of course, once you've got a scripting language embedded in your game, why not allow your players to type in code and make a full programming game out of it?</p> <p>Of course, it might take a week to type in your program with the limited input available on pico-8. So if you don't want to type in code yourself, hit tab to cycle through some sample lisp statements.</p> <p> <table><tr><td> <a href="/bbs/?pid=39746#p"> <img src="/bbs/thumbs/pico39744.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=39746#p"> lisp-8</a><br><br> by <a href="/bbs/?uid=20084"> codekitchen</a> <br><br><br> <a href="/bbs/?pid=39746#p"> [Click to Play]</a> </td></tr></table> </p> <p>This editor cartridge is, of course, itself implemented in lisp-8. It's all in the first _init function at the top of the code, the rest of the file is the lisp-8 engine.</p> <p>Ultimately I don't know if this has any practical use at all, and it sure is slow, but it's kind of fun. It gave me lots of good ideas about how I can better compile together my assets for my <a href="https://www.lexaloffle.com/bbs/?tid=29058">actual pico-8 programming puzzle game</a>, at least.</p> https://www.lexaloffle.com/bbs/?tid=29190 https://www.lexaloffle.com/bbs/?tid=29190 Tue, 18 Apr 2017 00:04:07 UTC logic gates/circuits game <p> <table><tr><td> <a href="/bbs/?pid=#p"> <img src="/bbs/thumbs/pico41166.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=#p"> hi, robot 1.0</a><br><br> by <a href="/bbs/?uid=20084"> codekitchen</a> <br><br><br> <a href="/bbs/?pid=#p"> [Click to Play]</a> </td></tr></table> </p> <p>I loved these old &quot;programming&quot; puzzle games in the Apple II era, like Rocky's Boots and Robot Odyssey. I thought it seemed like a good fit to do something similar for pico-8, since unlike most programming games we don't need full keyboard input, we can get by with just two buttons.</p> <p>Older versions:<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;"><br /> <table><tr><td> <a href="/bbs/?pid=38785#p"> <img src="/bbs/thumbs/pico40902.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=38785#p"> hi, robot 0.8</a><br><br> by <a href="/bbs/?uid=20084"> codekitchen</a> <br><br><br> <a href="/bbs/?pid=38785#p"> [Click to Play]</a> </td></tr></table> </p> <p> <table><tr><td> <a href="/bbs/?pid=38785#p"> <img src="/bbs/thumbs/pico40556.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=38785#p"> hi, robot 0.7</a><br><br> by <a href="/bbs/?uid=20084"> codekitchen</a> <br><br><br> <a href="/bbs/?pid=38785#p"> [Click to Play]</a> </td></tr></table> </p> <p> <table><tr><td> <a href="/bbs/?pid=38785#p"> <img src="/bbs/thumbs/pico39999.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=38785#p"> circuits 0.6</a><br><br> by <a href="/bbs/?uid=20084"> codekitchen</a> <br><br><br> <a href="/bbs/?pid=38785#p"> [Click to Play]</a> </td></tr></table> </p> <p> <table><tr><td> <a href="/bbs/?pid=38785#p"> <img src="/bbs/thumbs/pico39784.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=38785#p"> circuits 0.5</a><br><br> by <a href="/bbs/?uid=20084"> codekitchen</a> <br><br><br> <a href="/bbs/?pid=38785#p"> [Click to Play]</a> </td></tr></table> </p> <p> <table><tr><td> <a href="/bbs/?pid=38785#p"> <img src="/bbs/thumbs/pico39571.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=38785#p"> circuits 0.4</a><br><br> by <a href="/bbs/?uid=20084"> codekitchen</a> <br><br><br> <a href="/bbs/?pid=38785#p"> [Click to Play]</a> </td></tr></table> </p> <p> <table><tr><td> <a href="/bbs/?pid=38785#p"> <img src="/bbs/thumbs/pico39116.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=38785#p"> circuits 0.3</a><br><br> by <a href="/bbs/?uid=20084"> codekitchen</a> <br><br><br> <a href="/bbs/?pid=38785#p"> [Click to Play]</a> </td></tr></table> </p> <p> <table><tr><td> <a href="/bbs/?pid=38785#p"> <img src="/bbs/thumbs/pico38890.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=38785#p"> circuits 0.2</a><br><br> by <a href="/bbs/?uid=20084"> codekitchen</a> <br><br><br> <a href="/bbs/?pid=38785#p"> [Click to Play]</a> </td></tr></table> </p> <p> <table><tr><td> <a href="/bbs/?pid=38785#p"> <img src="/bbs/thumbs/pico38793.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=38785#p"> circuits 0.1</a><br><br> by <a href="/bbs/?uid=20084"> codekitchen</a> <br><br><br> <a href="/bbs/?pid=38785#p"> [Click to Play]</a> </td></tr></table> <br /> </div></div></div></p> https://www.lexaloffle.com/bbs/?tid=29058 https://www.lexaloffle.com/bbs/?tid=29058 Mon, 27 Mar 2017 18:59:28 UTC blocking sleep on MacOS <p>I know this is a small thing, but I often forget to quit pico-8 and I leave it running in the background overnight, which prevents my Mac from sleeping. Maybe it could be tweaked so that pico-8 only blocks the display from turning off/computer from sleeping when it's in run mode?</p> <p>I tracked it down to pico-8 by running <span style=" display:inline-block; background-color:#eee; padding:2px; margin: 4px; padding-left: 8px; padding-right: 8px; color:#222">pmset -g assertions which showed:</p> <div> <div style="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> pid 164(coreaudiod): [0x001a40d7000197e9] 11:05:27 PreventUserIdleSystemSleep named: &quot;com.apple.audio.AppleHDAEngineOutput:1B,0,1,1:0.context.preventuseridlesleep&quot; Created for PID: 93582. </pre></div></td> <td background=/gfx/code_bg1.png width=16><div style="width:16px;display:block"></div></td> </tr></table></div></div> <p>PID 93582 is pico-8. So it appears it's because it's keeping the audio channel open.</p> https://www.lexaloffle.com/bbs/?tid=29046 https://www.lexaloffle.com/bbs/?tid=29046 Fri, 24 Mar 2017 11:28:07 UTC Flying Fish <p>I was thinking the other day about how the remote lakes in the mountains near my house are stocked with fish by dropping them out of planes and helicopters. What a strange experience that must be for a fish! So I decided to make a little game about it.</p> <p>So far there's no real goal, you just fly each fish into the lake and stock it up with happy, swimming fishes. I haven't decided yet whether I'll add a more concrete goal or keep it as is. Not totally happy with the helicopter sprite yet, either.</p> <p> <table><tr><td> <a href="/bbs/?pid=38307#p"> <img src="/bbs/thumbs/pico38339.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=38307#p"> Flying Fish</a><br><br> by <a href="/bbs/?uid=20084"> codekitchen</a> <br><br><br> <a href="/bbs/?pid=38307#p"> [Click to Play]</a> </td></tr></table> </p> https://www.lexaloffle.com/bbs/?tid=28977 https://www.lexaloffle.com/bbs/?tid=28977 Fri, 17 Mar 2017 12:30:34 UTC firework shaper <p> <table><tr><td> <a href="/bbs/?pid=34972#p"> <img src="/bbs/thumbs/pico34971.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=34972#p"> firework shaper 1.0</a><br><br> by <a href="/bbs/?uid=20084"> codekitchen</a> <br><br><br> <a href="/bbs/?pid=34972#p"> [Click to Play]</a> </td></tr></table> </p> <p>My entry for the <a href="https://itch.io/jam/weekly-hour-game-jam---w1-2017">Weekly Hour Game Jam, week 1 2017</a>. The theme was &quot;Happy New Year&quot;, so I created a fireworks show. To add a bit of interactivity, you can move a cursor around and draw shapes with X or Y to create different firework effects.</p> <p>I definitely still had a few things on my TODO list after an hour, so it's missing some polish, but overall I'm happy with what I finished in 60 minutes.</p> https://www.lexaloffle.com/bbs/?tid=28443 https://www.lexaloffle.com/bbs/?tid=28443 Wed, 04 Jan 2017 23:02:41 UTC Asterion <p> <table><tr><td> <a href="/bbs/?pid=34937#p"> <img src="/bbs/thumbs/pico34936.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=34937#p"> Asterion (Pac-Man Battle Royale) 0.1</a><br><br> by <a href="/bbs/?uid=20084"> codekitchen</a> <br><br><br> <a href="/bbs/?pid=34937#p"> [Click to Play]</a> </td></tr></table> </p> <p>For my first PICO-8 project I decided to make a game similar to Pac-Man Battle Royale, my favorite multiplayer arcade game of the decade. Right now you can play 1-player with an AI opponent, or 2-player battle.</p> <p>The basic pac-man gameplay is there, but so far the only mechanic I've implemented is players bumping off each other on collision. I still need to add a lot more gameplay and flair, and hopefully find some ways to make it my own (besides the greek labyrinth theme). This is my first PICO-8 project, I'd welcome any feedback!</p> https://www.lexaloffle.com/bbs/?tid=28432 https://www.lexaloffle.com/bbs/?tid=28432 Wed, 04 Jan 2017 16:29:31 UTC