Skwal

Members
  • Content Count

    3
  • Joined

  • Last visited

About Skwal

  • Rank
    Newbie

Profile Information

  • Location
    Montreal

Contact Methods

  • Twitter
    Skwal19
  1. It's Official: JavaScript Is The Most Commonly Used Programming Language On Earth - ARC https://t.co/e41lSioSOk

  2. Hi fatalstrikes, It might be a bit late for you, but it might help others, since I had the same issue. Electron uses the file:// protocol to load the assets, so make sure your assets' path start with ./ so that it uses the current directory. Example: this.load.image('bg1', './img/game/bg/bg1.png');Because just '/img/game/bg/bg1.png' will try to load file:///img/game/bg/bg1.png'
  3. Skwal

    Feature requests

    I have a suggestion Instead of repeating all the images path like this: // Load imagesgame.addAsset('images/image1.png'); game.addAsset('images/image2.png'); game.addAsset('images/image3.png'); SceneGame = game.Scene.extend({ init: function() { var sprite = new game.Sprite(100, 100, "images/image1.png"); sprite = new game.MovieClip([ game.Texture.fromImage('images/image1.png'), game.Texture.fromImage('images/image2.png'), game.Texture.fromImage('images/image3.png') ]); // etc... } }); It would be nice if the addAsset() function would also return the path so we could store for future uses. That way if we need to change the assets path or filename, we don't need to change everywhere in the code. Something like this would be nice: // Load imagesvar img1 = game.addAsset('images/image1.png'); var img2 = game.addAsset('images/image2.png'); var img3 = game.addAsset('images/image3.png'); SceneGame = game.Scene.extend({ init: function() { var sprite = new game.Sprite(100, 100, img1); sprite = new game.MovieClip([ game.Texture.fromImage(img1), game.Texture.fromImage(img2), game.Texture.fromImage(img3) ]); // etc... } });[edit] I like gregmax17's even more (see below)
  4. Skwal

    List of Panda.js games

    It looks interesting! I'll give it a try