Forum: Java Dec 7th, 2007 |
| Replies: 3 Views: 1,044 Thanks for the help guys! I finally figured it out :) |
Forum: Java Dec 6th, 2007 |
| Replies: 3 Views: 1,044 Hello All, This is suppose to be my finished code for my "PacMan Game". All this "game" is suppose to do is to allow a Pacman to eat dots that can be placed on the screen at any location by clicking... |
Forum: Java Dec 6th, 2007 |
| Replies: 11 Views: 1,083 Thanks anyways, you've helped me out alot :) |
Forum: Java Dec 5th, 2007 |
| Replies: 11 Views: 1,083 Here is the code now,
Main Class:
import java.applet.*;
import java.awt.*;
import java.awt.event.*;
public class PacMan extends Applet { |
Forum: Java Dec 5th, 2007 |
| Replies: 11 Views: 1,083 I don't think Pacman wants to eat food :P Still not working for some reason, any ideas? |
Forum: Java Dec 5th, 2007 |
| Replies: 11 Views: 1,083 Thanks once again. I'm trying to work out how to have the paint check to see if it's been eaten. Would it be more sensible to have it check in the Dot class? Such as if the boolean is true it prints... |
Forum: Java Dec 5th, 2007 |
| Replies: 11 Views: 1,083 This is what I have been working on.
public void EatDot() {
for (int i=0; i < dotct; i++)
if ((xcoords - dot[i].x <= 5) && (ycoords - dot[i].x <=5))
dot[i] = Dot.isEaten(); |
Forum: Java Dec 5th, 2007 |
| Replies: 11 Views: 1,083 Thanks for the help. However, I'm not quite sure if I understand what I should use to check whether pacman is with in the eating range. Like say if pacman is within 5 pixels of the dot, I would like... |
Forum: Java Dec 5th, 2007 |
| Replies: 11 Views: 1,083 Hello, I am writing a VERY simple version of Pacman. In this "game" the user can click on the screen to select where the Pacman will start and any other clicks will add dots to the screen. The... |
Forum: Java Nov 12th, 2007 |
| Replies: 1 Views: 2,492 Hello All. This program lets the user select any three points within the applet window and draw a triangle. It then prints out the perimeter of the triangle and the area of the triangle. After the... |
Forum: Java Oct 23rd, 2007 |
| Replies: 4 Views: 2,479 I got the program to work with the user entering the values he/she wants. Thanks for all your help. This would have taken me ages to figure out. |
Forum: Java Oct 22nd, 2007 |
| Replies: 4 Views: 2,479 The only question I have is how I would go about this with values that are unknown before the user puts them in. The rolls of the dice could be from 1 - possible millions. |
Forum: Java Oct 22nd, 2007 |
| Replies: 4 Views: 2,479 Hello Everybody. This program needs to use an array to count the amount of times a certain roll appears on the dice, after the user enters how many dice and rolls they would like to use. I was able... |
Forum: Java Oct 18th, 2007 |
| Replies: 2 Views: 3,564 I need to add all the values of the dice together, before printing them. Is there anyway to do this? |
Forum: Java Oct 17th, 2007 |
| Replies: 2 Views: 3,564 Hello Everybody. I am trying to write a program that asks the user to enter the amount of dice they want to use, and how many rolls they would like to make. Eventually I will need to store the... |