Jump to content

How to publish a panda game


lars
 Share

Recommended Posts

I have tried to upload a simple demo of a game I have made. It says the it´s cant find the game.min.js:

 

game.min.js Failed to load resource: the server responded with a status of 404 (Not Found)

 

I haven¨t minified or packed the game (dont know how in panda)

 

 

I would appreciate if someone could lead me in the right direction :-)

 
 
 
I would appreciate
I would appreciate
 
I would appreciate
 
I would appreciate
Link to comment
Share on other sites

Ok so far i have installed node.js and installed panda tool:

 

$ sudo npm install -g pandatool

 

and when I try to build with $ panda build I get the following error:

 

Building project...

/Applications/MAMP/htdocs/ninjaalien/src/game/.DS_Store:1

(function (exports, require, module, __filename, __dirname) { 

                                                              

 

SyntaxError: Unexpected token ILLEGAL

    at exports.runInThisContext (vm.js:53:16)

    at Module._compile (module.js:414:25)

    at Object.Module._extensions..js (module.js:442:10)

    at Module.load (module.js:356:32)

    at Function.Module._load (module.js:311:12)

    at Module.require (module.js:366:17)

    at require (module.js:385:17)

    at Object.module.exports.exports [as build] (/usr/local/lib/node_modules/pandatool/build.js:62:9)

    at Object.<anonymous> (/usr/local/lib/node_modules/pandatool/panda.js:7:17)

    at Module._compile (module.js:435:26)

Link to comment
Share on other sites

Hey enpu

 

Thank´s a lot for the answer. 

 

Have tried to update to v2. that gave me some trouble with the fromeFrame texture:

 

 this.sprite = game.Animation.fromFrames('stand');            this.sprite.animationSpeed = this.speed;            this.sprite.anchor.set(0.5, 0.5);            this.sprite.play();            this.runTextures = this.sprite.textures;            this.moveUpTextures = [game.Texture.fromFrame('ninjaup.png')];            this.moveLeftTextures = [game.Texture.fromFrame('ninjaleft.png')];            this.moveRightTextures = [game.Texture.fromFrame('ninjaright.png')];

did´t know how to solve this ... 

 

have tried to install pandatool 1.12.3 and that did it... yahhhhhiii ... Thank´s alot ... Pandajs rules ... 

Link to comment
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.

Guest
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.

Loading...
 Share

  • Recently Browsing   0 members

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