Jump to content

Panda.js black screen on Phonegap


Recommended Posts

Hello guys,


I'm learning how to use Panda.js to create some simple game for iOS.


I studied a lot the documentation and finally I create a first simple app that on click hide the image.


This app contains the "resizeToFill: true" option for every iOS resolution.


This is the config.js

pandaConfig = {    name: 'MyPandaGame',    version: '0.0.0',    system: {       width: 320,       height: 480,       maxWidth: 320,       maxHeight: 480,	   resizeToFill: true,	   retina: true    }};

This is the main.js

game.module(    'game.main').require(    'engine.core').body(function() {game.addAsset('logo.png');game.createScene('Main', {    backgroundColor: 0xb9bec7,    init: function() {        var logo = new game.Sprite('logo.png').center().addTo(this.stage);        logo.interactive = true;                 logo.click = function () {         this.remove();         }            }});});

unfortunately running this code on Safari (iOS) or through phonegap result in a black screen with blank loader (and no errors in console).


Any suggestion?


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.

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.
  • Create New...