Log In  
[back to top]


Cart #colour_illusion-1 | 2019-06-15 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
4

Each ball is drawn in the same colour (brown) but it appears red, green or blue depending on which colour stripes are drawn over it.

Inspired by an image shared on twitter. (See https://twitter.com/testingham/status/1139558284631789568)

I thought i'd see if pico-8 can create the illusion even with its limited palette. The answer is: yes it can! :-)

And unlike an image, in pico-8 you can read the source code to confirm the illusion acts as stated.

4
1 comment



I’m trying to print text centred around a point.

At the moment my code offsets the x coordinate by half the width
of a string in pixels, calculated as (4* #s)-1.

This works fine for
alphanumeric text but is wrong when the text contains glyphs.

Is there a built in function to help achieve this?

Or do I need to examine every character when computing the pixel width of the text?

2 comments



Cart #divisibubbles-1 | 2019-06-11 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
3

An arcade/puzzle game that will challenge your reactions and your wits.

Tap the bubbles that contain a divisor of the number shown at the top-left corner of the screen. When you've tapped them all, the number will increase and more bubbles will appear.

But time is running out. A wrong tap will cost some time. A successful tap will gain some time. Can you get to 100?

This game uses Pico-8's mouse/touch input.

3
4 comments