Show HN: Driftmania – an open source PICO-8 racing game

I've been spending a lot of my spare time over the last year creating this little racing game. It's built in PICO-8, which is a really fun “fantasy retro console” that's been mentioned on HN several times. The console has strict limits and I wanted to see how far I could push them

The source code for the game is over here: https://github.com/maxbize/PICO-8/tree/master/Driftmania. It's a bit of a mess, but I'm happy to answer any questions on it or development of the game. Cheers!

EDIT: For those not familiar with PICO-8, there's only a few inputs: arrow keys, Z/C/N, and X/V/M

  • This device is perfect for PICO-8 if anybody wants the handheld formfactor

    https://powkiddy.com/products/pre-sale-powkiddy-rgb30-rk3566...

    Non affiliated with the company, I get nothing from saying this, it's just a decent device all around. The 1:1 aspect ratio on the screen really does PICO-8 games justice, along with MAME and other popular platforms. The greatest thing is these devices are super cheap and easy to come by if you're patient.

    Here's a video review of it by a youtuber whose opinion I've come to respect https://www.youtube.com/watch?v=LIMepWAzUuw

  • Whoa dude, this is really cool! Nice work! You should definitely include this on your resume/CV because if I were reviewing your resume and saw this, I'd be very interested :-)

    For those not familiar with PICO-8:

    > PICO-8 is a virtual machine and game engine created by Lexaloffle Games. It is a fantasy video game console[1] that mimics the limited graphical and sound capabilities of 8-bit systems of the 1980s to encourage creativity and ingenuity in producing games without being overwhelmed with the many possibilities of modern tools and machines."[1]

    [1] https://en.wikipedia.org/wiki/PICO-8

  • I started learning python about 6 months ago and this game is absolutely the most perfect codebase/project i've seen to help me "level-up" my coding game within this particular language, plus the game is an absolute gem so thank you from a 60yo out-of-work developer.

    I have been looking for some sort of project to help pass the days and scratch my just build something dummy!-itch that had developed now that no one will hire me and I can work on anything that floats my boat.

    This looks just perfect as far as 1] how cool the final output is 2] how complex the code is and 3] potential access to the original dev (well, we will see won't we? lol).

    I already have a couple of ideas for some PICO-8 level games so I'm really excited about getting started...thank you very much for posting this!

  • Nice. Reminds me somewhat of Super Off Road, which was an arcade game I loved as a kid: https://en.wikipedia.org/wiki/Super_Off_Road

  • Just played it for 10 minutes! Great game. One remark: to start the race, you need to select "restart level" even if you just started the game. I would suggest starting the race by simply pressing enter.

  • Nice work, gives me very Micro Machines vibes for the NES. The only thing I don't like about PICO-8 is that its completely closed source. An open source alternative that seems very promising is Pyxel. It has similar retro / pixel art limitations, a built-in sprite editor, music tracker, etc.

    https://github.com/kitao/pyxel

  • Aside, I just realized Vimium doesn't get disabled inside iframes on pages where it's disabled, nor can you disable the iframe domain from the parent page since the iframe regex won't match the parent url. I had to disable the whole plugin for "x" to work in the iframe. Seems like an oversight on Vimium's part.

    As for the game, it's satisfying to ratchet down to the 39 second threshold for the gold medal by figuring our drifting. I realize I was overdrifting and easily beat 39 seconds once I stopped drifting much sooner along the turn.

  • What would be “minimal viable vehicle physics”?

    I’ve been prototyping an f-zero type game and so far have:

    - pressing forward increases thrust

    - thrust makes vehicle accelerate forward

    - friction is higher for the component of velocity perpendicular to tires

    - vehicle turns faster when it is moving faster (I don’t actually simulate tire direction)

    - as a hack to make it feel a bit like drifting, make the vehicle visually turn more than it is actually turning

    Any simple thing I should add?

  • Interesting meta question:

    Do others expect the car be lined up to go right?

    Is this a cultural expectation? I come from a LtR writing culture so I was wondering if others were surprised at the car going left at the start.

  • Got a Miyoo mini for my kid and I played a bit on it and have to say I fell in love with pico-8 games. They’re simple games but the playability is off the charts. I think I’ll join the club and make some myself.

    Will definitely check this out..

  • Really enjoyed this for my ten minutes. A note that I found it a bit confusing that 'enter' doesn't select, X does. But the core game feels really good!

  • What was your workflow? Last time I played around with PICO-8 I found the built-in editor to be inadequate. Using an external editor was also annoying for reasons I don't quite remember, but I remember having to close and re-open PICO-8 all the time. Not exactly a the tight, seamless iteration loop I was hoping for.

  • Reminds me of micromachines. I'm not used to PICO games, but I'd expected enter to mean activate instead of bring menu, like "start" would in a console. That menu confused me a bit because it said "continue" as if I were already playing the game.

  • I wish there was an iPhone app for pico 8, the controls in the browser are terrible.

  • I recently picked up PICO-8 after about a decade of bouncing around different game engines. There’s something so satisfyingly simplistic about the SDK coming from Unity and Godot. Highly recommended!

  • undefined

  • This is a great game, one question: what does ghost mode do?

  • I love Pico8. The idea of starting with a small set of tools and building around those limitations I think leads to better game design and development.

  • It's pretty fun! I had problems trying to drift consistently. I wonder if it would help to have a curved accel / decel like gear shifting.

  • I prefer TIC-80 to PICO-8 for a number of reasons, but this seems okay. I have a bit of a distaste for a lot of popular PICO-8 games which often boil down to "try out my amazing game feel" but end up being weirdly disorientating and difficult to tame. I prefer puzzle games or something slower, or more basic.

  • I was excited by the appearance and sound but found it too hard to control to enjoy. Also took me a couple minutes to get started because I didn't know I had to press 'x' (and 'x' closes the tab for me with Vimium extension, even though I disabled all Vimium keys on that page).

  • Nice work! It captures the same fast, small-track feel of RC Pro-Am from back in the days of the NES.

  • Fun little game. Brought back many memories of too many decades ago.

  • This rules, thanks for releasing it and open sourcing it!

  • Really cool! I made some pico8 games with my son, which were fun but nowhere near as good as this. Nice work.

  • Is there a clip of gameplay somewhere?

  • You need a README, with screenshots.

  • Very nice Trackmania demake!

  • undefined

  • nice

  • [flagged]