Skip to content

Instantly share code, notes, and snippets.

View baraujo's full-sized avatar

Bruno Santos Araújo baraujo

View GitHub Profile
@baraujo
baraujo / pong-8.p8
Last active March 24, 2018 03:46
Code for classic Pong clone made with PICO-8
pico-8 cartridge // http://www.pico-8.com
version 16
__lua__
-- pong-8
-- https://baraujo42.itch.io
-- globals
player_speed = 1
ball_speed = 0.75
// Unity shader for blur image effect
// Based on https://www.youtube.com/watch?v=kpBnIAPtsj8 and http://danjohnmoran.com/Shaders/102/SimpleBoxBlur.shader
// Add on a material and use the blur radius slider to increase/decrease the effect
Shader "Custom/BlurImageEffect"
{
Properties
{
_MainTex ("Texture", 2D) = "white" {}
_BlurRadius("Blur radius", Range(0, 5)) = 1