Skip to content

Commit

Permalink
Updating copyright year and README.
Browse files Browse the repository at this point in the history
  • Loading branch information
photonstorm committed Feb 5, 2014
1 parent 8e77e8c commit 0896c2f
Show file tree
Hide file tree
Showing 102 changed files with 160 additions and 298 deletions.
38 changes: 26 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
![Phaser Logo](http://www.photonstorm.com/wp-content/uploads/2013/09/phaser_10_release.jpg)

Phaser 1.1.4-dev
================
Phaser 1.1.4
============

Phaser is a fast, free and fun open source game framework for making desktop and mobile browser HTML5 games. It uses [Pixi.js](https://github.com/GoodBoyDigital/pixi.js/) internally for fast 2D Canvas and WebGL rendering.

Version: 1.1.4 "Kandor" - Released: -in development-
Version: 1.1.4 "Kandor" - Released: February 5th 2014

By Richard Davey, [Photon Storm](http://www.photonstorm.com)

Expand All @@ -23,13 +23,23 @@ Read the [documentation online](http://docs.phaser.io)
Welcome to Phaser
-----------------

Over 1000 github stars! Wow! The latest release of Phaser represents another hard months work by the development team and the community at large. We've had some great contributions and have not let-up the pace of innovating and pushing Phaser forward. As we march towards the end of 2013 we do so knowing that with every passing month more and more developers are using Phaser, and more games are being made. All while it is getting stronger with each release.
As you may know we had planned to release 1.1.4 at the end of 2013. For various reasons this didn't quite happen, but we're happy to announce it's finally out! There have been some dramatic changes internally, and if you make use of either the physics systems or tilemaps then you are going to need to update your code. Hopefully only a little bit, but there have been a number of core API changes which we detail below. There are also a host of new features, the headliners being:

Our plan is to end 2013 with one final point release (1.1.4 - "Kandor") and then we'll start planning out the features we wish to see in version 1.2 in the New Year.
* New Physics system. Uses SAT.js internally so physics bodies can now be rectangles, circles or polygons and support rotation.
* New Tilemap system. Brand new collision system for tiles, much more advanced layer handling, tile properties, multiple tilesets of layer and more.
* New Timer. This handy new class lets you create timed events easily.
* Your Game can now be configured from an external configuration object.
* Over 150 new features and updates and over 30 reported bug fixes.

As always we offer a heart-felt "Thank you!" to everyone who has encouraged us along the way. To those of you who worked with Phaser during its various incarnations, and who released full games with it despite there being zero API documentation available back then: you are our heroes. It's your kind words and enthusiasm that has kept us going.
This release also brings the TypeScript definitions file as bang up to date as possible. There are still a few areas that need looking at, but with your help hopefully we can iron those final few bits out and have a 100% accruate defs file on offer.

Phaser is everything we ever wanted from an HTML5 game framework. It powers all of our client work in build today and remains our single most important product, and we've only just scratched the surface of what we have planned for it.
There is a new Contributors Guide which we'd urge you to follow if you wish to help with Phaser development, and we've updated the doc files and added lots more details into key areas. The Examples have grown too! Now over 220 of them including several great ones from the community.

We're going to settle on this build for a short while as we do some quick iteration bug fixing, so expect to see some small point releases very soon that do nothing but address any issues you may find. But in parallel to this we are also now rebuilding our core to bring it in-line with the latest version of Pixi.js, which has had some dramatic changes under the hood, changes will impact a lot of what Phaser does internally. But the changes are all for the better and once we upgrade Pixi you'll have a significantly faster renderer and a smaller codebase too, as we do away with stacks of linked list code :)

As always we offer a heart-felt "Thank you!" to everyone who has encouraged us along the way. To those of you who worked with Phaser during its various incarnations. The number of games being released that were made with Phaser is staggering and we really love to see how you use it! You are our heroes. It's your kind words and enthusiasm that has keeps us going.

Phaser is everything we ever wanted from an HTML5 game framework. It powers all of our client work in build today and remains our single most important product, and we've still only just scratched the surface of what we have planned for it.

![MiniCybernoid](http://www.photonstorm.com/wp-content/uploads/2013/10/phaser-cybernoid-640x480.png)

Expand All @@ -47,7 +57,7 @@ There is also an [un-official Getting Started Guide](http://www.antonoffplus.com
Change Log
----------

Version 1.1.4 - "Kandor" - In development
Version 1.1.4 - "Kandor" - February 5th 2014

Significant API changes:

Expand Down Expand Up @@ -307,7 +317,7 @@ We've made the loading of assets as simple as one line of code. Images, Sounds,

**Physics**

Phaser ships with our Arcade Physics system. An extremely light-weight AABB physics library perfect for low-powered devices and fast collision response. Control velocity, acceleration, bounce, drag and full collision and separation control.
Phaser ships with our Arcade Physics system. A SAT based collision and physics library perfect for low-powered devices and fast collision response. Control velocity, acceleration, bounce, damping and full collision and separation control. As of version 1.1.4 we now support rectangles, circles and polygon collision with full rotation.

**Sprites**

Expand Down Expand Up @@ -368,13 +378,17 @@ Although Phaser 1.0 is a brand new release it is born from years of experience b
Road Map
--------

The 1.1 release was a massive under-taking, but we're really happy with how Phaser is progressing. It's becoming more solid and versatile with each iteration. Here is what's on our road map:
Here is what's on our road map for the coming months:

Version 1.1.5 ("Saldaea")

* A fast turn-around point release that will focus on addressing any bugs that occured as a result of the large changes that took place in 1.1.4.

Version 1.2 ("Saldaea")
Version 1.2 ("Shienar")

* Update to Pixi 1.4 - this newly released build has lots of internal changes and new features we want to take advantage of.

Version 1.3 ("Shienar")
Version 1.3 ("Tarabon")

* Enhance the State Management, so you can perform non-destructive State swaps and persistence.
* Dedicated CocoonJS packaging features (screencanvas, etc)
Expand Down
3 changes: 1 addition & 2 deletions examples/collision/circle vs polygon.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,14 @@ function create() {
sprite4 = game.add.sprite(380, 100, 'wizball');
sprite4.body.setCircle(46);
sprite4.body.collideWorldBounds = true;
sprite4.body.friction = 0;
sprite4.body.bounce.setTo(0.9, 0.9);
sprite4.body.velocity.setTo(100, 100);

}

function update() {

game.physics.collideArray(sprite4, [ sprite1, sprite2, sprite3 ]);
game.physics.collide(sprite4, [ sprite1, sprite2, sprite3 ]);

}

Expand Down
23 changes: 8 additions & 15 deletions examples/games/starstruck.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,6 @@ var bg;

function create() {

$('#step').click(function(){
console.log('---- STEP', game.stepCount, '-------------------------------');
game.step();
});

$('#start').click(function(){
console.log('---- START DEBUGGING -------------------------------');
game.enableStep();
player.debug = true;
});

game.stage.backgroundColor = '#000000';

bg = game.add.tileSprite(0, 0, 800, 600, 'background');
Expand Down Expand Up @@ -63,6 +52,9 @@ function create() {
player.body.collideWorldBounds = true;
player.body.setRectangle(16, 32, 8, 16);

// Un-comment this on to see the body collision areas / data
// player.debug = true;

player.animations.add('left', [0, 1, 2, 3], 10, true);
player.animations.add('turn', [4], 20, true);
player.animations.add('right', [5, 6, 7, 8], 10, true);
Expand Down Expand Up @@ -119,10 +111,8 @@ function update() {
}
}

// if (jumpButton.isDown && player.body.touching.down && game.time.now > jumpTimer)
if (jumpButton.isDown && player.body.onFloor() && game.time.now > jumpTimer)
{
console.log('jump');
player.body.velocity.y = -250;
jumpTimer = game.time.now + 750;
}
Expand All @@ -131,7 +121,10 @@ function update() {

function render () {

game.debug.renderPhysicsBody(player.body);
game.debug.renderBodyInfo(player, 16, 24);
if (player.debug)
{
game.debug.renderPhysicsBody(player.body);
game.debug.renderBodyInfo(player, 16, 24);
}

}
12 changes: 5 additions & 7 deletions examples/games/tanks.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ EnemyTank = function (index, game, player, bullets) {
this.turret.anchor.setTo(0.3, 0.5);

this.tank.name = index.toString();
this.tank.body.immovable = true;
this.tank.body.immovable = false;
this.tank.body.collideWorldBounds = true;
this.tank.body.bounce.setTo(1, 1);

Expand Down Expand Up @@ -77,7 +77,6 @@ EnemyTank.prototype.update = function() {
};

var game = new Phaser.Game(800, 600, Phaser.AUTO, 'phaser-example', { preload: preload, create: create, update: update, render: render });
// var game = new Phaser.Game(800, 600, Phaser.CANVAS, 'phaser-example', { preload: preload, create: create, update: update, render: render });

function preload () {

Expand Down Expand Up @@ -122,10 +121,9 @@ function create () {
tank = game.add.sprite(0, 0, 'tank', 'tank1');
tank.anchor.setTo(0.5, 0.5);
tank.animations.add('move', ['tank1', 'tank2', 'tank3', 'tank4', 'tank5', 'tank6'], 20, true);
// tank.play('move');

// This will force it to decelerate and limit its speed
tank.body.friction = 0.2;
tank.body.linearDamping = 0.2;
tank.body.maxVelocity.setTo(400, 400);
tank.body.collideWorldBounds = true;

Expand Down Expand Up @@ -194,15 +192,15 @@ function removeLogo () {

function update () {

game.physics.collide(enemyBullets, tank, bulletHitPlayer, null, this);
game.physics.overlap(enemyBullets, tank, bulletHitPlayer, null, this);

for (var i = 0; i < enemies.length; i++)
{
if (enemies[i].alive)
{
enemies[i].update();
game.physics.collide(tank, enemies[i].tank);
game.physics.collide(bullets, enemies[i].tank, bulletHitEnemy, null, this);
game.physics.overlap(bullets, enemies[i].tank, bulletHitEnemy, null, this);
enemies[i].update();
}
}

Expand Down
4 changes: 2 additions & 2 deletions examples/games/wabbits.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ function create() {
wab.name = 'wab' + i;
wab.body.collideWorldBounds = true;
wab.body.mass = 0.1;
wab.body.friction = 0.2;
wab.body.linearDamping = 0.2;
}

hill = game.add.sprite(450, 400, 'hill');
Expand All @@ -53,7 +53,7 @@ function create() {
block = game.add.sprite(575, 300, 'block');
block.body.collideWorldBounds = true;
block.body.mass = 5;
block.body..friction = 0.4;
block.body.linearDamping = 0.4;

analog = game.add.sprite(200, 450, 'analog');
analog.body.allowGravity = false;
Expand Down
2 changes: 1 addition & 1 deletion examples/input/gamepad tanks.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ function create () {
// tank.play('move');

// This will force it to decelerate and limit its speed
tank.body.friction = 0.2;
tank.body.linearDamping = 0.2;
tank.body.maxVelocity.setTo(400, 400);
tank.body.collideWorldBounds = true;

Expand Down
2 changes: 1 addition & 1 deletion examples/physics/launcher follow world.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ function create() {
player.anchor.setTo(0.5, 0.5);
player.body.collideWorldBounds = true;
player.body.bounce.setTo(0.9, 0.9);
player.body.friction = 0.2;
player.body.linearDamping = 0.2;
player.body.gravity.setTo(0, 8);

// Enable input.
Expand Down
2 changes: 1 addition & 1 deletion examples/physics/launcher follow.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ function create() {
player.anchor.setTo(0.5, 0.5);
player.body.collideWorldBounds = true;
player.body.bounce.setTo(0.9, 0.9);
player.body.friction = 0.2;
player.body.linearDamping = 0.2;

// Enable input.
player.inputEnabled = true;
Expand Down
2 changes: 1 addition & 1 deletion examples/physics/mass velocity test.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ function create() {
s.name = 'alien' + s;
s.body.collideWorldBounds = true;
s.body.bounce.setTo(0.8, 0.8);
s.body.friction = 0;
s.body.linearDamping = 0;
s.body.minVelocity.setTo(0, 0);
s.body.velocity.setTo(10 + Math.random() * 40, 10 + Math.random() * 40);
}
Expand Down
13 changes: 7 additions & 6 deletions examples/tile sprites/colliding with tiling sprite.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,12 @@ function create() {

ball = game.add.sprite(400, 0, 'ball');

ball.body.gravity.y = 6;
ball.body.gravity.y = 200;
ball.body.bounce.y = 1;

tilesprite = game.add.tileSprite(300, 450, 200, 100, 'starfield');
tilesprite.body.immovable = true;
tilesprite.body.setRectangle(200, 100, 0, 0);

cursors = game.input.keyboard.createCursorKeys();

Expand All @@ -32,13 +33,13 @@ function update() {

if (cursors.left.isDown)
{
tilesprite.x += 8;
tilesprite.tilePosition.x += 8;
tilesprite.x -= 8;
tilesprite.tilePosition.x -= 8;
}
else if (cursors.right.isDown)
{
tilesprite.x -= 8;
tilesprite.tilePosition.x -= 8;
tilesprite.x += 8;
tilesprite.tilePosition.x += 8;
}

if (cursors.up.isDown)
Expand All @@ -54,6 +55,6 @@ function update() {

function render() {

game.debug.renderSpriteBounds(tilesprite);
game.debug.renderPhysicsBody(tilesprite.body);

}
2 changes: 1 addition & 1 deletion examples/tilemaps/mapcollide.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ function create() {
game.physics.gravity.y = 250;

p.body.bounce.y = 0.2;
p.body.friction = 1;
p.body.linearDamping = 1;
p.body.collideWorldBounds = true;

game.camera.follow(p);
Expand Down
4 changes: 2 additions & 2 deletions examples/wip/2ball.js
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ function test7() {

// sprite.body.gravity.y = 200;

// sprite.body.friction = 0.2;
// sprite.body.linearDamping = 0.2;

game.input.onDown.add(launch7, this);

Expand Down Expand Up @@ -375,7 +375,7 @@ function update() {

if (sprite3)
{
game.physics.collideArray(sprite, [sprite2, sprite3]);
game.physics.collide(sprite, [sprite2, sprite3]);
game.physics.collide(sprite2, sprite3);
}
else
Expand Down
2 changes: 1 addition & 1 deletion examples/wip/acceleration.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ function create() {
car.body.collideWorldBounds = true;
car.body.bounce.setTo(0.8, 0.8);
car.body.allowRotation = true;
car.body.friction = 0.4;
car.body.linearDamping = 0.4;

// car.body.acceleration.x = 10;
game.input.onDown.add(start, this);
Expand Down
4 changes: 2 additions & 2 deletions examples/wip/blocked.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,13 @@ function test8() {
sprite.body.bounce.setTo(0.8, 0.8);
sprite.body.minBounceVelocity = 1.2;
sprite.body.velocity.x = -400;
sprite.body.friction = 1.2;
sprite.body.linearDamping = 1.2;

sprite2 = game.add.sprite(500, 100, 'ball');
sprite2.body.collideWorldBounds = true;
sprite2.body.bounce.setTo(0.5, 0.5);
sprite2.body.minBounceVelocity = 0.8;
sprite2.body.friction = 0.5;
sprite2.body.linearDamping = 0.5;

game.input.onDown.add(launch8, this);

Expand Down
Loading

0 comments on commit 0896c2f

Please sign in to comment.