Using Pulpcore with NetBeans
After talking about Pulpcore in a previous post and another post on Netbeans IDE, let’s talk about using them together to create our first ‘Hello World’ Pulpcore game.
Please have Pulpcore Libraries Extracted to a location on your local hard drive and Netbeans IDE properly installed before you begin the following.
Navigate to the Netbeans Module for Pulpcore page using this link. Follow the installation instructions by the author of the netbeans Module.
I have duplicated the instructions here for easy access, it is simply 9 Steps.
- Download the Netbeans Module (nbm) file.
- Open Netbeans
- Navigate to “Tools” -> “Plugins”
- Click on the “Downloaded” tab.
- Click “Add Plugins”.
- Find your downloaded nbm file.
- Click “Open”.
- Click “Install”.
- Follow on-screen instructions.
Now you are ready to create the Hello World program. Follow these steps:
- Create a New Project
- Expand ‘Samples’
- Select ‘Java’
- Select ‘PulpCore Full Template’
- Click Next
- Type in ‘Hello World’ where it saids ‘Full’
- Copy down the Project Location, this is usually your ‘NetBeansProjects’ folder within your ‘My Documents’ folder.
- Click on ‘Finish’
- Press ‘Shift+F11′ to ‘Clean and build’
This will actually build your Pulpcore program already and if you click on Netbean’s build-in ‘Run Project’ buttons, it will launch the program. However, I don’t suggest this method for testing your code as the player doesn’t exit properly in Netbeans yet. It would be more ideal to launch the program directly with a browser. So, navigate to the Project Location you copied from Step 7 above and find the NetBeansProject folder. The folder structure should be like this:
‘NetBeansProject’ -> ‘Hello World’ -> ‘build’ -> ‘applet’
Find index.html and launch it using your browser.
If all goes right, you should see something like this.
