Help With project


Ok thanks for taking the time to help, so i have to create the helicopter game for a project and if you dont know what that is its basically a game where if you hold the mouse button it the helicopter goes up and if you release it goes down and the point is to dodge rocks and get far. Well anyway I have to create the background because im working with a partner and he is going to make the game applet and something else. I made a background called terrain but I cant test what it's drawing because I need the applet for that. It compiles fine but im not sure what its making. So can anyone tell me if its possible to test it without the applet. When I tried to test it, a box came up that says method call and im not sure what to write in it.

This is what I have so far.

import java.applet.Applet;
import java.awt.*;
import java.awt.image.*;
import java.awt.event.*;

public class Terrain
{
int terrainX;
int terrainY;

public void drawTerrain(Graphics g)
{
g.setColor(Color.black);
g.fillRect(terrainX+50,terrainY+50,50,50);
}

}

and i want to see what its making so i can keep adjusting. (Im trying to make it so there is a box going across the top and one going across the bottom so that if they go below that they will reset, etc.) So anyone have any ideas how i can test it
Posted On: Thursday 25th of October 2012 01:51:17 AM Total Views:  92
View Complete with Replies

RELATED TOPICS OF Java PROGRAMMING LANGUAGE