Tutorials/BlueJ

From FANG

Jump to: navigation, search

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


  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. Under Tools select Preferences
    Under Tools select Preferences
  3. Under the Libraries tab, select Add.
    Under the Libraries tab, select Add. Find the jar file of the FANG Engine and click on Open
  4. Restart BlueJ
    Restart BlueJ.
  5. Make a new project.
    Make a new project.
  6. Select the location you want to store your project and give it a name.
    Select the location you want to store your project and give it a name.
  7. Create a new class as an Applet
    Create a new class as an Applet.
  8. Open the editor.
    Open the editor.
  9. Replace the existing code with this code and compile it.
    Replace the existing code with this code and compile it.
  10. Create a game object.
    Create a game object.
  11. Give the game object a name.
    Give the game object a name.
  12. Right click on the object and select GameWindow->runAsApplication.
    Right click on the object and select GameWindow->runAsApplication.
  13. The game should appear.
    The game should appear.
  14. You can also run the game as an applet in the web browser
    You can also run the game as an applet in the web browser, but not using appletviewer.





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