Home > HTML5 > HTML5 Game Grid – Experiment G

HTML5 Game Grid – Experiment G

This is experiment G to test out the generation of the grid. What this does is generate a random game grid with obstacles. The obstacles could be anything, which is nice, so I’ll be able to apply this to the table pretty easily.

At the moment it’s using the PRNG, but seeding using the Math.random() function so I can gauge how the placement might work out. If you look at the code, you’ll note that I’ve commented out some stuff. I’m still fiddling with it a bit, but I think as it is will work enough to call this complete and move on to experiment H.

Advertisements
Categories: HTML5
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: