Search:

Type: Posts; User: mightyking

Search: Search took 0.11 seconds.

  1. Replies
    11
    Views
    2,646

    Re: Pacman issue with walls

    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...
  2. Replies
    11
    Views
    2,646

    Re: Pacman issue with walls

    I got it working by the following method:


    @Override
    public void actionPerformed(ActionEvent e) {
    repaint();

    //Pacman
    if (x == 3 || x == 146) {
    ...
  3. Replies
    11
    Views
    2,646

    Re: Pacman issue with walls

    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...
  4. Replies
    11
    Views
    2,646

    Re: Pacman issue with walls

    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
  5. Replies
    11
    Views
    2,646

    Re: Pacman issue with walls

    I have no idea how to go about doing that, I would guess that would go into the keyPressed method right?
  6. Replies
    11
    Views
    2,646

    Re: Pacman issue with walls

    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;...
  7. Replies
    11
    Views
    2,646

    Pacman issue with walls

    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...
  8. Re: Matrix multiplication problem with different dimensions

    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...
  9. Re: Matrix multiplication problem with different dimensions

    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[][])...
  10. Matrix multiplication problem with different dimensions

    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...
  11. Re: Array month/day/hour/min/sec incomplete java code

    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...
  12. Re: Array month/day/hour/min/sec incomplete java code

    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...
  13. Re: Array month/day/hour/min/sec incomplete java code

    so basically is the rest of the coding correct? only thing left to implemente is the public class arreglo{ right?
  14. Re: Array month/day/hour/min/sec incomplete java code

    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.
  15. Re: Array month/day/hour/min/sec incomplete java code

    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...
  16. Array month/day/hour/min/sec incomplete java code

    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...
Results 1 to 16 of 16