Overview
TheMyMaterial class provides a centralized collection of THREE.MeshStandardMaterial definitions used throughout the game. This ensures consistent colors and visual appearance for all game elements including characters, UI elements, and maze components.
Character Materials
Pac-Man
Material for Pac-Man character.
Ghosts
Material for the red ghost (Blinky).
Material for the pink ghost (Pinky).
Material for the blue ghost (Inky).
Material for the orange ghost (Clyde).
Basic Color Materials
Pure red material.
Pure green material.
Pure blue material.
Cyan material.
Purple/magenta material.
White material used for text, dots, and ghost eyes.
Black material used for ghost pupils and UI elements.
Special Materials
Semi-transparent white material with 10% opacity.
Fully invisible material used for hitboxes and hidden paths.
Usage Examples
Creating Pac-Man
Creating Ghosts
Ghost Eyes
Maze Dots
Invisible Hitboxes
UI Text
Ghost State Changes
Source Location
File:~/workspace/source/pacman/src/MyMaterial.js:1