Log In  
Follow
Xderial

21 y/o NEET and self learned hobbyist programmer.

[ :: Read More :: ]

Cart #38614 | 2017-03-23 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
15

Heavily inspired by Aaron Bell's blog post.

No, the Pico 8 doesn't really have any secret colors, but by changing a pixel between two colors very fast, we can trick the eye into thinking that it is seeing another color.

Here is an approximation of how the effect should look on your screen:


Of course a lot of the colors wouldn't work, because of flicker.

Technical Info:
This requires 60 fps mode and works best when not run in a browser. Additionally, since (i suspect) the frame timing varies a little, the effect may appear to stutter from time to time on 60hz monitors. Additionally additionally, only some color combinations work (the luminance of the two colors have to be close to each other) and even then the color can vary a little between monitors. Not to mention that you would need to label your games with a seizure warning.

P#38615 2017-03-23 11:08 ( Edited 2017-05-25 12:43)

[ :: Read More :: ]

Cart #38026 | 2017-03-04 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
7

Press [Z] to start distortion, [X] to increase distortion amount.

A simple screen distortion effect using memcpy, using only 63 tokens.

Easy install, just copy the line below:

function distort(a)a=min(a,64)for y=0,127 do local r=flr(-a+rnd(a*2)+0.5)local s,e,l,m=max(-r,0),max(r,0),64-abs(r),24576+y*64memcpy(m+e,m+s,l)end end

And paste it in your project. Then add

distort(amount)

(replace amount with desired distortion amount) to the bottom of your _draw loop in an if condition to prevent it from being always on. For best effect, use a timer to turn it on and off.

Open the cartridge in editor for more details.

P#38027 2017-03-04 00:39 ( Edited 2017-03-04 06:14)

[ :: Read More :: ]

Cart #38028 | 2017-03-04 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
18

New in beta 3: Distortion screen effect when hit!

Managed to get some extra cart space by converting from 2 spaces to tabs, and then used the new found space for this new useless effect. It looks cool though! (A demo cart for the distortion effect can be found here.)

There is still some things i a unhappy about, such as chains and multi kills not being visually represented, but i will have to carve out a good chunk of fat from the game in order to fit it in. I'll get to that eventually.

Original post


My first ever Pico 8 game.

I've been staring at this thing for so long, that i no longer have any idea whether it's actually any good or not. Regardless, it's done now, so i might as well upload it.

===== Changelog / Previous versions =====

b3 :: 2017-03-04


Added a distortion effect when hit by an enemy
Added distortion effect to gameover screen
Trimmed some chars

Cart #38028 | 2017-03-04 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
18


b2 :: 2017-02-24


added chains and multi kills ((10 + chain) * multikill)
green points are now affected by chains (100 + chain * 10)
increased green point suction radius from 32 to 40
updated game over screen to show chains and multi kills
removed fuel meter from UI
removed some unneeded code
fixed the weird ampersand in the logo, and updated label image
made enemies ever so slightly slower
now starts with 3 enemies instead of 2

Cart #37791 | 2017-02-24 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
18


b1 :: 2017-02-20


Public release

Cart #37635 | 2017-02-20 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
18


a1-a8 :: 2017-02-07


Not available

P#37636 2017-02-20 09:13 ( Edited 2017-05-11 20:34)

Follow Lexaloffle:          
Generated 2024-03-29 10:22:35 | 0.074s | Q:18