Log In  

Total amateur at this.

KiloWar 1.0
by 2bitchuck

Cart #uah_hween-0 | 2021-10-26 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA

Hey, here's that thing you didn't know you needed - a stupid Halloween reskin of my already stupid game, Unsafe at Home! This quality reskin features Halloween colors and sprites, and a very slow, minor/off key rendition of "Take Me Out to the Ballgame". Why would I do this? Honestly, your guess is as good as mine as to what my brain decides is important at any given time. But 'tis the season, right? Both Halloween and the World Series are happening this weekend, so why the heck not?


Up arrow: move forward around the bases
Down arrow: move backward around the bases
X/Z: hit a homer! (once you've got a bat)

See the original game post for the full rules.

That's it. Now get out there and knock a few punkins over the wall, kid!

P#99172 2021-10-26 18:12

Cart #unsafeathome-2 | 2021-07-10 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA

Unsafe at Home: A 64x64 baseball bullet hell time wasting experience!

In the distant future, Blaseball is the only remaining sport, as foretold by prophecy. One day, two friends run across an ancient document: the official Major League Baseball rulebook. However, it is badly damaged and the two are left to interpret the rules for themselves. Here is what these two friends from the future think baseball used to be.

  • One player, the pitcher, attempts to hit the other player, the hitter, with baseballs. The book clearly says hitter, not hittee, which would make more sense, but these were ancient humans, so . . .
  • The hitter attempts to circle the bases counterclockwise as many times as he can without getting hit. Each time he does this, he scores a run. He must stay in the baseline at all times. He can circle the bases clockwise, but will not score runs in that direction, and in fact must recircle ALL the bases he circled clockwise in the correct direction before he is awarded a run for crossing "home", which is what people called fourth base in those days.
  • When the hitter scores 5 runs without having a bat, he gets a bat. The bat is used to hit home runs (maybe tihs is why he's called "hitter" and not "hittee"? The text is ambiguous). A home run clears all the balls from the field, but is obviously not worth any runs - that would be nonsense.
  • If the hitter chooses NOT to use the bat, he gets an extra run for every run he accumulates after getting the bat until he chooses to use the bat.
  • When the pitcher hits the hitter, that is called an inning (because the ball runs INto the hitter). The baseballs they found with the rulebook are all very old and immediately disintegrate when they run into the hitter. The game ends after 9 innings.
  • The pitcher throws a ball at the hitter once at the start of the game, once for every run the hitter scores, once after a home run, and once when he scores an inning. Every 5 runs the hitter scores, the pitcher starts throwing a little harder.


Score as many runs as you can before the end of the 9th inning. My personal best is 21, I'd love to see how you do!


  • Any key to start the game from the title screen.
  • Up arrow to run counterclockwise, down arrow to run clockwise. You only score runs running the bases in the correct (counterclockwise) direction, but running backwards is key to avoid getting hit sometimes!
  • X or Z to hit a home run when you have the bat!
  • X or Z to restart when the game ends.


I'm responsible for all the code, music arrangement & mediocre pixel art, such as it is. The concept came to me when I was watching an actual baseball game and saw the baserunner get hit during a rundown. It's 64x64 because it's harder and more chaotic that way :).

The music for "Take Me Out to the Ball Game" was composed in 1908 by Albert Von Tilzer, 20 years before he ever saw a baseball game. I think I took a few liberties with some notes here and there, but it's mostly faithful to the original.

P#94691 2021-07-10 22:37

Cart #sevenbucks-1 | 2021-06-01 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA

Seven Bucks and a Dream - a WIP slot machine.

Granny arrives in Vegas with 3 things: $7 in her purse, a dream of hitting it big, and an unhealthy love of the devilish one-armed bandit. Help Granny realize her dream of hitting it big by pulling this lever seven times. No, seriously, that's pretty much it. Once Granny's played 7 rounds, her back starts acting up on account of those real uncomfortable stools mixed with skipping her pain meds so she could enjoy the comp drinks. She's not gonna be able to move, and it'll be up to you at that point to choose "Reset Cart" from the menu or navigate away from this page to play a better game (or, you know, a game at all since, again, this is just you pulling the lever for Granny seven times).

I started this to help me work through some mental blockage - you may have seen other games I'm allegedly working on from my Twitter feed that I'm struggling to get over the hump with. This is me trying to create something super small scale so that I can cross the finish line. Much like Granny, I could use a win!


  • X/Z to pull the lever!
  • Hold up arrow to view the payout table!


  • A better looking machine!
  • Cleaner UI overall
  • Over the top Vegas lights/sounds!
  • Title/End screens
  • The Big Bet (tm), where you randomly get chances to bet it all!
  • More Granny sass!
  • Comp drinks mini-game (this is definitely feature creep and likely to be cut!)
  • Probably other crap I'm forgetting!


P#92860 2021-06-01 00:43

On the scale of important problems, I understand that this probably rates super low, but with the recent web player update, part of the start screen of one of my games has vanished. I'll show you what I mean. Here is the title screen of my cart as seen in the cover image:

And here is what you see in the current web player (0.2.1c.21):

The road that the cars are on is gone. This happens on both mobile and desktop.

I haven't updated the cart for about 3 months, and obviously I don't have this version to test with locally to see if it's something I need to change in my code to account for a feature change. I'm pretty sure that I'm the only one that plays my games, so not a huge deal for me personally, but I wanted to flag it in case this is happening to anyone else with a bigger audience.

P#86757 2021-01-24 22:34

Cart #appabode-0 | 2021-01-01 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA

This is a PICO-8 remake of the Atari 2600 game Haunted House! Can you collect the 3 pieces of treasure and escape the house before losing all your lives or running out of matches? How quickly can you do it?

Use X/Z to light a match - be warned, it won't stay lit for long! You can't see treasure or keys without light, and you can't pick up what you can't see. The monsters in the house will pursue you and will blow out your match if they get close. If they catch you, they'll steal your key and treasure to hide them in the house again.

Use left & right arrows on the title screen to toggle match flicker on and off. If you are a player for whom flashing lights/colors can trigger seizures, you'll want to turn the flicker off.

This game was made for Toy Box Jam 2020! All of the sprite and sound assets were created by others and everyone in the jam uses the same assets to make their games. Info on the jam and credits for all the assets provided to the participants can be found on the jam's itch.io page.

A huge thank you to the following folks for some of the code used in the game that they generously released under Creative Commons licensing!

There are probably bugs, but I've played a fair bit without a crash, so that's something at least :). So let me know in the comments how you did - time, matches & deaths!

P#86002 2021-01-01 01:42 ( Edited 2021-01-01 01:44)

I have a weird thing going on that I'm 100% sure is because of something I'm doing wrong, but I can't quite figure it out. Hoping one of you will have some insight!

When I run my cart, I have a title screen music track that plays using music(X), then fades out using music(-1,500) when the user presses X/Z to start the game. There's an intro cut scene where a different track plays using music(Y) then fades out when that cut scene ends, also using music(-1,500). The user plays, there's no music during the game but there are a variety of SFX that play from time to time. When the user wins or loses, there's another cut scene that plays music(Y) - however, for whatever reason, it only plays one of the 2 SFX in the pattern this time around. When that cut scene is done, the user gets the score screen, which plays either music(X) or music(Z) depending on whether the user wins or loses, but again only one SFX in the pattern plays. The user can then press X or Z to go back to the title screen, and music(X) only plays one of the 3 SFX in that pattern.

I suspect that somewhere, something's not getting cleared from a channel and that's preventing the rest of the SFX from playing, but I am not sure how to figure out what I'm doing wrong or how to fix it. Is there any guidance anyone can offer from this vague description? This is for my Toy Box Jam game, so if I can't figure it out before the deadline, I may end up posting it with "broken" music and maybe somebody can help me figure it out from my specific messy code so I can fix it post-release :).

For TL;DR - the flow that leads to this condition is basically:

music(X) --title screen, plays all 3 SFX, player presses X/Z
music(-1,500) --fades
music(Y) --plays both SFX, fade starts when scene ends
music(-1,500) --fades

gameplay with various SFX but no music playing until lose condition

music(Y) --plays only leftmost SFX in pattern, fade starts when scene ends
music(-1,500) --fades
music(Z) --plays only leftmost SFX in pattern, player presses X/Z
music(X) --title screen, plays only middle SFX in pattern
P#85940 2020-12-30 19:36

Does anyone know if there are any good token optimization tutorials out there? Something like a collection of tips that show a suboptimal way of doing something and then demonstrate an optimized equivalent?

I'm about 25% through my latest game but about 60% through my token count already. Ordinarily I am much more inclined to finish functionality first and optimize/polish later, but in this case there is no way I will be able to finish if I don't clean up because I'll run out of tokens well before everything is in.

I suspect most of my problem is that I have a lot of tables and nested tables, like this:

-- this is 76 tokens total and I have a total of about 608 tokens worth of just these
ryl = (yl + (flr(yl/10)*1.5))*7.84

which I then refer to values of like this (adding another 26 tokens): sspr(oteam.rec.rec1.sx,oteam.rec.rec1.sy,sprw,sprh,oteam.rec.rec1.x,oteam.rec.rec1.y,sprw,sprh,oteam.rec.rec1.f)

There are obvious things I could do here, like shoving "oteam.red.rec1" into something more compact so it's a single token instead of 3 every time, but I'm hoping there are more "best practices" sorts of things folks could point me to for general token savings and more proper ways to deal with data structures like this.

P#83365 2020-10-26 15:04

Cart #memory_2bc-0 | 2020-09-26 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA

Long ago, while working on another game that I never finished, I stopped and made a quick & dirty version of Memory. I only just realized, more than a year later, that I stuck it in Work in Progress unintentionally!

Use the arrow keys to navigate the grid, ❎ to flip a tile, 🅾 to toggle show/hide the time clock (useful if you want to see how close you are to a personal best). When you match two tiles, they'll stay flipped. When you match all 16, the game is over! Try to see how fast you can match all 16 tiles. My personal best is 23 seconds, but I'm sure it can be done faster. I blame my arthritis for my performance :). If you beat 23 seconds, let me know in the comments!

P#82286 2020-09-26 03:28 ( Edited 2021-10-28 15:12)

Cart #kilowar-5 | 2021-01-29 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA

v1.0 - Played through about 200 matches (seriously) to find and fix the last couple of bugs hopefully (a race condition on coup fourré where you could end up with 8 cards in hand, hear the coup fourré sound, but not actually get the coup fourré and a condition where CPU could run out of cards first and leave the player unable to play or discard, thus effectively stopping the game). I had originally planned to update the sprites, but I honestly like them as is, so I'm keeping them!

v0.9.2 - Bug fixes related to end game no-winner nil conditions where player runs out of cards before CPU because player played one or more safeties after the deck ran out.

v0.9.1 - Fixed unchecked nil bug in case where CPU gets coup fourré with the emergency card and also has a Go card in hand (obscure devil of a bug!)


Hello everyone!

I made a PICO-8 version of the classic French car racing card game Mille Bornes! This is a game I've probably played thousands of times in my life from childhood through . . . not childhood (age is just a number, but it's a BIG number!)

In the game, you race against a CPU opponent to be the first to reach 700km (or, if you feel daring, extend the race to 1000km for a chance at bonus points). In addition to 1 point per km, you gain bonuses for playing safety cards, getting coup fourré (playing a safety card as the corresponding hazard is being played against you), winning a race without playing any 200km cards, extending to 1000km, winning after the deck has been emptied, and shutting out your opponent. You race until someone totals 5000 points and wins the match! You can see the cards and a brief rules description by pressing z on the start screen.

During the game, left & right arrows let you select a card to play or discard. x plays a card, z discards. The up arrow lets you play coup fourré if CPU plays a hazard for which you have the safety card. But be quick! You only have a short time to perform the coup fourré while the indicator flashes.

EDIT: I realized that the rules can be cumbersome to figure out if you've never played before. The Mille Bornes Wikipedia entry is actually a pretty good reference for the game rules.

This game is a lot of firsts for me: my first PICO-8 program, first experience with Lua, the first game programming of any kind I've done, first pixel art (quite obvious), first music composition (SUPER obvious). I'm proud of having created a fun, playable game, but it's very much the work of a game programing beginner, so don't expect highly optimized code or probably any techniques you should emulate :). I had 319 tokens left at the end and I'm sure there's plenty I could have done more efficiently.

Special thank you to @Krystman, whose Breakout tutorial was my impetus to give this a go, and from which tutorial I shamelessly grabbed the sash code to use for coup fourré. And thanks to everyone in this community. I think this is my first post, but I lurk & read the posts here frequently, amazed at all the cool ideas you all have and how willing you are to share your knowledge.

P#81787 2020-09-14 02:24 ( Edited 2021-01-29 18:22)

Follow Lexaloffle:        
Generated 2022-07-03 08:30:22 | 0.081s | Q:37