Phempt Posted September 26, 2014 Share Posted September 26, 2014 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.jspandaConfig = { name: 'MyPandaGame', version: '0.0.0', system: { width: 320, height: 480, maxWidth: 320, maxHeight: 480, resizeToFill: true, retina: true }};This is the main.jsgame.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? Quote Link to comment Share on other sites More sharing options...
Phempt Posted September 27, 2014 Author Share Posted September 27, 2014 I solved the problem. There's an error in [email protected] name that cause the incorrect loading without "error". thank you 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.