Surf the Dream A discourse of links and articles from Justin Avery

Color Collision

A fun little game made inside of a CodePen.

You start with two coloured dots on the screen, one red and one blue.

You can switch their positions by clicking the mouse button.

Random balls will come from the top or the bottom of the screen, and either Red or Blue in colour. You need to switch the order of the dots so that the Red hits Red of the Blue hits the Blue.

Simple but slightly addictive.

See the Pen Color Collision by Dev Loop (@dev_loop) on CodePen.

Leave a Reply

Your email address will not be published. Required fields are marked *

Surf the Dream is a blog that has been running since the mid 2000's when it started on BlogSpot. Over the years it's been rebranded as justinavery.me (now my resume) and JaveryDesign.com (which now redirects back to this site).

I offer consultation services through Simple Things, produce a range of high quality pocket notebooks(including a Solar System Notebook, Space Notebook, and a Guitar Notebook), write about the Universe and run a responsive web design knowledge hub and a RWD Weekly Newsletter.