Snail_God [Lexaloffle Blog Feed]https://www.lexaloffle.com/bbs/?uid=18945 Rat Maze 3D Screensaver v0.4 <p> <table><tr><td> <a href="/bbs/?pid=145537#p"> <img src="/bbs/thumbs/pico64_rat_maze-3.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=145537#p"> Rat Maze 3D Screensaver v0.4</a><br><br> by <a href="/bbs/?uid=18945"> Snail_God</a> <br><br><br> <a href="/bbs/?pid=145537#p"> [Click to Play]</a> </td></tr></table> </p> <p>Okay, somebody has to do it. I'm going to try making a version of the <a href="https://en.wikipedia.org/wiki/3D_Maze">3D Maze</a>. No rats yet. Sorry.</p> <p>I'm going to start by working through <a href="https://permadi.com/1996/05/ray-casting-tutorial-table-of-contents/">Permadi's 1996 Ray Casting Tutorial</a>. It's really cool to be implementing such an old graphics tutorial. Anyone know of any other gems out there?</p> <p>The interactive debugging I've thrown together is kind of fun, so I thought I'd share. Up/down keys to go forward/backward, left/right keys to turn, z/x keys to strafe. Press Enter to toggle map view and raycast render.</p> <p>Changelog</p> <ul> <li> <p>v0.4 Implemented textured walls. It is very slow, but I haven't done any optimization yet so there's still hope. Changed movement to feel more natural in first-person mode.</p> <p>Currently drawing pixel by pixel because I need to learn how to draw only a vertical slice of a sprite (userdata). Does anyone know how? The userdata docs are a little over my head.</p> </li> <li> <p>v0.3.1 Fixed an off-by-one bug that was causing some walls to be studded with spikes. What a relief.</p> </li> <li> <p>v0.3 Calculate which wall is closer (vertical or horizontal). Add raycast view (press Enter to switch to it). I'm getting a weird spike artifact in the render. Colored vertical and horizontal walls differently, revealing that the incorrect wall is identified as &quot;closer&quot; during the spikes. I don't know what's causing that to happen. Finished Part 9 (drawing walls) of Permadi tutorial.</p> </li> <li> <p>v0.2 First public version. Finished Part 7 (finding wall intersections) of Permadi tutorial.</p> <p>Question for those with more PICO8 experience than me: Is it worth using bit shift operations instead of multiplication/division by a power of two? I'm keeping it as-is for now for readability reasons, but after the raycasting logic is finished, it might be fun to see if it speeds it up.</p> </li> </ul> https://www.lexaloffle.com/bbs/?tid=141402 https://www.lexaloffle.com/bbs/?tid=141402 Wed, 03 Apr 2024 03:28:46 UTC Frisbee in the Garden <p> <table><tr><td> <a href="/bbs/?pid=145081#p"> <img src="/bbs/thumbs/pico64_frisbee_in_the_garden-0.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=145081#p"> frisbee_in_the_garden</a><br><br> by <a href="/bbs/?uid=18945"> Snail_God</a> <br><br><br> <a href="/bbs/?pid=145081#p"> [Click to Play]</a> </td></tr></table> </p> <p>I wanted to learn how to make a wallpaper that would adapt to the desktop theme. I wasn't sure what to make, but my little quilt was right next to me on the couch, and I thought it would make a good subject for a wallpaper :)</p> <p>It was a challenge to decide which shades to assign to which colors, but it's so important in quilting to think about the level of contrast in your design, so I knew I could get it to work out.</p> <p>I would love to see someone turn this into a quilt randomizer. Now that would be a cool wallpaper!</p> <img style="margin-bottom:16px" border=0 src="/media/18945/frisbee-irl.png" alt="" /> <p>Here is the real quilt. My wife and I designed and pieced it together, and then I hand-quilted it. It's about 2' by 2'.</p> https://www.lexaloffle.com/bbs/?tid=141265 https://www.lexaloffle.com/bbs/?tid=141265 Sat, 30 Mar 2024 06:04:36 UTC Conways Game of Music (WIP) <p> <table><tr><td> <a href="/bbs/?pid=53259#p"> <img src="/bbs/thumbs/pico53464.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=53259#p"> Conways Game of Music (WIP)</a><br><br> by <a href="/bbs/?uid=18945"> Snail_God</a> <br><br><br> <a href="/bbs/?pid=53259#p"> [Click to Play]</a> </td></tr></table> </p> <p> <table><tr><td> <a href="/bbs/?pid=53259#p"> <img src="/bbs/thumbs/pico53307.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=53259#p"> Conways Game of Music (WIP)</a><br><br> by <a href="/bbs/?uid=18945"> Snail_God</a> <br><br><br> <a href="/bbs/?pid=53259#p"> [Click to Play]</a> </td></tr></table> </p> <p> <table><tr><td> <a href="/bbs/?pid=53259#p"> <img src="/bbs/thumbs/pico53301.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=53259#p"> Conways Game of Music (WIP)</a><br><br> by <a href="/bbs/?uid=18945"> Snail_God</a> <br><br><br> <a href="/bbs/?pid=53259#p"> [Click to Play]</a> </td></tr></table> </p> <p> <table><tr><td> <a href="/bbs/?pid=53259#p"> <img src="/bbs/thumbs/pico53275.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=53259#p"> Conways Game of Music (WIP)</a><br><br> by <a href="/bbs/?uid=18945"> Snail_God</a> <br><br><br> <a href="/bbs/?pid=53259#p"> [Click to Play]</a> </td></tr></table> </p> <p> <table><tr><td> <a href="/bbs/?pid=53259#p"> <img src="/bbs/thumbs/pico53258.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=53259#p"> Conways Game of Music (WIP)</a><br><br> by <a href="/bbs/?uid=18945"> Snail_God</a> <br><br><br> <a href="/bbs/?pid=53259#p"> [Click to Play]</a> </td></tr></table> </p> <p>I wanted to play with procedurally generated music, so here's a little game where you can listen to the little cells in Conway's Game of Life!</p> <p>When music is paused, Z to toggle the aliveness of the cell at the cursor.<br /> X to play a song of the current board and then load the new one according to Conway's Game of Life rules. You can now press X again to stop the music.<br /> You can't spawn cells live during a song.<br /> When the music is not playing, use arrows to move around a cursor. If you go over an alive cell, it will play its note.</p> <p>I made use of <a href="https://www.lexaloffle.com/bbs/?tid=2341">eruonna's music data structure example code.</a>, as well as stat(20) and stat(24) to draw the yellow box. I didn't even have to touch the SFX menu, although I did select which channels play on which patterns by hand.</p> <p>Pitch is controlled by how old a cell is. It's snapped to c-minor because that seems to be part of Pico-8's ~Aesthetic~.<br /> Timing is controlled by position (as seen with the yellow box).</p> <p>==CHANGELOG==<br /> ==Jun 10, 2018==<br /> Cells are now color-coded by letter-note. In the future, you will be able to switch between this and the previous instrument color-coding:</p> <p>C: 8<br /> D: 9<br /> E: 10<br /> F: 11<br /> G: 12<br /> A: 13<br /> B: 14</p> <p>Sharps/flats are a checkered blend of the letter-notes they are located between.</p> <p>There are now multiple boards. Had to rework most of my functions to support this, but now it's pretty easy to change the number of boards. The music is a little messed up, but in the future, the big board will control two sfx channels, and each little board will control its own sfx channel. Hopefully this will lead to more interesting repetition patterns in the music.</p> <p>==Jun 5, 2018 Part 2 (Actually fun to mess around with now!)==<br /> I added functionality to the cursor! Now you can press Z to kill or spawn a new cell at the cursor.<br /> Randomly spawning cells is gone until I can get a better interface. Reset cart to get new random cells.<br /> Modified the default effects, and added a feature to allow per-instrument volume adjustments. I think it sounds much more musical now!</p> <p>==Jun 5, 2018==<br /> Now it works! No more music bugs... I hope. This one was very embarrassing: I tried to refer to &quot;sfxn&quot; as &quot;sfxm&quot;. I really need to go into a non-pico8 editor when doing serious debugging. I noticed right away after doing that.<br /> Added cursor to preview the singing voices of each individual cell.</p> <p>==Jun 4, 2018==<br /> Aha! I added a function that allows you to easily print a character onto a cell. Hold &lt;- to see the cells in deadlist, and -&gt; to see cells in alivelist. It turns out that I was adding the same cell to alivelist multiple times (when pressing X) but when they died, only removing them once. Fixed now, so I think no more ghosts will be singing!</p> <p>I wonder if it would be cool to have four small boards going at once, at different speeds. That way you could have repetition: maybe one instrument per board.</p> <p>==Jun 3, 2018==<br /> I can't seem to squash some big bugs. Sometimes after running for a while, music will play where things look dead. Ghosts? Maybe it has to do with how inexperienced I am with Lua's tables.</p> <p>If I continute working on this, I'd like to add a simple editor so you can find out what a gilder sounds like.<br /> I'd also like a ~pitch view mode~ where instead of color-coded instruments, it color-codes by the note that will play.</p> https://www.lexaloffle.com/bbs/?tid=31372 https://www.lexaloffle.com/bbs/?tid=31372 Mon, 04 Jun 2018 01:37:30 UTC Tile Flip <p> <table><tr><td> <a href="/bbs/?pid=53061#p"> <img src="/bbs/thumbs/pico53060.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=53061#p"> Tile Flip 1.0</a><br><br> by <a href="/bbs/?uid=18945"> Snail_God</a> <br><br><br> <a href="/bbs/?pid=53061#p"> [Click to Play]</a> </td></tr></table> </p> <p>Introducing my first actual game on pico-8: Tile Flip! (v1.0)</p> <p>Tile Flip is a puzzle game where your goal is to flip all tiles to the same color (it doesn't matter which color). You control which tile is selected with the arrow keys and press z to flip the tile, but all the 4-directionally adjacent tiles are also flipped.</p> <p>Tile Flip starts out easy. On Level 1, only a single move is required to win. After winning, press z again to move onto the next level. After that, it gets harder very quickly. I can only get to Level 4 or so, but then again I'm not very good at puzzles.</p> <p>Tile Flip's great grandparent is <a href="https://en.wikipedia.org/wiki/Lights_Out_(game)">Lights Out,</a> but my exposure to this kind of puzzle was from the <a href="http://runescape.wikia.com/wiki/Dungeoneering/Puzzles#Flip_tiles">minigame in Runescape</a>.</p> <p>All generated puzzles should be solvable. If you're a cheater, you can use <a href="http://www.global-rs.com/static/lights_out_solver/solver.html">this solver</a>.</p> <p>This is my first properly polished game on pico-8, and my first attempt at composing video game music! I designed the graphics myself as well and I'm proud of the coherent asethetic and bold colors. I enjoy how pico-8 encourages me to stretch my artistic abilities. I have many years of coding under my belt, but it's hard to make nice, polished games by yourself without those art skills!</p> <p>If I don't abandon this project, the next version will include a menu where you can view statistics like your current level, time playing, and moves taken. You'll also be able to retry a level (or regenerate it-- maybe this uses up lives?)</p> <p>Special thanks to my girlfriend for helping me figure out how to highlight selected tiles without it looking horrible.</p> https://www.lexaloffle.com/bbs/?tid=31341 https://www.lexaloffle.com/bbs/?tid=31341 Sun, 27 May 2018 18:39:29 UTC Robot Waltz <p> <table><tr><td> <a href="/bbs/?pid=34394#p"> <img src="/bbs/thumbs/pico34393.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=34394#p"> Robot Waltz 1</a><br><br> by <a href="/bbs/?uid=18945"> Snail_God</a> <br><br><br> <a href="/bbs/?pid=34394#p"> [Click to Play]</a> </td></tr></table> </p> <p>My Hello World project!</p> <p>Two points bounce about randomly on the screen, and colorful lines are drawn between them. Whenever one of the points bounces off the wall, one of four sounds will play. Each time you play, a different pattern will get drawn.</p> <p>So far, there is no interactivity. Maybe in version 2...</p> https://www.lexaloffle.com/bbs/?tid=28343 https://www.lexaloffle.com/bbs/?tid=28343 Wed, 28 Dec 2016 19:22:42 UTC