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
5
votes
3 answers

Pac-Man Template with Original Ghost AI (Help)

I'm currently trying to implement a fully autonomous Pac-Man game, where you just watch. I plan on making the actual yellow guy's AI to play the game flawlessly. I want to make it so that the Ghosts have the personalities like in the original…
安杰帅
  • 334
  • 1
  • 3
  • 9
3
votes
1 answer

tidyverse issue with 4.2.1 update, what to do?

I am a beginner in R - i just updated to 4.2.1. i kept getting the error below. ive tried uninstalling R and Rtools, reinstalled them both. also reinstalled all of my packages. but i am still getting errors when i call up tidyverse. when trying…
ebell
  • 31
  • 1
3
votes
1 answer

How I make my python code delete the pills from my pac man game?

My code for Pac-Man make all the cells switch, so when I pass Pac-Man through the pills, he doesn't eat it, just ignore them and change position. I want the pills to disappear when he pass through them, to make a counter and put the score on the…
Marina
  • 81
  • 3
3
votes
1 answer

Pacman Collisions in Java

I am making a pacman arcade game on Java but my collisions have problems. If you see my image here my pacman sprite stands still (no x or y movement) when visiting a corner or when trying to turn back the direction it came (ie goes left but does not…
Tony H
  • 53
  • 7
3
votes
1 answer

How to translate a rectangle to the previous mouse coordinates in processing

I'm brand new to java and I'm making a snake game. My next step is to add a rectangle to the snake whenever it eats food. My current thinking is, I want to add an identical rectangle that's translated to the previous position of (mouseX, mouseY). At…
3
votes
2 answers

Threading OR multiple flow of control in Pacman

I am planning to write a Pacman game in C language, right from scratch. The most basic challenge that I am facing is how to maintain multiple flows of control at the same time. I mean how does the Pacman move, the ghosts move, the score being…
TruckDriver
  • 1,383
  • 13
  • 28
3
votes
4 answers

Pac-Man - keep pacman moving in a direction once one key is pressed and released

So, I want to code pac-man in python3 with the pygame module. However I do not know how to keep pac-man moving once a single key is pressed. The aim is to press for example the "up" key and pac-man will continue to move in that direction until he…
Governor
  • 300
  • 1
  • 10
3
votes
1 answer

Berkeley Pacman CornersProblem

I've been working on Berkeley's Pacman project for their A.I. course. I'm running into an issue figuring out how to find a path so that pacman touches all four corners of the pacman board. It uses a general breadth-first search algorithm. It only…
Monika
  • 41
  • 3
  • 7
3
votes
1 answer

Pacman Tilemap Cannot Be Correctly Changed

The following code should replace the tilemap index with a blank space, however nothing happens. Tilemap: var tilemap = [ "wwwwwwwwwwwwwwww", "wmmmmmmmmmmmmmmw", "wmwmwmwwwwmwmwmw", "wmmbwmmmmmmwbmmw", "wmwwwwwwwwwwwwmw", …
Fanghole
  • 33
  • 4
3
votes
1 answer

How to calculate the position in matrix based on screen position

So I'm making a remake of pacman and I'm using XNA and .NET to build it. I've setup a screen size of 448x576 and a matrix with 28x36, where each position in the matrix responds to 16px by 16px 448 / 16 = 28 576 / 16 = 36 This is how I calculate…
Kyojin
  • 157
  • 2
  • 12
3
votes
5 answers

Pathfinding Algorithm For 2 Pacmans

I'm trying to implement Pacman. It works fine, but so far, the ghosts aren't using any pathfinding, but instead just decide randomly on each path junction which path to take. So you can imagine that it isn't really difficult for Pacman to win the…
anon
3
votes
1 answer

Rendering Motionless Images in SDL

I am currently learning SDL and I am trying to create a Pacman game. I'm trying to take it in steps so as not to get bogged down with massive amounts of code. So far I have created a blank window and rendered a Pacman image onto it. I am able to…
wgrenard
  • 187
  • 12
3
votes
4 answers

Java Game Programming Part 1: Smooth Movement

I'm one third of a three member group in a computer class (high school freshmen). For our project we decided to make a Pac-Man style game in Java. None of us have much experience, so we've essentially been teaching ourselves up to this point. We've…
leo882
  • 41
  • 1
  • 3
3
votes
4 answers

Probable overuse of java interfaces in my implementation of Ms. Pac-Man

I have been a Java programmer for the last 6 years, and since the beginning of this year I got interested in game programming. So, I thought it was a good idea to start with a popular game and I implemented the game Ms. Pac-Man in Java. I can say…
David Robles
  • 9,477
  • 8
  • 37
  • 47
3
votes
1 answer

Pacman Game Organization (XNA) - Where/how should I check for collisions with ghosts/food?

I have my Pacman game working, and i'm trying to go back through it and "organize" my code better. Before, I had this "TopObject" which referenced the object in game1.cs which basically referenced every object in my game (pacman, ghosts, map, etc).…
Ralph N
  • 4,240
  • 8
  • 28
  • 36
1
2
3
16 17