Archive for the ‘games’ Category

Quick Tip: How to Make a Game Loop in JavaScript

The "game loop" is a name given to a technique used to render animations and games with changing state over time. At its heart is a function that runs as many times as possible, taking user input, updating the state for the elapsed time, and then draw...

Building A Cross-Platform WebGL Game With Babylon.js

Posted on: No Comments
  Here’s a challenge for you: what about building a 3D game over the weekend? Babylon.js is a JavaScript framework for building 3D games with HTML5, WebGL and Web Audio, built by yours truly and the Babylon.js team. To celebrate the new ver...

JavaScript AI For An HTML Sliding Tiles Puzzle

Posted on: No Comments
  Sam Loyd (1841–1911), American chess player and puzzle maker, created the sliding tiles puzzle in the 1870s. The puzzle is represented by an m×n grid, where m is number of columns and n is number of rows, and each cell can be any imagina...

Using The Gamepad API In Web Games

Posted on: No Comments
  The Gamepad API is a relatively new piece of technology that allows us to access the state of connected gamepads using JavaScript, which is great news for HTML5 game developers. A lot of game genres, such as racing and platform fight...

Principles Of HTML5 Game Design

Posted on: No Comments
  Visual effects in games define their overall look and feel, and gameplay. Players are attracted to high visual quality, which generate more traffic and reach. It’s key for creating successful games and providing a lot of fun for players. ...