Skip to content

Instantly share code, notes, and snippets.

@towc
towc / Particle exploder (mini-game).markdown
Created July 14, 2015 09:52
Particle exploder (mini-game)

Particle exploder (mini-game)

Click anywhere to make an explosion. If any of the particles will bump into your explosion they'll explode aswell, making a chain reaction. See how many particles you can get! Click again to start a new game

A Pen by towc on CodePen.

License.

@towc
towc / Rainbow shiny comets ;).markdown
Created July 14, 2015 09:52
Rainbow shiny comets ;)

Rainbow shiny comets ;)

I'm also trying out a new way of denominating functions, tell me what you think!

As most of my latest pens, this was heavily inspired by the work of @jackrugile

A Pen by towc on CodePen.

License.

@towc
towc / index.html
Created July 14, 2015 09:52
the meaning of points, lines and animation
<canvas id=c></canvas>
@towc
towc / Rainbow Firestorm recreation.markdown
Created July 14, 2015 09:53
Rainbow Firestorm recreation

Rainbow Firestorm recreation

Just an exercise where I recreate jack rugile's awesome pen rainbow firestorm


<-- that's the original pen (if you're looking at the picks)

A Pen by towc on CodePen.

License.

#include "Coordinate.h"
Coordinate::Coordinate(){
set( 0, 0 );
}
Coordinate::Coordinate( int x, int y ){
set( x, y );
}
Coordinate::~Coordinate(){}
void Coordinate::setX( int x ){
#include "Coordinate.h"
Coordinate::Coordinate(){
set( 0, 0 );
}
Coordinate::Coordinate( int x, int y ){
set( x, y );
}
Coordinate::~Coordinate(){}
void Coordinate::setX( int x ){
#include "Coordinate.h"
Coordinate::Coordinate(){
set( 0, 0 );
}
Coordinate::Coordinate( int x, int y ){
set( x, y );
}
Coordinate::~Coordinate(){}
void Coordinate::setX( int x ){
#include "Coordinate.h"
Coordinate::Coordinate(){
set( 0, 0 );
}
Coordinate::Coordinate( int x, int y ){
set( x, y );
}
Coordinate::~Coordinate(){}
void Coordinate::setX( int x ){
#include "Coordinate.h"
Coordinate::Coordinate(){
set( 0, 0 );
}
Coordinate::Coordinate( int x, int y ){
set( x, y );
}
Coordinate::~Coordinate(){}
void Coordinate::setX( int x ){
#include "Coordinate.h"
Coordinate::Coordinate(){
this->x = 0;
this->y = 0;
}
Coordinate::Coordinate( int x, int y ){
this->x = x;
this->y = y;
}