more scratching!

This commit is contained in:
Jeff Clement 2023-02-26 02:22:21 +00:00
parent 83a8df8cc4
commit 2597f20de7
1 changed files with 35 additions and 2 deletions

37
neko.js
View File

@ -25,9 +25,38 @@ const stateMachine = {
nextState: ["normal"],
nextStateDelay: 1,
},
nscratch: {
images: ["nscratch1", "nscratch2"],
imageInterval: 0.25,
nextState: ["normal"],
nextStateDelay: 2,
click: "dying", // OMG. Don't click an itchin' neko!
},
escratch: {
images: ["escratch1", "escratch2"],
imageInterval: 0.25,
nextState: ["normal"],
nextStateDelay: 2,
click: "dying", // OMG. Don't click an itchin' neko!
},
sscratch: {
images: ["sscratch1", "sscratch2"],
imageInterval: 0.25,
nextState: ["normal"],
nextStateDelay: 2,
click: "dying", // OMG. Don't click an itchin' neko!
},
wscratch: {
images: ["wscratch1", "wscratch2"],
imageInterval: 0.25,
nextState: ["normal"],
nextStateDelay: 2,
click: "dying", // OMG. Don't click an itchin' neko!
},
itch: {
images: ["itch1", "itch2"],
imageInterval: 0.5,
imageInterval: 0.25,
nextState: ["normal"],
nextStateDelay: 2,
click: "dying", // OMG. Don't click an itchin' neko!
@ -35,7 +64,11 @@ const stateMachine = {
normal: {
awake: true,
images: ["still"],
nextState: ["normal", "normal", "normal", "itch", "yawn"],
nextState: [
"normal", "normal", "normal", "normal", "normal", "normal",
"itch", "nscratch", "escratch", "sscratch", "wscratch",
"yawn", "yawn", "yawn",
],
nextStateDelay: 1,
},