Flash Game Testing

From J2Play

Jump to: navigation, search

Once integration of the J2Play toolkit and essential features is complete, it is important to test your game in the production environment to make sure everything works as you expect.

Contents

Testing

Upload all required resources to the location you have specified in the Management Console.

Image:game_url.png

This includes the j2playlib.swf, game.properties, and j2play.properties files, as well as your game's .swf file and any additional dependencies.

Visit the canvas page for your application on any of the social sites you intend to submit to. Detailed instructions for creating applications on social sites can be found on the Supported Social Sites page.

Your game should load and be playable. Scores submitted should immediately be visible on the leaderboards. The leaderboards should appear the way you expect. All available badges should be visible and badges should be awarded when expected.

Common Problems

The Game Doesn't Load

Make sure you have uploaded all the required resources to the Game URL specified in the management console and that permissions are set correctly on the server.

Make sure the callback URL and other properties are configured properly for your application in the social site you are testing on.

Error when post score

Pay attention to the array construction syntax of actionscript.

The

  var scores = new Array(score1, score2, score3);

can make an array with three elements correctly.

But when you try to construct an one-element array as

  var scores = new Array(score1);

It creates an array with the score1 number of elements instead, filled with 'undefine'(s).

Instead use this syntax

 var points : Array = [ _root.score ];

to make an one-element (or multi-elements) array safely.

Other

If you experience other difficulties, please contact J2Play Developer Support.

Links

Personal tools