From fbcc2a717b39326fae147fadd407377a69c706b0 Mon Sep 17 00:00:00 2001 From: PacMan144 Date: Thu, 24 Apr 2025 22:17:45 +0300 Subject: [PATCH] Create pacman.js --- pacman.js | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 pacman.js diff --git a/pacman.js b/pacman.js new file mode 100644 index 00000000..b126aebc --- /dev/null +++ b/pacman.js @@ -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 }, + } +};