Make a HTML5 Platformer with Phaser. There are dozens of HTML5 game frameworks available out there.
However, if you are looking for a free, open source, and actively maintained framework, the list quickly narrows down to just a handful of them. And a lot of people consider Phaser to be the best one. This tutorial will show you how to make the beginning of a 2D platfromer game in HTML5 using the Phaser framework. This tutorial comes from the beginning of the ebook Discover Phaser. Let’s start by creating an empty game. Don’t worry, it will quickly become more interesting. Set Up First we need to create a new directory called “first-game”, where we should add: Announcing Globalize 1.0. The jQuery Foundation is excited to announce the 1.0 release of the Globalize project, our internationalization (i18n) library.
This release has been a long time coming and as Globalize picks up steam and gains more and more adoption every day, we are proud to finally announce the first stable release of this project. We could go on about the features and benefits of this latest release but we felt it was important that you hear it from the source. Below, Rafael Xavier, the lead for the Globalize project, details everything you need to know about the 1.0 release of Globalize and what is yet to come. Allow me to skip the details and jump to the fun part. Below is what you get with Globalize today, which provides number formatting and parsing, date and time formatting and parsing, currency formatting, message formatting (ICU message format pattern with gender and pluralization support).
Phaser - Learn - Phaser Coding Tips 4: Platform Game Tutorial: Cloud Platforms. Welcome!
This week we carry on building on our set of platformer game tools. Last time we created platforms with specific friction, but this week we're creating platforms you can ride: commonly known as "cloud platforms". Get the source I'm only going to highlight the most important parts of the code here. So please always look at the source first. Run / Edit the code on jsbin or codepen or clone the phaser-coding-tips git repo. "Cloud" Platforms A "Cloud platform" is a special kind of platform in your level. For our purposes here is our cloud platform: It doesn't have to look like an actual cloud of course! CloudPlatform Because we want to have more than just one of these types of platform they are a good candidate for a custom object: CloudPlatform. You pass in the same parameters as if you were defining a normal Sprite.
Here is how we create one: var cloud1 = new CloudPlatform(this.game, 300, 450, 'cloud-platform', this.clouds); So far, so good. AddMotionPath Locking the Player Brain Food. Phaser - Learn - Phaser Coding Tips 7: Creating a Shoot-em-up Tutorial. Welcome!
We will be building a classic vertical scrolling space shooter game, and will focus on polish and production value. The tutorial is broken down step-by-step in chronological development order, and separated into five general themes: You can play the finished game here. All of the code and assets are available on github.
In the code below, new code is in green, and removed code is in red. In this first part, we will cover the basics of setting up a phaser.js game, create a setting, and the ship that the player controls. The internet has many tutorials on building games with phaser, and the phaser docs and examples are excellent, so instead of walking you through the api and implementation details, this tutorial will focus on the execution of creating a game that feels alive, responsive, and polished, with high production value.
Phaser.js tutorial: Building a polished space shooter game (Part 1) - Code Perfectionist.