Skip to content

Instantly share code, notes, and snippets.

View fonzai's full-sized avatar

Timo Saloranta fonzai

View GitHub Profile
require 'gosu'
$width, $height = 200, 200
$number_of_particles = 200
class Quad
def initialize
@pos = {x:rand($width), y:rand($width)}
@vel = { x:(rand(5)+1)*[1,-1].sample, y:(rand(5)+1)*[1,-1].sample }
@size = rand(4)*[1,-1].sample
@color = [ Gosu::Color::GRAY, Gosu::Color::WHITE,