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" } |
P#12875 2015-08-22 04:18 ( Edited 2015-08-30 21:31)
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.
P#11871 2015-07-26 23:19 ( Edited 2015-07-31 19:33)
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
P#11869 2015-07-26 23:15 ( Edited 2015-08-09 19:17)