Main Page

From FANG Engine Sandbox

Jump to: navigation, search

Welcome to the sandbox, a place where you can play around and try out the FANG Engine. No account is needed - just make a new page or edit an existing one. Don't get too attached to any of your creations here because anything posted here can be changed by anyone. If you want a more secure place to write your games, consider signing up for an account on the FANG Engine Playground.

Check out some of the games in the sandbox.

How to Play in the Sandbox

  1. Open a new browser tab or window. You'll want to keep these instructions open as you get started.
  2. Copy the web address on this page and change the Main_Page part of the web address to the name of a game you want to write. For example, if you wanted to make a game called SampleGame, you would go to http://sandbox.fangengine.org/index.php/SampleGame.
  3. If no one else has created a game by the same name, you should see a screen that says
    There is currently no text in this page, you can search for this page title in other pages or edit this page.
    Click on the part that says edit this page. Your browser will experience a slight delay as Java loads.
  4. Click on the Show IDE button at the top of the page you are editing (at the bottom in Internet Explorer). This will enable you to edit code in a convenient environment.
  5. Now click on Image:GAMEButton.png. This adds some basic code to get you started writing your game.
  6. Click on Save Page. You should see a basic game appear where you can move around the oval, click and press 'r' and 'w' to interact with the game.
  7. Click on the edit tab at the top of the window, then click on Show IDE. You can now start editing your game. Every time you save the page, it automatically compiles and executes your code in the page. See if you can edit the sample game to make pressing 'y' turn the oval yellow.
  8. If you want to keep your work, be sure to click on the link at the bottom of the page to save your work to your local hard drive. Remember, this is a sandbox. Anyone can come and destroy your recently built masterpiece.

Tips:

  1. When you write a game, you need to include it in the <java>and </java> tags. These are put in for you automatically when you click on the button for generating a game.
  2. If you are copying an existing game, you will need to make sure to include the java tags (see tip above) and also change the name of the class to match the name of the page you are editing.


This website uses JavaWIDE - the Java Wiki Integrated Development Environment.





Views
Personal tools