Yes I know this is hardly the most efficient way, but at least for now I got a working pacman :)
I will however strive to work it out much better so I could, as you say change the maps to my...
Type: Posts; User: mightyking
Yes I know this is hardly the most efficient way, but at least for now I got a working pacman :)
I will however strive to work it out much better so I could, as you say change the maps to my...
I got it working by the following method:
@Override
public void actionPerformed(ActionEvent e) {
repaint();
//Pacman
if (x == 3 || x == 146) {
...
I tried to change my actionPerformed method to this:
@Override
public void actionPerformed(ActionEvent e) {
repaint();
// sets the limits of the outer walls and changes the...
Logic-wise im aware of what I need to do, but programing-wise I'm completely off track. Any aid?
I've been trying and trying but none make any good progress
I have no idea how to go about doing that, I would guess that would go into the keyPressed method right?
I already have the outside wall limits completed, and it stops accordingly
public void actionPerformed(ActionEvent e) {
repaint();
if (x < 7 || x > 143) {
velX = 0;...
Hi guys, so I've been making this java program to simulate a rather simple pacman, I've been doing fine until I reached the point where I can't figure out how to put a restriction on the pacman so he...
its like this:
766
sorry for the crappy image. You multiply the row of the first matrix by the column of the second.
If the number of columns of the 1st matrix doesn't match the number of...
I know that in a matrix of n sides and n columns, n being the same number obviously, then the output for the class Product would be this:
public void Product(int a[][], int b[][], int c[][])...
Hi I'm trying to finish my program where I can either sum or multiply a matrix. The issue I'm having atm is that I can't figure out how to multiply them if I have 4 variables, 2 for the size in row...
ok so here is the code I got so far:
import java.io.*;
public class apples {
public static void main(String[] args) throws IOException{
BufferedReader in=new BufferedReader(new...
Ok based on the fact I practically didn't understand most of the code in the other program, I've decided to start a new one.
Here is the code I have done so far:
import java.io.*;
public...
so basically is the rest of the coding correct? only thing left to implemente is the public class arreglo{ right?
I'm sorry, its just I'm only trying to help out, sadly only way I can truely help out is by getting help.
I would like to pm you about a doubt, just in case I shouldn't mention it here.
I checked the usb he provided me with the code, and arreglo is nowhere.
What should arreglo look like?
*Sorry to bother but a complete code with whatever change would be highly...
Hello all, I was asked by a friend of mine to help him out with a program he needs completed, unlucky for him I have not much experience with it myself.
Wondering how the complete code would look...