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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<canvas id=c></canvas> |
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)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "Coordinate.h" | |
Coordinate::Coordinate(){ | |
set( 0, 0 ); | |
} | |
Coordinate::Coordinate( int x, int y ){ | |
set( x, y ); | |
} | |
Coordinate::~Coordinate(){} | |
void Coordinate::setX( int x ){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "Coordinate.h" | |
Coordinate::Coordinate(){ | |
set( 0, 0 ); | |
} | |
Coordinate::Coordinate( int x, int y ){ | |
set( x, y ); | |
} | |
Coordinate::~Coordinate(){} | |
void Coordinate::setX( int x ){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "Coordinate.h" | |
Coordinate::Coordinate(){ | |
set( 0, 0 ); | |
} | |
Coordinate::Coordinate( int x, int y ){ | |
set( x, y ); | |
} | |
Coordinate::~Coordinate(){} | |
void Coordinate::setX( int x ){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "Coordinate.h" | |
Coordinate::Coordinate(){ | |
set( 0, 0 ); | |
} | |
Coordinate::Coordinate( int x, int y ){ | |
set( x, y ); | |
} | |
Coordinate::~Coordinate(){} | |
void Coordinate::setX( int x ){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "Coordinate.h" | |
Coordinate::Coordinate(){ | |
set( 0, 0 ); | |
} | |
Coordinate::Coordinate( int x, int y ){ | |
set( x, y ); | |
} | |
Coordinate::~Coordinate(){} | |
void Coordinate::setX( int x ){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "Coordinate.h" | |
Coordinate::Coordinate(){ | |
this->x = 0; | |
this->y = 0; | |
} | |
Coordinate::Coordinate( int x, int y ){ | |
this->x = x; | |
this->y = y; | |
} |