more scratching!
This commit is contained in:
parent
83a8df8cc4
commit
2597f20de7
37
neko.js
37
neko.js
|
@ -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,
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in New Issue