Questions tagged [pacman]

Pacman is an arcade game developed by Namco and licensed for distribution in the United States by Midway, first released in Japan on May 22, 1980. For the package manager of the same name, use [pacman-package-manager] instead.

Pacman is an arcade game developed by Namco and licensed for distribution in the United States by Midway, first released in Japan on May 22, 1980.

Screenshot of play area

241 questions
-1
votes
2 answers

Java KeyListener Class

I have a Keylistener class for a game I am making an something has bpne wrong with it. I can't seem to get the pacman move with the key clicks. It seems as if the Keylistener method isn't ever being called. I'm relatively new to Java and GUI…
-1
votes
2 answers

Java Game Programming Part 2: Disappearing Images

For a school computer project I decided make a Pac-Man style game in Java (with two other people). None of us have much experience, so we've essentially been teaching ourselves up to this point. We've made quite a bit of progress, but we seem to…
leo882
  • 41
  • 1
  • 3
-1
votes
1 answer

Multiple wall collisions in python

I am creating a piece of code that involves a maze and doors that open when a button is hit. The problem is that when I put in the doors the player collision detects the doors but no longer detects the maze. I have put all my code down on here in…
Lucas Murphy
  • 23
  • 1
  • 1
  • 5
-1
votes
3 answers

Pacman open/close mouth animation

I want to make the pacman open/close mouth animation using the easiest method. Here is my recent code: The problem is, nothing is happening? package ordner; import java.awt.Color; import java.awt.Graphics; import javax.swing.JFrame; import…
Scary Mary
  • 11
  • 1
  • 5
-2
votes
1 answer

Pacman Game Using Pygame on Mac

Im building a pacman game using pygame on my MacBook, I've written the code in visual studio code and have used pip install pygame in the terminal, however, when I run the python script for my game I get an error. all my files are in one folder…
-2
votes
1 answer

Self Traversing Pacman

How to add multiple finish line in traverse? example the player needs to go to the 1st finish line, then to next, then up to the last. this is the code. i want to have 1 up to 4 traversing point. this is the code. i dunno where to put the…
-3
votes
1 answer

How to animate pacman?

I am writing a pacman game in C++. I am trying to figure out a good way to switch between 2 images. Currently, If I move pacman with the keys the image changes to pacman image facing the right way which is good. But now when he continues to move in…
-3
votes
1 answer

Pacman, make the ghosts chase Pacman

So, in Java right now, for a project, I have to code four ghosts and make them chase Pacman. This is the code I have right now. When I run it, I get the error that the variable "i" at return actions[i] can not be found. Does anyone know why this may…
Anna Belle
  • 7
  • 1
  • 6
-3
votes
1 answer

Rotating triangle in opengl from one point

Can someone please advise how to rotate a triangle from its top vertice? I want to make multiple triangles in a fan to make a circle with a common middle point, the top vertice of the triangle.
John
  • 39
  • 1
  • 6
-3
votes
2 answers

Random Pac-Man Ghost AI using an 2d array

I used a 2d array for the maze of a Pac-Man game clone in Java. I know the ghosts in Pac-Man doesn't move randomly however how would I go about making the ghosts move randomly in the maze? Below is what I tried. private void randomGhostMovement()…
Pixie
  • 1
  • 2
-3
votes
1 answer

Convert drawings in instructions for Java Swing paintComponent

Would you know a software able to convert simple drawings (done with simple instructions that can be found in paintComponent like fillRectangle, drawLine... etc) into Java instructions? I ask this question because I'm programming a Pacman game, and…
Jerry Unkhaptay
  • 1,308
  • 1
  • 8
  • 9
-3
votes
1 answer

Running a lottery within a pacman game

I want to find a pacman game written in javascript and find where it detects the winning. Then I can write my own code bellow it to run a simple lottery. I have checked out a few samples but couldn't find where it finds out the user has won. I need…
Fariborz Navidan
  • 91
  • 1
  • 2
  • 9
-3
votes
1 answer

Java game development. Making the monster move random in a maze

I was writing a pacman styled game in which the monsters are assumed to move in a random direction in the maze. But I can't figure it out how to make them adapt the right direction they want. I was using some constants for the directions. public…
Sri Harsha Chilakapati
  • 11,744
  • 6
  • 50
  • 91
-5
votes
1 answer

How should I draw and move my Java Pacman

I need some help with a Java assignment I have, I'm required to build a clone of Pac-Man. The problem is, I don't know how to draw the movements of the Pac-Man or the Ghosts. I'm thinking I should only draw the walls once, and continiously redraw…
Oreborous
  • 322
  • 1
  • 3
  • 14
-5
votes
1 answer

How to make Pacman's Characters in OpenGL

I'm trying to make a two yellow pacman (one open mouth and one plain) and also a ghost but I'm quite noob with openGL. Could someone give me code to make them?
b.allain732
  • 9
  • 1
  • 4
1 2 3
16
17