johanp [Lexaloffle Blog Feed] 3D Terrain <p> <table><tr><td> <a href="/bbs/?pid=67813#p"> <img src="/bbs/thumbs/pico8_terrain3d-0.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=67813#p"> terrain3d</a><br><br> by <a href="/bbs/?uid=15227"> johanp</a> <br><br><br> <a href="/bbs/?pid=67813#p"> [Click to Play]</a> </td></tr></table> </p> <p>I recently made a little 3D thing and after it took off <a href="">on twitter</a> I was asked to write up how it was done.</p> <p>Please note though, that this was basically my first 3d-thing, so I'm likely not using all the right words. :) I started by jamming around with Zep's <a href="">3d dot party</a> template and ended up with the above.</p> <p>Anyway, as most things - it is not as complicated as it looks. It grew quite organically, but it boils down to these steps.</p> <p>First I made sure I had a working grid.</p> <img style="" border=0 src="" alt="" /> <p>I wanted to have a height map, so I used the sprite sheet to draw a very simple repeatable map.<br /> Every tick I look at a slightly different position in the map, giving a nice scrolling feeling.</p> <img style="" border=0 src="" alt="" /> <p>But it looks a bit dull, so I wanted to add some movement. This was done by applying a cos and sine function over time.</p> <img style="" border=0 src="" alt="" /> <p>As it still was a bit static I also added a slight sway to the camera.</p> <img style="" border=0 src="" alt="" /> <p>Adding it all together ended up with this very living scrolling thing. Since the sine and cos waves doesn't have anything to do with the terrain and run on a different frequency it looks very alive and smooth.</p> <img style="" border=0 src="" alt="" /> <p>I'm pretty sure the whole thing can be done faster and better, but hey - if it looks right on the screen... ;)<br /> Happy to answer any questions if needed.<br /> Cheers,<br /> Johan </p> Tue, 17 Sep 2019 17:38:47 UTC Curse of the Lich King 1.2 <p> <table><tr><td> <a href="/bbs/?pid=64171#p"> <img src="/bbs/thumbs/pico8_cotlk-0.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=64171#p"> Curse of the Lich King 1.2</a><br><br> by <a href="/bbs/?uid=15227"> johanp</a> <br><br><br> <a href="/bbs/?pid=64171#p"> [Click to Play]</a> </td></tr></table> </p> <h1>Curse of the Lich King</h1> <p>The evil Lich King, Raq'zul, has cast a life draining spell on the world - in hopes to become immortal. Many heroes try to find him deep in his lair, but all have fallen to his army of monsters and devious traps. Now it is your turn!</p> <p>Curse of the Lich King gives you tactical grid based combat in a roguelike dungeon crawling setting. A cast of monsters will try to stop you, all in their own way as you descend towards the Lich King's crypt. Loot everything you see to make sure you find food and weapons to help you on your journey. But beware, not everything is what it seems...</p> <p>Are you ready to solve the tricky battles and master the Lich King's lair? Can you save the world? Good luck!</p> <p><strong>CONTROLS</strong><br /> Use the arrow keys to move and navigate menus.<br /> X opens your backpack and select items.<br /> C closes the current window.</p> <p><strong>STRATEGY</strong><br /> As it is not possible to skip turns, make sure you use the environment to get monsters near so you get the first strike! Spend a turn by hitting pots/shelves/doors or other interactive things, and monsters will move while you stand still.</p> <p>There is a lot of stuff to discover, have fun!</p> <p><strong>CREDITS</strong><br /> Design/Art/Code: Johan Peitz (<a href="">@johanpeitz</a>)<br /> Music/Sound: Chris Donnelly (<a href="">@gruber_music</a>)</p> <p>Special thanks to the good people at my discord for testing the game!<br /> Why not join? <a href=""></a></p> Sat, 04 May 2019 05:09:12 UTC Rungeon <p> <table><tr><td> <a href="/bbs/?pid=62815#p"> <img src="/bbs/thumbs/pico8_rungeon-0.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=62815#p"> Rungeon</a><br><br> by <a href="/bbs/?uid=15227"> johanp</a> <br><br><br> <a href="/bbs/?pid=62815#p"> [Click to Play]</a> </td></tr></table> </p> <h1>Rungeon</h1> <p>Here's a standalone version of the dungeon crawler game I made for <a href=""> @elneil</a>'s <a href="">Picozone</a> (#17in1jam).</p> <ul> <li>Your health decreases slowly but steadily so be sure to grab as much gold as you can before you die. </li> <li>Hitting monsters makes you lose a lot of health, but you also get a lot of gold. </li> <li>Make sure to grab the food to increase your health.</li> </ul> <p>It is made of only 421 tokens and sprites.</p> <p>Have fun!</p> Thu, 14 Mar 2019 13:33:24 UTC Dungeon Generator <p> <table><tr><td> <a href="/bbs/?pid=61963#p"> <img src="/bbs/thumbs/pico8_pugafufahi-0.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=61963#p"> pugafufahi</a><br><br> by <a href="/bbs/?uid=15227"> johanp</a> <br><br><br> <a href="/bbs/?pid=61963#p"> [Click to Play]</a> </td></tr></table> <br /> Inspired by an idea from JW of Vlambeer, I built this dungeon generator.</p> <p>In short it adds a bunch of rooms on top of each other and then moves them randomly around until they don't fit any longer. Usually this makes for some very nice and organic looking scenes. This version also has a bunch of other parameters like wider door ways, interconnectedness, and decoration among others. The example in this thread randomises these parameters but in the code it is fairly easy to set them up to whatever. </p> <p>I've tried to document it to a degree, so hopefully it can help out if someone wants to dive into my implementation. It should be said though that I primarily wanted to visualise the process and to look nice, not necessarily be the most efficient data structure. ;)</p> <p>Have fun and let me know if there are any questions!</p> Sat, 16 Feb 2019 23:53:12 UTC Alpine Alpaca <p> <table><tr><td> <a href="/bbs/?pid=59253#p"> <img src="/bbs/thumbs/pico8_aalpaca-2.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=59253#p"> Alpine Alpaca 1.0.1</a><br><br> by <a href="/bbs/?uid=15227"> johanp</a> <br><br><br> <a href="/bbs/?pid=59253#p"> [Click to Play]</a> </td></tr></table> <br /> Created for the Pico-8 Advent Calendar 2018.</p> <h1>Alpine Alpaca</h1> <p>Hit the slopes and score as many gates as you can. Use your cards to steer and build your deck as you go!</p> <h2>Controls</h2> <p>arrow keys - choose card<br /> x/z - use card</p> <p>That's all there is to it really! Every third gate you pass you can add cards to your deck with various effects. Maybe speed up and get more points? Or even dare to use the jump card? Experiment with cards and obstacles to get the most points.</p> <p>Good luck!</p> <p>Feedback is appreciated, let me know in the comments. And post your scores too! :D</p> <h2>Credits</h2> <p>Design/Art/Code: Johan Peitz (<a href="&amp;quot;;quot;">@johanpeitz</a>)<br /> Music/Sound: Chris Donnelly (<a href="&amp;quot;;quot;">@gruber_music</a>)</p> <h3>Special thanks</h3> <p>Intro Graphic: Eli Piilonen (<a href="&amp;quot;;quot;"><a href=""> @2darray</a></a>)<br /> Art tips: Ilija Melentijević (<a href="&amp;quot;;quot;">@iLkKke</a>)</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: <a href=""></a></p> <p>And check out the Pico-8 Advent Calendar each day for a new surprise: <a href=""></a></p> Wed, 21 Nov 2018 03:27:49 UTC Delunky - Endless Descent <p> <table><tr><td> <a href="/bbs/?pid=56554#p"> <img src="/bbs/thumbs/pico8_delunky102-0.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=56554#p"> delunky102</a><br><br> by <a href="/bbs/?uid=15227"> johanp</a> <br><br><br> <a href="/bbs/?pid=56554#p"> [Click to Play]</a> </td></tr></table> <br /> Hi all,<br /> I finally had the time to do some final tweaks and fixes and upload my demake 2018 entry DELUNKY to the bbs!</p> <p>Enter the caves and try to find as much gold as you can before you perish to the dangers of the depth. Use your trusty whip in combination with bombs, ropes, and whatever you scavenge to get as far as you can.</p> <p><strong>Controls:</strong><br /> Arrows - move<br /> Down arrow - pickup item<br /> Up arrow - jump<br /> X - use current item (throw/drop/whip)<br /> Z - switch current item</p> <p><strong>Special thanks:</strong><br /> Derek Yu (@mossmouth) for creating Spelunky<br /> Matt Hughson (@matthughson) for Platformer Starter Kit<br /> Darius Kazemi (@tinysubversions) for great info on map generation<br /> Frederic Souchu (@FSouchu) for pico-8 token optimisation help</p> Wed, 12 Sep 2018 05:51:10 UTC Desert Drift <p>Hey,<br /> I finally managed to tie all the loose ends together in my Outrun-esque racer. There's only one route, but the controls have some nuance which should make for healthy competition.</p> <p>I know very little about 3D and projection and stuff, so most of the tech is from this excellent article:<br /> <a href=""></a></p> <p>Have fun! And what's your best time?</p> <p> <table><tr><td> <a href="/bbs/?pid=55232#p"> <img src="/bbs/thumbs/pico55231.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=55232#p"> Desert Drift</a><br><br> by <a href="/bbs/?uid=15227"> johanp</a> <br><br><br> <a href="/bbs/?pid=55232#p"> [Click to Play]</a> </td></tr></table> </p> Thu, 16 Aug 2018 04:25:33 UTC Bathos <p> <table><tr><td> <a href="/bbs/?pid=44060#p"> <img src="/bbs/thumbs/pico44208.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=44060#p"> Bathos 1.0.1</a><br><br> by <a href="/bbs/?uid=15227"> johanp</a> <br><br><br> <a href="/bbs/?pid=44060#p"> [Click to Play]</a> </td></tr></table> </p> <p> <table><tr><td> <a href="/bbs/?pid=44060#p"> <img src="/bbs/thumbs/pico44059.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=44060#p"> Bathos 1.0.0</a><br><br> by <a href="/bbs/?uid=15227"> johanp</a> <br><br><br> <a href="/bbs/?pid=44060#p"> [Click to Play]</a> </td></tr></table> <br /> Here's a remake of an old project of mine in PICO-8. Was a lot of fun to do!<br /> Thanks to the amazing <a href="">Gruber</a> this version also have great music and sfx!</p> <p>But all in all, <strong>CAN YOU GET OUT</strong>?</p> <p>Share your thoughts!</p> Sun, 10 Sep 2017 15:17:43 UTC