Jump to content

Cocoon js and Phaser js //


i3Designer
 Share

Recommended Posts

I tried to use cocoon js with phaser js, but I can not make it work, this is my main.js:
 
var game = new Phaser.Game(400,400,Phaser.AUTO,'');
 
var menuState = {
    preload: function(){  //Carica i file
        game.load.image('tw','assets/twitter.png');
    },
    create: function(){    // li crea
        var lol = game.add.sprite(20,20,'tw');
    },
};
 
 
game.state.add('menu',menuState);
game.state.start('menu');
 
 
There is a comprehensive guide to phaser js? A tutorial for making a game with phaser to Cocoon?
I have to change the rendering? Auto to Canvas?
If I open this with Cocoon js, not working
Link to comment
Share on other sites

i3Designer, make your game in Phaser normally and then just go to ludei´s website and set all the configuration for your project, or even better, install the cocoonjs launcher in your smartphone/tablet and test your project.

 

Once everything is working perfectly, do what I said before, go to ludei´s website, zip, upload, set and compile your game. Easy :)

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...