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.
- Host: GitHub
- URL: https://github.com/greenheart/goa-space-survival
- Owner: Greenheart
- License: other
- Created: 2015-10-02T05:47:10.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-03-24T15:40:28.000Z (about 9 years ago)
- Last Synced: 2025-01-15T08:17:13.078Z (3 months ago)
- Language: JavaScript
- Homepage:
- Size: 23.4 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# goa-space-survival
A simple game built to learn how to integrate Phaser into Meteor-projects.
## 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.