Creating a web-based, 2-D action game in JavaScript with HTML5

Michael Weeks · 2014

This paper details the author's findings and experience in developing a 2-D action game as a web-based application. The player controls an on-screen character in a 2-D world, collecting items along the way toward the goal of returning a chalice to the white castle, similar to the Atari 2600 game Adventure. The game uses JavaScript and HTML5, and does not need any additional software or plugins. Game content can be changed using a related "world" editor, also available as a web-page. This paper explores the game engine creation, with standard game concepts like tiles and sprites, along with HTML5 specifics like working with a canvas, accelerometer, sound, and keyboard.

Read the paper · More papers on PaperTik