## Gravitational Attraction

3 minutes
Contact me

If you want to see the pull of gravity, drop whatever you're holding right now. If you had listened, you may have seen your phone drop to the ground and bounce.

It may even have a few scuffs, or that pen may have hit the desk. Whatever the scenario there is no denying gravity is something that we...

## Maze Generation

4 minutes
Contact me

Using a depth first search and a recursive back tracking algorithm

and this Wiki Page.

## How?

First I have to think about how I am going to approach the maze.

I'm using an HTML5 canvas which I will divide into a grid with each cell being it's own object. The program will figure out which wal...

## How Flappy Bird Was Made

3 minutes
Contact me

### A Journey back in time..

In 2013 a game was released that in the following year would take the world by storm. A young Vietnamese programmer named Dong Nguyen released a game that he would later remove from the App store from guilt of overuse and the addictive nature of the game. That game was Fla...

2 minutes
Contact me

## So what is a force?

Simply:

`A vector that causes an object with mass to accelerate.`

All objects with mass experience force. Some common forces: gravity, tension, spring, buoyancy, air resistance.

These are things we want to model within our code to create a dynamic simulation of the real wor...

## Acceleration

3 minutes
Contact me

This year has really got off to a flying start. I'm super busy at work and school and I have been squeezing in non work related learning when I can. I have had to do more database work at my day job so I have been wrapping my head around that which has stunted my progress with the Nature of Code.

T...

1 minute
Contact me

## What is a vector?

In the Euclidean sense a vector is something that has magnitude and direction.

The size of the vector is the magnitude and the direction is the angle in relation to an x axis running adjacent to the vector.

A vector doesn't necessarily have to be expressed as a magnitude and...

1 minute
Contact me

## Making the random numbers seem more organic.

But there is another mathematical tool that we have at our disposal to make some nice sets of numbers. Enter:

## Perlin Noise

Perlin Noise allows us to make smooth randomness, It was originally developed to create textures in 3d graphics. Let's say we...

## Custom Distribution : Controlling the Random

0 minutes
Contact me

Last time I looked at how Normal Distrobution can make make random numbers consistently closer to the mean.

Let's customize the distribution a little.

Back to cacti, say we wanted to model a mature group of cacti that are all very tall.

We might create a function like this:

We would just p...

## Normal Distribution : Taming the Random

2 minutes
Contact me

In post one I looked a random walker, a small dot that moved across the screen based on a number between 0 - 3.

Although It worked, It didn't move in a way that seemed natural. It was, well, too random.

Wouldn't it be great to generate sets of numbers that seem more naturally distributed.

W...

2 minutes
Contact me

## the nature of code

Code is truly a bizarre thing, symbols that move electrons around that allow you to read this blog post and it all boils down to `101011101000101111100010010`.

To me this is incredible and I often wonder if people really understand the magic that is happening in all the devi...