Posts

Showing posts with the label Phaser

Phaser for HTML5 Game Development

Image
Just starting on an adventure in HTML5 game development using Phaser and thought I'd keep notes online. There's a bigger picture application goal that I have in mind, but it will start as a series of exercises and I want to record them while I'm learning. First I wanted to create an example of a polygon moving around the screen using the cursor keys. After some exploration of the examples and reading documentation it boiled down to this basic example. First the index.html file: 1: <!doctype html> 2: <html lang="en"> 3: <head> 4: <meta charset="UTF-8" /> 5: <title>Polygon Test</title> 6: <script src="js/phaser.js"></script> 7: <script src="js/polytest.js"></script> 8: </head> 9: <body> 10: <div id="phaser_game"> 11: </div> 12: <script type="text/javascript"...