Matt

Author's details

Name: Matt Palmerlee
Date registered: March 22, 2012

Latest posts

  1. Learning JavaScript – Foundations — August 27, 2016
  2. A Pattern for handling concurrent edits to a MongoDB Document in Node.js — March 22, 2014
  3. Create your first Node Module and publish it to the NPM registry — April 23, 2013
  4. Installing and switching between multiple versions of Node.js: n vs. nvm — March 23, 2013
  5. Getting started with Node.js, Express and Jade using the WebStorm IDE — November 9, 2012

Most commented posts

  1. Creating a Hex Grid for HTML5 Games in Javascript — 25 comments
  2. Fun with Hexagon Math for Games — 10 comments
  3. Getting started with Node.js, Express and Jade using the WebStorm IDE — 9 comments
  4. Installing and switching between multiple versions of Node.js: n vs. nvm — 8 comments
  5. Create your first Node Module and publish it to the NPM registry — 3 comments

Author's posts listings

Aug 27

Learning JavaScript – Foundations

I’ve been working on a presentation summarizing the fundamentals of the JavaScript language for beginners. I figured I’d share it here for anyone interested. Here is the direct link to the full Learning JavaScript – Foundations presentation on google slides.

Mar 22

A Pattern for handling concurrent edits to a MongoDB Document in Node.js

Lately I’ve been working on converting my space strategy game (Astriarch) to multiplayer using Node.js, Mongodb, and Mongoose. One problem I faced while making the game multiplayer is handling concurrent edits to the mongo game documents. Here is the scenerio: two players decide to send ships (edit the document) at the same time. If we …

Continue reading »

Apr 23

Create your first Node Module and publish it to the NPM registry

NPM Init

Installing Node Modules through NPM NPM is the Node Package Manager, it makes it easy to install external libraries and frameworks for use in your own projects. With NPM installed you can simply type: npm install module-name Upon running this command, npm will fetch that module from the repository and place it within the “node_modules” …

Continue reading »

Mar 23

Installing and switching between multiple versions of Node.js: n vs. nvm

The need for a Node Version Manager Sometimes it is necessary to be able to quickly switch between versions of Node.js without having to uninstall and reinstall a new version. Perhaps one project is written for an older version of Node.js and works on that version, but you’d like to easily test it against a …

Continue reading »

Nov 09

Getting started with Node.js, Express and Jade using the WebStorm IDE

Node.js Over the last few weeks I’ve been experimenting with Node.js and learning about how to use some of the great packages written for it. Node.js is a popular framework for building scalable server-side applications in JavaScript. To achieve high concurrency and scalability, Node.js leverages JavaScript’s event loop and function callbacks for longer running processes …

Continue reading »

Sep 13

Chem Fight: js13KGames HTML 5 Chemistry Battle Game

Chem Fight Logo

Introducing Chem Fight I’m currently putting the final touches on my latest HTML5 game: Chem Fight – the chemistry battle game. I started building the game about a month ago for the js13KGames competition. The goal of the competition is to build an HTML5 game in 13 Kilobytes or less when all the game’s code …

Continue reading »

Aug 16

Learning the Dart Structured Web Language by solving the water bucket logic problem

The Water Bucket Logic Problem You may have seen this logic problem: You have two buckets, one holds 3 gallons of water and one holds 5 gallons of water, there is also a source of water nearby. How do you measure out exactly 4 gallons? I was recently asked to build a program that determines …

Continue reading »

May 07

Stratiscape – A layered approach to HTML5 Canvas drawing

When I created my first HTML5 game I was surprised that the canvas element in HTML5 didn’t support multiple layers that could be painted on independently. Independent stacked layers would help in many situations when animating only a portion of a game (like the main character) so that the system doesn’t have to repaint backgrounds …

Continue reading »

Apr 29

HTML5 Canvas Drawing Speed Testing using Stats.js and jsperf.com

Lately I’ve been doing some performance testing of different canvas drawing functions, I specifically wanted to test the performance of drawing radial gradients vs. arcs and images. To facilitate my testing I used Stats.js – a graphical performance monitor you can easily add to your sites to test milliseconds between javascript calls and frames per …

Continue reading »

Apr 10

Creating a Hex Grid for HTML5 Games in Javascript

In my last post, I described how to do some of the calculations for determining the required measurements to build a hexagon. Today I’ll show you how to take that a step further and build a hex grid or game-field out of those hexagons. Let’s start with the overview and pseudo-code for populating our grid …

Continue reading »

Older posts «