Log In  
Follow
frew

I keep seeing tweets with URLs to cartridges that I should check out. I'm super lazy so I wrote a tool to download the cart automatically.

Should run on any Linux and probably OSX:

#!/usr/bin/env perl

use strict;
use warnings;

use feature 'say';

use HTTP::Tiny;
use File::Path 'mkpath';
my $ua = HTTP::Tiny->new;

my $re = qr{
   <a \s+ href=/(bbs/cposts/[^>]+.png)>\n\s+
   <b><font \s+ color=\#ff0080 \s+ size=3>(.+) \s+ (.+)</font></b></a>
}xi;

my $res = $ua->get(shift);

if ($res->{content} =~ $re) {
   my ($url, $name, $ver) = ($1, $2, $3);

   my $dir = "$ENV{HOME}/.lexaloffle/pico-8/carts/dl/";
   mkpath($dir);

   my $path = $dir . lc $name . '.png';
   say "Downloading $name v$ver Cart to $path";

   $ua->mirror("https://lexaloffle.com/$url", $path);
} else {
   die "Could not find game data; are you sure it was a valid URL?\n"
}

[ Continue Reading.. ]

7
9 comments



Cart #11977 | 2015-07-29 | Code ▽ | Embed ▽ | No License
3

Cart #11879 | 2015-07-27 | Code ▽ | Embed ▽ | No License
3

Cart #11870 | 2015-07-27 | Code ▽ | Embed ▽ | No License
3

This is my first (nearly!) working game in PICO-8. It's a simple Pong clone. Currently lacks sound but I'll update it once I figure out how the SFX editor works.

3
7 comments



I can't for the life of me figure out how sound effects or music editing works! Does anyone have any information anywhere? I suspect that if I already knew how any other tracker worked I would be able to understand this, but I do not.

I read what the manual said but it is too abstract. Can anyone give just a little more information?

Thanks

2
11 comments