How to use phaser with meteor

Recommended Posts



I thought I might as well contribute to the community.


I've been wanting to use phaser with meteor( and last night.. or rather this morning i created a quick package for meteor.


so.. using meteor. (on a nix based.. sry.. i don't work on windows .. just play games on it :D)


1. install it 'curl | sh' 


1.a  get meteorite too using 'npm install -g meteorite'


2. create a meteor app by doing 'meteor create app-name'


3. move to created app directory 'cd app-name'


2. get the phaser package for meteor.. it will install the latest 'master' for you. 'mrt install phaserio'


and you get phaser in meteor.


You can put all your code in the 

if (Meteor.isClient) { = function(){       /*all your game code here*/   }}

and then in the html file



<head>  </head><body>  {{> game}}</body><template name="game">	{{game}}</template>

why all this? you would say.. 




meteor has an easy accounts system.. and it has mongodb on the backend.. sooo.. i can easily create leaderboards.. and save user data...


anyway i wish this helped somebody 

Share this post

Link to post
Share on other sites

Yeah just made it to the #1 with 38500 supercoins and more than 100.000.000 points ;) Highscore is so hard in games when the game logic itself can be placed on the server.


But well done for the beginning. I'm doing a lot of Ruby and Rails but I bet I will like Meteor too- just because of the JS.




Share this post

Link to post
Share on other sites


 I have a problem. when I create a meteor project and then run "meteor add phaserio" I get problems:


mrt add phaserio
✓ phaserio
Done installing smart packages
Stand back while Meteorite does its thing
Done installing smart packages
Ok, everything's ready. Here comes Meteor!
=> Errors while scanning packages:
While building package `phaserio`:
error: File not found: phaser/build/phaser.js
            throw "Command exited with " + code + "/" + signal;
Command exited with 1/null
can anybody help me, please?

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    No registered users viewing this page.