Monthly Archives: October 2014

A Cinematics Engine for a Video Game in JavaScript

The JavaScript code below implements a simple cinematics engine in JavaScript. Well, “cinematics” is probably the wrong word, because there’s not really anything very kinetic going on. Basically, two static characters at a time talk to each other with speech … Continue reading

Posted in Uncategorized | Tagged , , , | 1 Comment

An Alchemy Engine for a Game in JavaScript

The code below implements an alchemy engine for a video game in JavaScript. To see it in action, copy it into an .html file and open that file in a web browser that runs JavaScript. The player clicks the left … Continue reading

Posted in Uncategorized | Tagged , , | Leave a comment

A 4X Space Strategy Game in JavaScript

The JavaScript code below implements a prototype of a 4X strategy game set in space, similar to the old DOS game Ascendancy. It makes use of pieces of functionality from several previous posts. ¬†As usual, it’s nowhere near finished yet, … Continue reading

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

A Diplomacy Engine for a Game in JavaScript

The code below, when run, provides a very simple simulation of diplomatic relations between various factions. Each of the factions can declare war on, offer peace to, or make alliances with any of the other factions. The results of each … Continue reading

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