Tutorials/Netbeans

From FANG

Jump to: navigation, search

This tutorial shows you how to use the FANG Engine with Netbeans 6.5. The screenshots for this tutorial are taken in Linux using Netbeans 6.5. Your version of Netbeans on your operating system may look slightly different, but the procedure should be roughly the same. Consult the Netbeans web page for detailed documentation on your own version of Netbeans.


  1. Download the latest version of the FANG Engine. There are two types of downloads - the compiled version and the source code version.
    Download the compiled version.
  2. Create a new project of type Java Application
    Create a new project of type Java Application.
  3. Right click in the Libraries part and select Add Jar/Folder...
    Right click in the Libraries part and select Add Jar/Folder...
  4. Browse to find the FANG Engine jar file and click on OK.
    Browse to find the FANG Engine jar file and click on OK.
  5. Under the Source Packages make a new Java Class.
    Under the Source Packages make a new Java Class.
  6. Click on Finish.
    Click on Finish.
  7. Replace the code with the code shown in the image.
    Replace the code with the code shown in the image.
  8. Right click on the game file and select Run File.
    Right click on the game file and select Run File.
  9. Your game should appear as an applet.
    Your game should appear as an applet.
  10. Make it into an application by inserting the code in the image
    If you would like, you can make it into an application by inserting the code in the image to the right.
  11. The game in its own window.
    Clicking on Run File will bring up the game in its own window.




Views
Personal tools
Add to 
del.icio.usAdd to 
diggAdd to 
FacebookAdd to 
favoritesAdd to 
GoogleAdd to 
MySpaceAdd to 
PrintAdd to 
SlashdotAdd to 
StumbleUponAdd to 
Twitter

Games
Games