lars Posted November 3, 2015 Share Posted November 3, 2015 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 appreciateI would appreciate I would appreciate I would appreciate Quote Link to comment Share on other sites More sharing options...
lars Posted November 3, 2015 Author Share Posted November 3, 2015 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) Quote Link to comment Share on other sites More sharing options...
enpu Posted November 4, 2015 Share Posted November 4, 2015 'panda build' should be now working with v2 engine (develop version). Just remember to update your toolkit to newest version:npm install -g pandatoolIf you are using v1 engine, you must use v1 toolkit:npm install -g [email protected] Quote Link to comment Share on other sites More sharing options...
lars Posted November 4, 2015 Author Share Posted November 4, 2015 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 ... Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.