Create pacman.js
This commit is contained in:
parent
0fa4555f4b
commit
fbcc2a717b
|
|
@ -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 },
|
||||
}
|
||||
};
|
||||
Loading…
Reference in New Issue