Monthly Archives: February 2016

A Quadtree-Based Collision System in JavaScript

The JavaScript code below, when run, will create a playfield full of small circular bodies, each moving in a random direction. When two circles collide, they will bounce off of each other and move in different directions. To see the … Continue reading

Posted in Uncategorized | Tagged , , , , , , | Leave a comment

A Rudimentary Tactics Game in JavaScript

The JavaScript below implements a very simple turn-based tactics game. To see it in action, copy it into an .html file and open that file in a web browser that runs JavaScript. Or, for an online version, visit http://thiscouldbebetter.neocities.org/tacticsgame.html. There … Continue reading

Posted in Uncategorized | Tagged , , , , | Leave a comment

Positional Audio for a Game in HTML5 with JavaScript

The code below implements a simple example of positional audio in JavaScript using the WebAudio API. To see it in action, copy it into an .html file and open that file in a web browser that runs JavaScript. You’ll need … Continue reading

Posted in Uncategorized | Tagged , , , , , , , | Leave a comment