An open API service indexing awesome lists of open source software.

https://github.com/greenheart/goa-space-survival

A space survival game with real-time highscores built with Meteor and Phaser.
https://github.com/greenheart/goa-space-survival

Last synced: about 2 months ago
JSON representation

A space survival game with real-time highscores built with Meteor and Phaser.

Awesome Lists containing this project

README

        

# goa-space-survival
A simple game built to learn how to integrate Phaser into Meteor-projects.

![Gameplay](http://i.imgur.com/pWJ3PN4.png)

## A simple way to use Phaser with Meteor:
*(Meteor version 1.2 and newer)*

1. Insert `script`-tag in `game.html`

```html



```

2. In main `client.js`-file, add a template helper

```javascript
Template.body.helpers({
'initGame': function() {
// helper that initiates Phaser
game = new Phaser.Game(
800, 600, Phaser.AUTO, '',
{ preload: preload, create: create, update: update, render: render }
);
}
});
```

3. In `game.html`, add a call to the template helper `initGame`, that will initiate Phaser.

```html

{{initGame}}

```

4. Use Phaser like you normally would!

---

### DISCLAIMER

I do not own any of the game assets and will only use them

1. in non-commercial software
2. for my own learning.