dglaude [Lexaloffle Blog Feed]https://www.lexaloffle.com/bbs/?uid=23488 Hexamaze demo 01 <p> <table><tr><td> <a href="/bbs/?pid=40474#p"> <img src="/bbs/thumbs/pico40674.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=40474#p"> Hexamaze demo 02</a><br><br> by <a href="/bbs/?uid=23488"> dglaude</a> <br><br><br> <a href="/bbs/?pid=40474#p"> [Click to Play]</a> </td></tr></table> </p> <p>Drawing is now optimised in two ways:<br /> 1) Center of hexagone are pre-computed once, drawing use that.<br /> 2) No wall is ever redraw a second time</p> <p>Comments and suggestions are welcome.</p> <p> <table><tr><td> <a href="/bbs/?pid=40474#p"> <img src="/bbs/thumbs/pico40471.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=40474#p"> Hexamaze demo 01</a><br><br> by <a href="/bbs/?uid=23488"> dglaude</a> <br><br><br> <a href="/bbs/?pid=40474#p"> [Click to Play]</a> </td></tr></table> </p> <p>This is a random maze generator, but the maze have hexagone &quot;cell&quot;.<br /> There is no game, no goal, it is just a demo.<br /> To make it a bit more interesting, I provide an interface to modify the size and &quot;shape&quot; of the grid. By shape I mean non perfect hexagone that are taller in one or two directions.</p> <p>Everything is draw with line and no sprite are used.<br /> There is a lot of math to find the best scale and compute what lines to draw.</p> <p>It is also unperfect because of the rounding, maybe I should work out to only work with integer to avoid the rounding side effect.</p> <p>Once optimised I will need to see if it would be workable to draw the map in 30 fps to use that in game.</p> <p>Please test and give me your comment.<br /> Or better, also check the code and give me your comment.</p> https://www.lexaloffle.com/bbs/?tid=29305 https://www.lexaloffle.com/bbs/?tid=29305 Thu, 11 May 2017 17:04:40 UTC Maze Maker <p> <table><tr><td> <a href="/bbs/?pid=38043#p"> <img src="/bbs/thumbs/pico38056.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=38043#p"> Maze Maker 0.1.1</a><br><br> by <a href="/bbs/?uid=23488"> dglaude</a> <br><br><br> <a href="/bbs/?pid=38043#p"> [Click to Play]</a> </td></tr></table> </p> <p>This is my first program for the Pico-8.<br /> It is also my first piece of LUA code.</p> <p>So far it is not really a game as there is no goal, no score, no nothing.<br /> If you want to play, you can set your goal to reach the 4 corners of the maze (you start from the center).<br /> Once you succeed, relaunch the game for another maze.</p> <p>It is mostly a programming experiment in maze/labyrinth generation based on the book:<br /> &quot;Mazes for Programmers / Code Your Own Twisty Little Passages by Jamis Buck.&quot;</p> <p>I did not reuse the code or data structure from the book as it is all in Ruby.<br /> Only the algorithme description were reused, but still an interesting entry level programming book.</p> <p>The game program does the following:</p> <ul> <li>Create an full of wall 32*32 maze</li> <li>Randomly carve a perfect maze without bias with the Aldous Broder algorithm (that is without bias but slow)</li> <li>Display the full maze on screen using my sprite based display function</li> <li>Wait for the C or X key</li> <li>Display a map based maze with a player in the center</li> <li>Let you travel the maze with the arrow key, scrolling as necessary the map keeping you in the center when possible</li> </ul> <p>The code is more or less documented and the size of the maze can be modified in the code.</p> <p>The maze carving algorithm can be switched to the binary tree algorithm.</p> <p>I would love to have feedback on this to know in witch direction I should go for further evolution of this WIP</p> <p>David Glaude</p> <p>PS: This code was initially completely written on a Pocket C.H.I.P. (sometime with the help of a BT keyboard).</p> <p>CHANGE LOG:<br /> v01 = Initial release without cart image.<br /> v0.1.1 = Updated with a cart image, no known code change.</p> https://www.lexaloffle.com/bbs/?tid=28933 https://www.lexaloffle.com/bbs/?tid=28933 Sat, 04 Mar 2017 16:26:00 UTC 3 Pico-8 copies and no licence? <p>Dear all,</p> <p>I have:</p> <ul> <li>a Pocket C.H.I.P. that came with Pico8.</li> <li>a C.H.I.P. Console kit that came with Pico8.</li> <li>a copy of Pico8 for Raspberry Pi that came with a #CodeTogether! action.</li> </ul> <p>So all in all, I have 3 legal copies of Pico8, but it is unclear if I have a licence.<br /> And if I have a licence, how can I claim it to download a Mac (or PC) version?</p> <p>If I don't have a licence or those are system specific licence, then, am I suppose to acquire yet another one to be able to download the Mac/PC version?</p> <p>Regards</p> https://www.lexaloffle.com/bbs/?tid=28932 https://www.lexaloffle.com/bbs/?tid=28932 Sat, 04 Mar 2017 15:39:13 UTC