Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Pacman Simulation

Public visualization

Viewing a saved revision (read-only)

3f8bf720f4eb427dab6247f3ff983269

Pacman Simulation

0 stars0🌍 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.