Log In  

BBS > Superblog
Posts: All | Following    GIFs: All | Postcarts    Off-site: Accounts

This worked in 0.1.1, doesn't seem to anymore. My assumption is that it's something to do with this fix:

Fixed: Search replace colour fills one pixel outside of selected region

You could also scroll selections like this, and I found that super useful for moving sprites around. But that doesn't seem to work, either.

1
1 comment


Cart #14948 | 2015-10-04 | Code ▽ | Embed ▽ | No License
1

Hi all

I made this just to get acquainted with Pico 8. It's a 2D gravitation simulation in a closed domain (the planets bounce off the walls). You can add planets, toggle lines and watch trajectories.

Fun fact: for 2 dimensions, the power law of gravity is actually 1/r. So you won't see closed orbits even with only two bodies.

1
1 comment


I know i can add entries to a table using the add function but it seems i can't add using keys.

For example:

local key = {1,2}
local t = {}
t[key] = true

print(#t)

this seems to return 0. Any clues?

7 comments


Cart #14938 | 2015-10-03 | Embed ▽ | License: CC4-BY-NC-SA
1

1
0 comments


Cart #15045 | 2015-10-06 | Code ▽ | Embed ▽ | No License
4

Cart #14930 | 2015-10-03 | Code ▽ | Embed ▽ | No License
4

2 player chess. Arrows to move, button 1 to select a piece and confirm a move, button 2 to deselect.

En passant, castling, and pawn promotion don't work. Because they're complicated. I'm going to try and make an improved version soon which will have these rules working properly. This is why it's v0.95.

If you're going to look at the code, be warned: here be dragons. Its messy. Also white and black are swapped in the code from what they actually are in the game. Don't ask.

4
10 comments


The new export option is amazing, so I started messing with three.js (a webgl library) to use it with Pico 8.
And it works, so I made a simple proof of concept by drawing the pico 8 output in a sort of cathodic display style. The next step will be to import a 3D model of a computer screen or maybe an arcade cabin. So we can finaly see this great fantasy console.
Feel free to use the source code and mess with it. You can change your game just by replacing the game .js by the one exported from Pico 8.

Here is the page
Here is the source code

11
6 comments


Whenever I start up a game using the new web player, it says "future-version: 5", then after some time passes, I get "timeout :(". I figure I need to update the web player by clearing my cache, no biggie.

The new player gets to "loading cartridge..." then the web page crashes! (In Google Chrome, this is "Aw, snap!")
Offline carts still work, thank god.

Zep, don't sweat. Every game/program's pre-release stage is rocky.

12 comments


I'm getting a "could not load" error message whenever I try to start PICO-8 with the new -run argument in v0.1.2.

I tried this in Windows:

"\Program Files (x86)\PICO-8\pico8.exe" -run \Users\dan\AppData\Roaming\pico-8\carts\test_printh.p8

And got this error:

I also tried this in Mac OS X and got a similar error:

~/PICO-8/PICO-8.app/Contents/MacOS/pico8 -run ~/Library/Application\ Support/pico-8/carts/downloads/bitpools.p8.png

Thinking this might be due to unexpected chars in the path, I also tried copying the cart to /tmp/pico8carts, but this also failed (in Mac OS X):

~/PICO-8/PICO-8.app/Contents/MacOS/pico8 -run /tmp/pico8carts/bitpools.p8.png

P.S. The error message doesn't render the uppercase chars in the path correctly. Obviously the PICO-8 font doesn't have two cases worth of chars (apparently missing uppercase in the implementation), so I'm not sure what the best thing to do here is. It could lowercase the path, or hack in drawing an underline for the uppercase chars. A different color might also work but would be less ideal. Uppercase chars don't come up in regular messages in PICO-8 (unless you force them in with a text editor), but they do here because it's a file path.

5
3 comments


This is a function that will generate cart's guid (used for cartdata function) based on things specific to the cartridge (mapdata, gfx, sfx and code).

function getcartguid()
  reload(0x4300,0x4300,7168)
  alphabet = "1234567890abcdefghijklmnopqrstuvwxyz_1234567890abcdefghijklmnopqrstuvwxyz_1234567890abcdefghijklmnopqrstuvwxyz_1234567890abcdefghijklmnopqrstuvwxyz_1234567890abcdefghijklmnopqrstuvwxyz_1234567890abcdefghijklmnopqrstuvwxyz_1234567890abcdefghijklmnopqrstuvwx"
		guid = ""
		for i=0,15 do
		  num = peek (0x0+i)
		  guid = guid .. sub(alphabet,num+1,num+1)
		end
		for i=0,15 do
		  num = peek (0x2000+i)
		  guid = guid .. sub(alphabet,num+1,num+1)
		end
		for i=0,15 do
		  num = peek (0x3200+i)
		  guid = guid .. sub(alphabet,num+1,num+1)
		end
		for i=0,15 do
		  num = peek (0x43af+i)
		  guid = guid .. sub(alphabet,num+1,num+1)
		end
		--print (#guid)
		--print (guid)
		return guid
end

[ Continue Reading.. ]

0 comments


This was also in 0.1.1 but I've forgot about it until yesterday when improving "nyan cat" cart and trying to enter backslash. The only way I could enter it, was by copying it in. This didn't happen in "keyboard test" program released by zep a while back ago tho (tried all the keys) so I've thought bug was fixed for 0.1.2.

//edit a couple other characters also seem affected, namely: @ $ and &. Might be more of them, although backslash should take priority as it is used for escape sequences such as \n.

2 comments


E.g. for storing text (hiscore name, anyone?). Since each number is 4 bytes long, to make standard "Top10" list you'd use only 40 bytes (results only). Which leaves 216 bytes free, that could be used for names, each 21 letters long (well, 21.6 actually, but we can't have 0.6 of character, now can we?). I know we can peek/poke into save data (although it seems memory map haven't been updated in manual), but I'm not sure if it would save.

1
8 comments


As of version 1.2, PICO-8 includes a command useful for debugging: printh("string") This command prints a string to the host operating system's console. You can put printh() calls in your code to examine events or state without cluttering the game screen with debugging information.

So how do you see the host operating system's console?

In Linux, you probably already run the "pico8" command from a terminal window. If you don't, locate where you put the "pico-8" directory, then run the pico8 command from a terminal window using its full path. For example:

~/pico-8/pico8

In Mac OS X, instead of double-clicking the PICO-8 icon, open Terminal, then start PICO-8 with the following command, adjusting the path to match where you put the app. For example:

/Applications/PICO-8.app/Contents/MacOS/pico8

In Windows, instead of double-clicking the PICO-8 icon, open Command Prompt, then start PICO-8 with the following command:

"\Program Files (x86)\PICO-8\pico8.exe"

[ Continue Reading.. ]

6
12 comments


Check your updates page!

Note: If you bought PICO-8 (rather than Voxatron), it isn't possible yet to activate your Lexaloffle account from Humble. I've been activating accounts manually, so if you purchased PICO-8 very recently and don't see it show up yet, please check back in a day or so. The Humble Bundle library builds should be live soon too.

New stuff: HTML5 exporter, 8-player joystick support, cartridge save data.

To export your cartridge as a stand-alone html5 version:

EXPORT BLAH.HTML

Open the folder (FOLDER) and you should be able to see BLAH.HTML and BLAH.JS

Here's a demo of cartridge saving. Note that save data is not persistent yet in the web version:

Cart #14880 | 2015-10-02 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
9

[ Continue Reading.. ]

7
5 comments


Hey guys!

I was messing around with Pico and I've discovered a total of 6 new screen modes!! Please check
the GIF attached to see them in action. Some of them are sort of screen effects (mirror) but the others include
2x1 aspect ratio, 64 x 64 pixels and so on. I am so excited about this. I think this could change the look and feel of many games and makes Pico feel like the Amstrad CPC, C64 or other retro computers. I hope this is a feature and not a bug :)

I will post a cartridge soon.

30
16 comments


Any chance we could get a Raspian build of PICO-8? I'd love to put PICO-8 on my sons little rip' machine with its new touchscreen - it'd be ideal for him to do some programming with!

So any chance we could get a Raspian binary folks?

3
7 comments


Cart #15018 | 2015-10-06 | Code ▽ | Embed ▽ | No License
20

5 October 2015

  • You're now a bit smarter and can cancel jumps! (press down or the action button other than the one you started the jump with)
  • That extra brain power comes with added brain mass and now lily pads can sink! (6 seconds per pad, 13 on the first pad)
  • You can now perform small hops and land on the same lily pad you're on
  • Shortened delays in the game over -> title sequence

Cart #14834 | 2015-10-02 | Code ▽ | Embed ▽ | No License
20

[ Continue Reading.. ]

20
12 comments


In editor:

In game:

0 comments


Cart #14814 | 2015-10-01 | Code ▽ | Embed ▽ | No License
2

I made this program for a contest on CodeWalrus

The contest rules were to make something fun in <= 140 chars or tokens.

Controls

up+down: change bar size
left+right: change speed

2
9 comments




Is there any way to save data from the Pico-8? I'd like to have persistent high scores in my game, but the Lua file io doesn't seem to work (either that or I'm doing something wrong).

Has anyone done this or have an example of how to do this, or is it just not possible?

4 comments




Top    Load More Posts ->