Skip to main content
100%

Pacman Simulation

✓ Published0🌍 Public
FFelipe Mejías
Last edited Sep 30, 2020
Created on Sep 30, 2020
Forked from Mouse Follower

This interactive Pacman simulation presents a maze with blue walls, a yellow player circle, and collectible red and green fruit. The player controls Pacman by moving the mouse cursor within the maze’s boundaries. The simulation uses React to manage state and D3.js functions like `scaleOrdinal` for color mapping and `range` to generate game points. SVG elements render the maze, Pacman, and fruits, with mouse events triggering point collection and hiding consumed items.

AI-generated description

This program uses React & D3 to build a pacman simulation. This program was inspired by the Bowl of Fruits and Mouse Follower tutorial.

MIT Licensed

Similar vizzes