To perform this task |
Follow these steps |
Create a game using the game design file template |
- Choose File > New File.
This opens the New File wizard.
- Under Categories, choose MIDP
- Under File Types choose Visual Game Design.
- Choose a name for your game's MIDP Class Name.
- Choose a source package and Finish.
|
Add a new scene |
- To add another game level click the New Scene button on the scene editor toolbar.
- Name the scene and hit the OK button. This creates an empty scene that contains no layers.
- Add layers from existing sources by right clicking the game canvas and choosing Add Tiled Layer -
tiledlayername .
|
Add a new tiled layer to a scene |
- To add a new tiled layer to a scene, right click inside the scene editor and select Create tiled layer.
- Give the new tiled layer a
filename and choose an image form the Select Image list or click the Import Sample Images button to add to your image library for the game builder.
- Drag the tiled layer to the desired position on the scene. Repeat this process until the scene is filled with the desired background visuals for your game. Remember that Sprites must remain on top of the tiled layers to be visible.
|
Add a sprite |
- Click the New Sprite button on the scene editor toolbar.
- Select an image or set of images from the Create New Sprite Dialog and give the sprite a name.
|
How to import sprites and background layers. |
- Open up the
projectname directory and navigate to the /src/res folder and add png or other suitable image types there. You can also click the Import Sample Images button in the Create Sprite and Create Tiled Layer dialogs boxes.
|