Ant configuration
Now we need to setup an Ant build script to build our new HelloWorld Pulpcore project.
Pulpcore has a skeleton ant script in it's project template directory. So we will import this into our project and modify it as needed.
Right click the new project from the Package Explorer tab.
Select Import.
Select file system and press next.
Browse to the location of the template files in your Pulpcore build directory.
Select the build.xml under the template\project folder.
Press finish.
Open the build.xml and set the following properties.
<property name="pulpcore.player.wait" value="true" /> <property name="project.scene" value="HelloWorld" /> <property name="project.jar" value="HelloWorld.jar" /> <property name="project.assets.zip" value="HelloWorld.zip" /> <property name="project.width" value="400" /> <property name="project.height" value="400" /> <property name="project.params" value="" /> <property name="project.codebase" value="" /> <property name="project.version" value="1.0" /> <property name="pulpcore.build" value="release" /> <property name="pulpcore.path" value="../Library/Pulpcore 0.11.3" /> <property name="proguard.path" value="../Library/proguard 4.2/proguard.jar" /> <property name="library.path" value="${java.home}/lib/rt.jar" /> <!-- Normally you wont need to edit anything below this line --> <property name="pulpcore.version" value="0.11" /> <property name="pulpcore.platform" value="applet" /> <property name="autoload.assets.zip" value="HelloWorld.zip" />
You download a copy of the build.xml here.
Hello world ant build script
Next: Build and run
Related Posts:
Hello world source code
Now for the famous Hello World source code. Create a new class in your HelloWorld...
Getting started with Pulpcore
There are several prerequisites that you will need before we get started. JavaSE...
Build and run
To build a Pulpcore applet in Eclipse using an Ant build script is easy. Simply...
Project directories
Pulpcore expects a few directories to be present in a project before the Ant script...
Internationalization Of Game Assets
All of the classic arcade game clones will have certain assets they need to load for...

