Monthly Archives: April 2013

A Conversation Engine for A Video Game in JavaScript

The JavaScript code given below implements a simple conversation “tree” such as might be used in a video game. To see the code in action, copy it into an .html file and open that file in a web browser that … Continue reading

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

A Simple Top-Down Space Game in JavaScript

The code given below implements a simple top-down space game in JavaScript. The code is adapted from that given for an even simpler game described in an earlier post. Use the W key to accelerate and the A and D … Continue reading

Posted in Uncategorized | Tagged , , , | 1 Comment

A Simple Game Inventory Manager In JavaScript

The JavaScript code below implements a simple inventory system for a video game. To see it in action, copy it into an .html file and open that file in a web browser that runs JavaScript. UPDATE 2015/02/25 – I have … Continue reading

Posted in Uncategorized | Tagged , , | 2 Comments

A Simple Turn-Based Game Loop in JavaScript

The JavaScript code below implements a turn-based version of a simple game from a previous post. The goal is to navigate through the “maze”, go through the door, grab the elixir, and return it to the gravestone back at the … Continue reading

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

A Minesweeper Clone in JavaScript

The JavaScript code below implements a simple clone of the classic Windows game Minesweeper. To see it in action, copy it into an .html file, and open that file in a web browser that runs JavaScript. Or you can play … Continue reading

Posted in Uncategorized | Tagged , , | Leave a comment

Downloading Web Pages Using WGet

1. Download and install WGet. WGet is a command-line tool that allows users to non-interactively download remote files from a network. As of this writing, the latest versions of the Windows installer can be found at the URL “http://gnuwin32.sourceforge.net/packages/wget.htm“. 2. … Continue reading

Posted in Uncategorized | Leave a comment

A Simple Spreadsheet in JavaScript

The code shown below implements a simple spreadsheet in JavaScript. To see it in action, copy it into an .html file and open that file in a web browser that runs JavaScript. As of this writing, the spreadsheet only fully … Continue reading

Posted in Uncategorized | Tagged , , | Leave a comment