MBoffin [Lexaloffle Blog Feed]https://www.lexaloffle.com/bbs/?uid=10198 Dialog Text Flow with Coroutines <p> <table><tr><td> <a href="/bbs/?pid=67842#p"> <img src="/bbs/thumbs/pico8_mb_textflow-2.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=67842#p"> Dialog Text Flow with Coroutines</a><br><br> by <a href="/bbs/?uid=10198"> MBoffin</a> <br><br><br> <a href="/bbs/?pid=67842#p"> [Click to Play]</a> </td></tr></table> </p> <p>This is a <strong>heavily</strong> commented cart that shows one way of doing flowing dialog text with coroutines. If you have any questions on how it works, feel free to ask. Again, this is <em>one</em> way of doing it. :)</p> https://www.lexaloffle.com/bbs/?tid=35381 https://www.lexaloffle.com/bbs/?tid=35381 Wed, 18 Sep 2019 05:44:37 UTC Top-Down Adventure Game Tutorial <p>I just finished creating a tutorial for making a top-down adventure game in PICO-8. It's 10 relatively short videos (45 minutes for all 10 videos). You don't need any prior experience with PICO-8 to do the tutorial. I have done this tutorial with many, many kids and the games they create with it are always inspiring.</p> <p><strong>UPDATE 8/25: I've added a bonus step that allows you to add text to your game! :D</strong></p> <p><strong>UPDATE 8/27: I added another bonus step that allows you have as many types of tiles as you want. You could use them for treasure, special keys to specific doors, teleporters, quest items, anything you want! 🗝️📜</strong></p> <p>You can find it on itch.io and on YouTube:</p> <p><a href="https://www.youtube.com/playlist?list=PLdLmU93eWisKpyk1WZywUSYAq5dkCPFIv">https://www.youtube.com/playlist?list=PLdLmU93eWisKpyk1WZywUSYAq5dkCPFIv</a></p> <p><a href="https://mboffin.itch.io/pico-8-top-down-adventure-game-tutorial">https://mboffin.itch.io/pico-8-top-down-adventure-game-tutorial</a></p> <p>If you have any questions or need any help, feel free to let me know. I hope you enjoy it! :)</p> <p>My <a href="https://www.lexaloffle.com/bbs/?tid=32417">Happy Challah Days</a> entry for the 2018 PICO-8 Advent Calendar was created using this tutorial as the base code. (I added extra features for the jam, like dialog boxes, quests, and a larger inventory, but its foundation is this tutorial.)</p> <p> <table><tr><td> <a href="/bbs/?pid=59569#p"> <img src="/bbs/thumbs/pico8_advent_challah-11.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=59569#p"> Happy Challah Days!</a><br><br> by <a href="/bbs/?uid=10198"> MBoffin</a> <br><br><br> <a href="/bbs/?pid=59569#p"> [Click to Play]</a> </td></tr></table> </p> <img style="" border=0 src="https://www.lexaloffle.com/bbs/files/1/mboffin_adventure.gif" width=1 height=1 alt="" /> https://www.lexaloffle.com/bbs/?tid=35135 https://www.lexaloffle.com/bbs/?tid=35135 Wed, 21 Aug 2019 06:45:09 UTC Presentation: Arcade Mechanics <p> <table><tr><td> <a href="/bbs/?pid=65201#p"> <img src="/bbs/thumbs/pico8_mb_arcademechanics-0.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=65201#p"> Presentation: Arcade Mechanics</a><br><br> by <a href="/bbs/?uid=10198"> MBoffin</a> <br><br><br> <a href="/bbs/?pid=65201#p"> [Click to Play]</a> </td></tr></table> </p> <p>This was a slide deck I made for a mini workshop I gave on arcade mechanics at a <a href="https://pigsquad.com/summerslowjams">PIGSquad Summer Slow Jams</a> event last night. (Following in the footsteps of <a href="https://www.lexaloffle.com/bbs/?uid=26479"> @nextlevelbanana</a>, I used a Nintendo controller as a clicker. 😄) Feel free to use the code for your own presentations.</p> https://www.lexaloffle.com/bbs/?tid=34518 https://www.lexaloffle.com/bbs/?tid=34518 Fri, 14 Jun 2019 19:01:45 UTC Simple Game <p> <table><tr><td> <a href="/bbs/?pid=64691#p"> <img src="/bbs/thumbs/pico8_mb_simplegame-0.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=64691#p"> Simple Game</a><br><br> by <a href="/bbs/?uid=10198"> MBoffin</a> <br><br><br> <a href="/bbs/?pid=64691#p"> [Click to Play]</a> </td></tr></table> </p> <p>This is a <strong>VERY</strong> simple game for very young kids to edit. This was literally coded in an hour, so it's not optimized or super clean code or anything like that. It just works and is easy for kids to edit. :) It's intended for kids to edit the sprites, sounds, and game variables.</p> <p>Enjoy! :)</p> <h1>WHAT TO EDIT</h1> <h2>SPRITES</h2> <img style="" border=0 src="https://www.lexaloffle.com/bbs/files/10198/game.p8_002.png" alt="" /> <p><strong>Player</strong> - Sprite 1 and 2 are the player sprite.</p> <p><strong>Pickups</strong> - There are two rows of pickups. The top row gets only <strong>little_points</strong> if they are picked up. The bottom row gets <strong>big_points</strong> if they are picked up.</p> <p><strong>Baddies</strong> - These are sprites 49 and 50 (bottom-left of sprite tab 0).</p> <p><strong>Stars</strong> - The 4 pixels in sprite 48 (bottom-left) define the star colors.</p> <h2>SOUNDS</h2> <p><strong>Sound 0</strong> - When a top row pickup gets picked up.</p> <p><strong>Sound 1</strong> - When a bottom row pickup gets picked up.</p> <p><strong>Sound 2</strong> - When the player hits a baddie.</p> <h2>VARIABLES</h2> <img style="" border=0 src="https://www.lexaloffle.com/bbs/files/10198/game.p8_003.png" alt="" /> <p><strong>little_points</strong> - Points gotten from picking up a top-row pickup.</p> <p><strong>big_points</strong> - Points gotten from picking up a bottom-row pickup.</p> <p><strong>game_speed</strong> - How fast the overall game should go.</p> <p><strong>player_speed</strong> - How fast the player moves.</p> <p><strong>animation_speed</strong> - How fast the animations change.</p> <p><strong>seconds_between_pickups</strong> - Self-explanatory.</p> <p><strong>seconds_between_baddies</strong> - Self-explanatory.</p> <p><strong>sky_color</strong> - Self-explanatory.</p> <p><strong>number_of_stars</strong> - Self-explanatory.</p> https://www.lexaloffle.com/bbs/?tid=34312 https://www.lexaloffle.com/bbs/?tid=34312 Thu, 23 May 2019 09:08:40 UTC Water Ripples/Displacement <p><a href="https://www.lexaloffle.com/bbs/?uid=1"> @zep</a>, I've been really curious about the water feature in Voxatron. I love how it looks and how it acts. It just looks and feels so satisfying. But I've had just a hell of a time finding good articles that give me any sort of clue on how to recreate it with any sort of decent performance. (Or even to look as good as yours.) There's the <a href="https://web.archive.org/web/20160418004149/http://freespace.virgin.net/hugo.elias/graphics/x_water.htm">classic water ripple algorithm</a> that <em>so many</em> articles refer back to. But running that on 128^2 voxels just kills performance. Any clues as to what direction to look in to do water the way you do it in Voxatron? Is it something that works well because it's done &quot;natively&quot;, so to speak, but wouldn't necessarily work well within the Lua performance constraints of the custom scripting feature?</p> https://www.lexaloffle.com/bbs/?tid=34089 https://www.lexaloffle.com/bbs/?tid=34089 Tue, 30 Apr 2019 05:52:46 UTC Hourglass Stars Tweetcart <p> <table><tr><td> <a href="/bbs/?pid=63598#p"> <img src="/bbs/thumbs/pico8_mb_tweetcart_hourglass-0.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=63598#p"> Hourglass Stars</a><br><br> by <a href="/bbs/?uid=10198"> MBoffin</a> <br><br><br> <a href="/bbs/?pid=63598#p"> [Click to Play]</a> </td></tr></table> </p> <p>A very simple tweetcart, but with the code expanded to make it easier to understand what's happening. Enjoy!</p> https://www.lexaloffle.com/bbs/?tid=33887 https://www.lexaloffle.com/bbs/?tid=33887 Tue, 16 Apr 2019 23:54:06 UTC Color Palettes <p> <table><tr><td> <a href="/bbs/?pid=61375#p"> <img src="/bbs/thumbs/vox_mb_colors-0.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=61375#p"> Color Palettes</a><br><br> by <a href="/bbs/?uid=10198"> MBoffin</a> <br><br><br> <a href="/bbs/?pid=61375#p"> [Click to Play]</a> </td></tr></table> </p> <p>This is a quick little cart to let you see the difference between the editor color palette and the palette available through code. I hope it's useful! :)</p> https://www.lexaloffle.com/bbs/?tid=33095 https://www.lexaloffle.com/bbs/?tid=33095 Thu, 31 Jan 2019 00:18:30 UTC Five Stones From Home <p> <table><tr><td> <a href="/bbs/?pid=61277#p"> <img src="/bbs/thumbs/vox_mb_ggj2019-1.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=61277#p"> Five Stones From Home</a><br><br> by <a href="/bbs/?uid=10198"> MBoffin</a> <br><br><br> <a href="/bbs/?pid=61277#p"> [Click to Play]</a> </td></tr></table> </p> <p>A small exploration game about a little being who has crash landed on a planet and needs to find how to get home. You find some waystones that look promising. If you could only find a way to activate them, maybe they'd help....</p> <p>(Please know that this is game jam code, which means it's <em>horrendous</em>.)</p> <p><em>EDIT:</em> Added the insides of trees so they look cool when they clip off the edge of the screen, and also a label image.</p> https://www.lexaloffle.com/bbs/?tid=33057 https://www.lexaloffle.com/bbs/?tid=33057 Mon, 28 Jan 2019 00:09:05 UTC Editor zoom when pressing the number 6? <p>I don't know if this is a bug or a debug feature? But when pressing the number 6 while in the designer, it zooms in super huge on the mouse. This is <em>really</em> distracting when coding because it'll flash up huge on the screen if you happen to hit a 6 while you type! 😆 Maybe an option to disable that feature while editing code?</p> <img style="" border=0 src="https://www.lexaloffle.com/bbs/files/10198/6-zoom.png" alt="" /> https://www.lexaloffle.com/bbs/?tid=32968 https://www.lexaloffle.com/bbs/?tid=32968 Sun, 20 Jan 2019 20:02:36 UTC Error in the API text file <p>The <a href="https://www.lexaloffle.com/vox_api.txt">vox_api.txt</a> lists the last two optional arguments for <strong>draw_voxmap()</strong> as rotation then color. However, it's color first, then rotation.</p> https://www.lexaloffle.com/bbs/?tid=32728 https://www.lexaloffle.com/bbs/?tid=32728 Thu, 27 Dec 2018 20:17:06 UTC Merry Christmas! <p> <table><tr><td> <a href="/bbs/?pid=60343#p"> <img src="/bbs/thumbs/vox_mb_xmas2018-0.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=60343#p"> Merry Christmas!</a><br><br> by <a href="/bbs/?uid=10198"> MBoffin</a> <br><br><br> <a href="/bbs/?pid=60343#p"> [Click to Play]</a> </td></tr></table> </p> <p>Merry Christmas, everyone!</p> https://www.lexaloffle.com/bbs/?tid=32704 https://www.lexaloffle.com/bbs/?tid=32704 Tue, 25 Dec 2018 09:11:25 UTC Questions about config.txt <p><a href="https://www.lexaloffle.com/bbs/?uid=1"> @zep</a>, I had a few questions about the config.txt settings. I tried searching through old posts, but couldn't find anything, so I thought I'd ask here. Most of the things I could figure out just from knowing what they do in PICO-8. But a few were still mysteries.</p> <ul> <li>ff_version</li> <li>dummy</li> <li>super_sample</li> <li>voxel_style</li> <li>render_mode</li> <li>exhibition_mode</li> </ul> https://www.lexaloffle.com/bbs/?tid=32602 https://www.lexaloffle.com/bbs/?tid=32602 Tue, 18 Dec 2018 09:32:10 UTC Zero-Hour Game Jam Remake <p> <table><tr><td> <a href="/bbs/?pid=59986#p"> <img src="/bbs/thumbs/vox_mb_ohgj2018-4.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=59986#p"> Zero-Hour Game Jam Remake</a><br><br> by <a href="/bbs/?uid=10198"> MBoffin</a> <br><br><br> <a href="/bbs/?pid=59986#p"> [Click to Play]</a> </td></tr></table> </p> <p>This is a remake of a PICO-8 game I made for the 2018 Zero-Hour Game Jam! Find all the orbs before the time runs out!</p> https://www.lexaloffle.com/bbs/?tid=32563 https://www.lexaloffle.com/bbs/?tid=32563 Fri, 14 Dec 2018 00:43:28 UTC Camera Follow Bug <p> <table><tr><td> <a href="/bbs/?pid=59971#p"> <img src="/bbs/thumbs/vox_bifajitedu-1.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=59971#p"> Camera Follow Bug</a><br><br> by <a href="/bbs/?uid=10198"> MBoffin</a> <br><br><br> <a href="/bbs/?pid=59971#p"> [Click to Play]</a> </td></tr></table> </p> <p>Trying to figure out why the player looks so jittery. I'm having the camera follow the player, and the ground below looks fine as the player moves, but the player itself is super jittery. In the embedded player here it looks fine, but while running in the designer, it's super jittery.</p> https://www.lexaloffle.com/bbs/?tid=32556 https://www.lexaloffle.com/bbs/?tid=32556 Thu, 13 Dec 2018 20:20:19 UTC Voxatron Tweetcart <p> <table><tr><td> <a href="/bbs/?pid=59949#p"> <img src="/bbs/thumbs/vox_mb_tweetcart01-0.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=59949#p"> mb_tweetcart01</a><br><br> by <a href="/bbs/?uid=10198"> MBoffin</a> <br><br><br> <a href="/bbs/?pid=59949#p"> [Click to Play]</a> </td></tr></table> </p> <p>My first Voxatron tweetcart! Enjoy!</p> https://www.lexaloffle.com/bbs/?tid=32545 https://www.lexaloffle.com/bbs/?tid=32545 Thu, 13 Dec 2018 02:19:00 UTC Happy Challah Days! <p> <table><tr><td> <a href="/bbs/?pid=59569#p"> <img src="/bbs/thumbs/pico8_advent_challah-11.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=59569#p"> Happy Challah Days!</a><br><br> by <a href="/bbs/?uid=10198"> MBoffin</a> <br><br><br> <a href="/bbs/?pid=59569#p"> [Click to Play]</a> </td></tr></table> </p> <h1>HAPPY CHALLAH DAYS!</h1> <p>Enjoy this light, multi-day adventure game about making challah bread for Hanukkah! Each piece of the game will unlock as Hanukkah unfolds in the real world, so come back during the next week to continue the adventure!</p> <p><strong>LEFT/RIGHT/UP/DOWN</strong> to move around (walk into things to interact)<br /> <strong>X</strong> to skip or close dialog boxes<br /> <strong>Z</strong> to see inventory</p> <h2>Credits:</h2> <p>Design/Art/Code: MBoffin<br /> Music: Gruber<br /> Intro Graphic: 2DArray</p> <h2>About Pico-8 Advent Calender:</h2> <p>During December, each day will be filled with new and exciting PICO-8 games! We have gathered 25 great developers from the PICO-8 community and we have worked hard to make some new games. Each day leading up to Christmas, there will be a new surprise for you!</p> <p>Find out more at:<br /> <a href="https://pico8-advent.tumblr.com/">https://pico8-advent.tumblr.com/</a></p> <p>And check out the Pico-8 Advent Calendar each day for a new surprise:<br /> <a href="https://www.lexaloffle.com/bbs/?tid=32388">https://www.lexaloffle.com/bbs/?tid=32388</a></p> https://www.lexaloffle.com/bbs/?tid=32417 https://www.lexaloffle.com/bbs/?tid=32417 Sun, 02 Dec 2018 07:56:05 UTC Happy Challah Days <p> <table><tr><td> <a href="/bbs/?pid=59385#p"> <img src="/bbs/thumbs/pico59384.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=59385#p"> Test Post, Please Ignore</a><br><br> by <a href="/bbs/?uid=10198"> MBoffin</a> <br><br><br> <a href="/bbs/?pid=59385#p"> [Click to Play]</a> </td></tr></table> </p> https://www.lexaloffle.com/bbs/?tid=32334 https://www.lexaloffle.com/bbs/?tid=32334 Tue, 27 Nov 2018 05:16:00 UTC Pop Shot! <p> <table><tr><td> <a href="/bbs/?pid=53901#p"> <img src="/bbs/thumbs/pico53900.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=53901#p"> Pop Shot!</a><br><br> by <a href="/bbs/?uid=10198"> MBoffin</a> <br><br><br> <a href="/bbs/?pid=53901#p"> [Click to Play]</a> </td></tr></table> <br /> This was a game jam made for the <a href="https://itch.io/jam/ssjminigames">PIGSquad Summer Slow Jams</a>. Unfortunately, I started at 1:00am the night before the end of the jam. I worked until 3am until I couldn't do math anymore, then picked it up the next morning and put in another 3 hours to get it done before the end of the jam. So... uh... excuse the code. It's game jam code. :)</p> <p>Pop Shot! is a 4-player arena brawler where you eliminate your opponents by charging up shots and using them to knock your opponents into the spikes. You have 3 lives, and if you lose them all, you turn into a floating skull. While you're a skull, though, you can mash the X button to float just a <em>teensy</em> bit faster. If your skull hits the planet, you get an extra life and respawn! (The creative theme for the jam was &quot;The World Is Alive&quot;, so in this game, &quot;The World Is A Life&quot;.) &#128518;</p> <img style="" border=0 src="https://i.imgur.com/MeiLDpN.gif" alt="" /> <img style="" border=0 src="https://i.imgur.com/L4HwmB9.gif" alt="" /> <p>I am horrendous at music, so all credit for the music goes to <a href="https://www.lexaloffle.com/bbs/?uid=11292"> @Gruber</a> who makes fantastic tunes for all of us to use in our games. &#128522;</p> https://www.lexaloffle.com/bbs/?tid=31470 https://www.lexaloffle.com/bbs/?tid=31470 Sun, 01 Jul 2018 17:46:13 UTC So-Gnar <p> <table><tr><td> <a href="/bbs/?pid=48656#p"> <img src="/bbs/thumbs/pico56599.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=48656#p"> So-Gnar 1.2</a><br><br> by <a href="/bbs/?uid=10198"> MBoffin</a> <br><br><br> <a href="/bbs/?pid=48656#p"> [Click to Play]</a> </td></tr></table> </p> <p>You need to find your opponents and defeat them, but your energy is always draining and you only have 5 shots. There are charging pads all around you where you can recharge your energy and shots, BUT! If you recharge on a pad, it TRANSMITS a pulse throughout the level, giving away your position. You can use the pulses from other players to find them and defeat them. If you lose all your charge, you'll lose one heart. Lose all your hearts and you die. You can also fire at other players to make them lose hearts, so watch out for stray shots. The fewer players there are left, the faster your energy drains, so defeat your foes quickly!</p> <p>This is a 4-player split-screen there-can-be-only-one style game. It requires 4 controllers to play.</p> <p>This game was created in 48 hours for <a href="http://globalgamejam.org/2018/jam-sites/art-institute-portland-portland-indie-game-squad">Global Game Jam 2018 with PIGSquad</a>.</p> <p><strong>UPDATE:</strong> Lots of tweaks and changes! </p> <ul> <li>Added splats.</li> <li>Added diagonal player movement and firing. </li> <li>Limited shots to 5 shots per charge. </li> <li>Added the standard &quot;flashing and invulnerable while hurt&quot; mechanic. </li> <li>Made a much better map. </li> <li>Slowed down energy drain. *</li> <li>Added &quot;dashing&quot; which lets you move faster, but drain energy faster too. </li> <li>Added a help menu.</li> </ul> <p>The whole things plays much better now and is lots of fun if you can get 4 players together. At some point I'm going to add bot code so you can play with less than 4 players. But that's farther down the road.</p> <p><strong>UPDATE #2:</strong> A few tweaks and changes for the XOXO Arcade!</p> <ul> <li>More variation in the wall tiles</li> <li>Cleaner reset when the game is over</li> <li>Balance tweaks to energy drain rates</li> <li>Move help menu to the intro screen</li> <li>Minor map tweaks to facilitate finding each other easier</li> </ul> https://www.lexaloffle.com/bbs/?tid=30680 https://www.lexaloffle.com/bbs/?tid=30680 Sun, 28 Jan 2018 21:37:53 UTC Single Tile Animations <p> <table><tr><td> <a href="/bbs/?pid=48232#p"> <img src="/bbs/thumbs/pico48231.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=48232#p"> Single Tile Animations</a><br><br> by <a href="/bbs/?uid=10198"> MBoffin</a> <br><br><br> <a href="/bbs/?pid=48232#p"> [Click to Play]</a> </td></tr></table> <br /> This is an alternate method of doing tile animations. This method uses only a single tile per animation, making it easier to pack in a lot of animated tiles into a single tile. It's not the <strong>best</strong> way of doing this. It's just <strong>a</strong> way of doing this. :)</p> <p>Basically it just cycles through the colors in the tile according to the order you want them to appear, and changes them to a new color, also set by you in the code. The upshot is you can fit entire simple animations into a single tile.</p> <p>(BTW, I'm not claiming credit for this method... it's one of those things that I'm <strong>sure</strong> a thousand devs before me have figured out before, and probably 10x more efficient ways than I cranked out tonight.) :D</p> https://www.lexaloffle.com/bbs/?tid=30608 https://www.lexaloffle.com/bbs/?tid=30608 Mon, 15 Jan 2018 23:52:37 UTC