Create pacman.js

This commit is contained in:
PacMan144 2025-04-24 22:17:45 +03:00 committed by GitHub
parent 0fa4555f4b
commit fbcc2a717b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 26 additions and 0 deletions

26
pacman.js Normal file
View File

@ -0,0 +1,26 @@
elements.pac_man = {
color: "#ffff00",
behavior: behaviors.FLY,
category: "pac-man",
state: "solid",
reactions: {
"vulnerable_ghost": { elem2:null, chance:1000, func:behaviors.FEEDPIXEL },
}
};
elements.vulnerable_ghost = {
color: "#2121ff",
behavior: behaviors.FLY,
category: "pac-man",
state: "solid",
density: 3300,
insulate: false,
noMix: false,
alias: "scared_ghost",
movable: true,
hardness: 0.8,
breakInto: "worm"
reactions: {
"pac_man": { elem2:null, chance:1000, func:behaviors.FEEDPIXEL },
}
};