Close #38 : Integrate Joe's dialog

This commit is contained in:
2014-07-02 23:38:33 -07:00
parent 3b26be31f3
commit 8a9200bca9
2 changed files with 305 additions and 28 deletions

View File

@@ -8,7 +8,15 @@ var moonlightDialog = {
"The missus is off shoppin', and\nhere I am sittin' on\nme Jack Jones.", "The missus is off shoppin', and\nhere I am sittin' on\nme Jack Jones.",
"Oy I'm gonna have a butchers at\nthat new tailor's knickers\nhe has for sale.", "Oy I'm gonna have a butchers at\nthat new tailor's knickers\nhe has for sale.",
"I'm off to the pub to see the\nlads and chew the fat.", "I'm off to the pub to see the\nlads and chew the fat.",
"♪ ♫ Whistling ♪ ♫" "♪ ♫ Whistling ♪ ♫",
"Gods, I'm thirsty.",
"Oh, I'll kip well tonight for sure.",
"Well, at least it ain't raining.",
"I'd hang for a pint about now.",
"Oof. Those beans ain't doing me guts any good.",
"Knew I should'a bought my coat with me.",
"Just a few hours left...",
"I need some new boots."
], ],
"concerned" : [ "concerned" : [
"Wha… whats that? Whos there?", "Wha… whats that? Whos there?",
@@ -17,12 +25,20 @@ var moonlightDialog = {
"Oi? I dont want no tomfoolery;\ncome out if youre there!", "Oi? I dont want no tomfoolery;\ncome out if youre there!",
"Must be them darned kids again.", "Must be them darned kids again.",
"Whats that?", "Whats that?",
"Did you see that?" "Did you see that?",
"Is someone over there?",
"What's occurring?",
"Eh? What's that?",
"What the chuff was that?",
"Can't get a moments peace, can I?",
"Eh? That don't sound good...",
"Ugh. What now?",
"What's that ruckus?"
], ],
"alerted" : [ "alerted" : [
"Don't you come no closer, you hear?", "Don't you come no closer, you hear?",
"Egads!", "Egads!",
"I'm getting outta here!", "I'm getting outta here!",
"What's going on?!", "What's going on?!",
"Holy bejeezus!", "Holy bejeezus!",
"Did you see that?", "Did you see that?",
@@ -30,7 +46,15 @@ var moonlightDialog = {
"Get away!", "Get away!",
"Get away from me!", "Get away from me!",
"Stay away! I know Kung-fu! ... but\nthat would require bravery \nI don't have", "Stay away! I know Kung-fu! ... but\nthat would require bravery \nI don't have",
"Guards! GUARDS!" "Guards! GUARDS!",
"Get back you grubber!",
"Keep your distance, pal.",
"Come near me and there'll be trouble!",
"Sneak up on me, will you?",
"I ain't scared of you, young'un!",
"By the Duke's beard!",
"This ain't gonna end well!",
"Steer clear or you'll be sorry!"
], ],
"losthim" : [ "losthim" : [
"Whew. Glad thats over.", "Whew. Glad thats over.",
@@ -39,7 +63,15 @@ var moonlightDialog = {
"Thats right! Run away!", "Thats right! Run away!",
"Aye, and dont-cha come back!", "Aye, and dont-cha come back!",
"Spoony Bard...", "Spoony Bard...",
"Bloody wanker!" "Bloody wanker!",
"Where'd you go, grubber?",
"Yeah, you'd better hide.",
"That's right. Crawl back to your hole!",
"Ha, I must of scared 'em away.",
"Huh. Guess they scarpered off.",
"Yeah, go pick on someone else then.",
"I'm chuffin' glad that's over!",
"Huh. Looks like the grubber ghosted."
] ]
}, },
"townsfolk-female" : { "townsfolk-female" : {
@@ -48,7 +80,16 @@ var moonlightDialog = {
"I'm off to get my Barnet sorted\nout. Ill be the best looking\nlady at the gala.", "I'm off to get my Barnet sorted\nout. Ill be the best looking\nlady at the gala.",
"It's always all itsy bitsy with\nthem boys at the Rub-a-Dub.", "It's always all itsy bitsy with\nthem boys at the Rub-a-Dub.",
"I need to get this shopping\nsorted out.", "I need to get this shopping\nsorted out.",
"What a lovely evening. Perfect\nfor skulking, I would imagine." "What a lovely evening. Perfect\nfor skulking, I would imagine.",
"'tis a hard life. Always has been.",
"What I wouldn't give for a warm bath...",
"Haven't had a day off in weeks.",
"I just need to save up a bit more coin...",
"Should probably stop nattering to meself.",
"Nothing good ever happens round 'ere.",
"Where's that chuffin' cat got to now?",
"Nobody ever listens to me, do they?",
"I picked the wrong day to quit tiffin'."
], ],
"concerned" : [ "concerned" : [
"Wha… whats that? Whos there?", "Wha… whats that? Whos there?",
@@ -57,7 +98,15 @@ var moonlightDialog = {
"I don't want no tomfoolery.\nGo away!", "I don't want no tomfoolery.\nGo away!",
"What was that? This is how horror\ntheatre bits start…", "What was that? This is how horror\ntheatre bits start…",
"What's that?", "What's that?",
"Did you see that?" "Did you see that?",
"I...I don't want no trouble, y'hear?",
"Someone peeping on me?",
"Who's that grubbing about?",
"If someone's there, come out now!",
"What's that trouble over there?",
"Who's there?",
"Um, hullo?",
"Uh oh..."
], ],
"alerted" : [ "alerted" : [
"Eeeek!", "Eeeek!",
@@ -66,13 +115,29 @@ var moonlightDialog = {
"What in the nine hells?", "What in the nine hells?",
"Get back or I'll swoon!", "Get back or I'll swoon!",
"Help! He's after me virtue!" "Help! He's after me virtue!"
"Oh, a peeper!",
"No, please!",
"Someone help!",
"Get back, you filthy grubber!",
"Please, I don't have anything!",
"Stay back or I'll scream!",
"Guards! Guards!",
"Oh, please no!"
], ],
"losthim" : [ "losthim" : [
"Good riddance! Theres too many\nmale protagonists in\ngames anyhow!", "Good riddance! Theres too many\nmale protagonists in\ngames anyhow!",
"I sure am glad thats over.", "I sure am glad thats over.",
"This town is going straight to hell.", "This town is going straight to hell.",
"I hope he doesnt come back.", "I hope he doesnt come back.",
"I hope hes caught and hanged!" "I hope hes caught and hanged!",
"Ah, my heart can't take much more...",
"Oh, thank the Duke that's over...",
"I hope they don't come back!",
"Peepers everywhere in this chuffin' city.",
"Why do peepers always find me?",
"I..I think it's safe now.",
"Maybe I just imagined it?",
"It was just some kid grubbing about."
] ]
}, },
"townsfolk-guard" : { "townsfolk-guard" : {
@@ -83,7 +148,16 @@ var moonlightDialog = {
"No loitering.", "No loitering.",
"I am the law.", "I am the law.",
"May Evil beware and may\nGood dress warmly and\neat plenty of fresh vegetables.", "May Evil beware and may\nGood dress warmly and\neat plenty of fresh vegetables.",
"We're sworn to protect The City." "We're sworn to protect The City.",
"No gold. No glory. This job is no good.",
"Should of joined the army instead.",
"One more day 'til retirement.",
"I always draw the chuffin' night shift.",
"Blast, I left me flask at home!",
"I'm never drinking again, I swear.",
"Tomorrow. I'll quit tiffin' tomorrow.",
"I'll join the Duke's guard someday.",
"Well, better bored than busy."
], ],
"concerned" : [ "concerned" : [
"I sense law-breaking abound.", "I sense law-breaking abound.",
@@ -91,7 +165,18 @@ var moonlightDialog = {
"Did you see that?", "Did you see that?",
"I know you're around here\nsomewhere, rat…", "I know you're around here\nsomewhere, rat…",
"Don't make me look for\nyou in hard-to-reach places!", "Don't make me look for\nyou in hard-to-reach places!",
"The eyes play tricks\nlike tiny, round devils." "The eyes play tricks\nlike tiny, round devils.",
"Come out at once!",
"Reveal thyself, peeper!",
"Someone hiding there?!",
"State your business!",
"Who's that skulkin' there?",
"Someone's up to no good!",
"Trouble? At last!",
"I'll get to the bottom of this!",
"I see you there, grubber!",
"I heard that, whoever you are!",
"Stop fooling and come out at once!"
], ],
"alerted" : [ "alerted" : [
"Surrender lawbreaker!", "Surrender lawbreaker!",
@@ -102,31 +187,223 @@ var moonlightDialog = {
"Theres no escaping the law!", "Theres no escaping the law!",
"Surrender thief!", "Surrender thief!",
"Prepare to taste steel!", "Prepare to taste steel!",
"Clear the area! Nobody\npanic! I'll catch him!" "Clear the area! Nobody\npanic! I'll catch him!",
"Halt in the name of the Duke!",
"Hold it, grubber!",
"I'll teach you a thing or two, trickster!",
"Defend yourself, heathen!",
"Surrender, vagrant!",
"Code Ten! Code Ten!",
"In the name of the Duke, surrender!",
"Fall before the law!",
"Run and you'll die tired, grubber!",
"Don't try to flee, coward!",
"Now where'd you come from?"
], ],
"losthim" : [ "losthim" : [
"Ill get you next time,\ncriminal scum.", "Ill get you next time,\ncriminal scum.",
"Defeat is a harsh mistress.", "Defeat is a harsh mistress.",
"Evil men may get away, but\njustice fights another day.", "Evil men may get away, but\njustice fights another day.",
"Wickedness flees, evading the\ncold steel of righteousness." "Wickedness flees, evading the\ncold steel of righteousness.",
"I'll find you...eventually.",
"You'll turn up sooner or later...",
"Someone else's problem now.",
"I'll catch you next time, see if I don't.",
"The law will find thee later, grubber.",
"The Duke's rule will find you. Later.",
"I'd better keep an eye out...",
"This is ALL going in my report.",
"Hide if you can, vagrant.",
"Well, that was an anticlimax."
] ]
} }
}, },
"conversations": { "conversations": [
"townsfolk-male": { {
"townsfolk-female": [], "members": ["townsfolk-female", "townsfolk-male"],
"townsfolk-male": [], "starter": "townsfolk-male",
"townsfolk-guard": [] "lines": [
"You look like you need looking after, dear.",
"Ha. You couldn't look after a rock.",
"You're a fiery one!",
"Aye. So steer clear or get burned.",
"I could do with some warming up...",
"Look, just chuff off, will you?"
]
}, },
"townsfolk-female": { {
"townsfolk-male": [], "members": ["townsfolk-[fm]*", "townsfolk-[fm]*"],
"townsfolk-female": [], "starter": "",
"townsfolk-guard": [], "lines": [
"Alright.",
"Aye. ",
"Nice night, innit?",
"Aye.",
"Well, nice chatting.",
"Aye."
]
}
{
"members": ["townsfolk-[fm]*", "townsfolk-[fm]*"],
"starter": "",
"lines": [
"Have you seen a cat around here?",
"This a joke? Heard it.",
"Excuse me?",
"About the cat and his Duke, right?",
"Um, no. I'm looking for my cat.",
"Oh, sorry. I've not seen it.",
"Thanks anyway. ",
"Hang on, wanna hear a joke?"
]
}, },
"townsfolk-guard": { {
"townsfolk-male": [], "members": ["townsfolk-[fm]*", "townsfolk-[fm]*"],
"townsfolk-female": [], "starter": "",
"townsfolk-guard": [] "lines": [
} "Have you seen a cat around here?",
"Afraid not. Did you lose one?",
"Yes, Mr Smidge ran away!",
"How terrible. I hope you find him soon!",
"So do I, or my kids will go hungry again."
]
},
{
"members": ["townsfolk-[fm]*", "townsfolk-[fm]*"],
"starter": "",
"lines": [
"See the Duke raised our taxes again?",
"Keep your voice down!",
"Why, what's wrong?",
"I saw the Duke earlier. He's nearby!",
"Oh, right. Praise the Duke!"
]
},
{
"members": ["townsfolk-[fm]*", "townsfolk-[fm]*"],
"starter": "",
"lines": [
"Nice weather, ain't it?",
"Can't you think of something new to say?",
"No. I'm worry I'm just going round in circles.",
"Yeah, I know that feeling.",
"At least the weather is nice though."
]
},
{
"members": ["townsfolk-[fm]*", "townsfolk-guard"],
"starter": "townsfolk-[fm]*",
"lines": [
"Fancy a pint or three later?",
"Can't. Got the kids at home, ain't I?",
"Bring 'em with.",
"Eh? You can't give booze ta babies!"
"Never did me no harm.",
"If you say so, chuffer."
]
},
{
"members": ["townsfolk-[fm]*", "townsfolk-guard"],
"starter": "townsfolk-[fm]*",
"lines": [
"Do you like being a guard?",
"Not really.",
"Why not? Is it lonely?",
"No. And that's the problem. "
]
},
{
"members": ["townsfolk-[fm]*", "townsfolk-guard"],
"starter": "townsfolk-[fm]*",
"lines": [
"Want to buy a fine leather jacket?",
"It wouldn't fit over my armour.",
"Take the armour off.",
"What if I'm attacked?",
"Then you'll die looking good! "
]
},
{
"members": ["townsfolk-[fm]*", "townsfolk-guard"],
"starter": "townsfolk-[fm]*",
"lines": [
"Excuse me, have you seen a cat?",
"A little ginger cat?",
"Yes!",
"Blue collar? Delicious flavour?",
"Yes! Yes! ",
"Can't say I have, no."
]
},
{
"members": ["townsfolk-[fm]*", "townsfolk-guard"],
"starter": "townsfolk-[fm]*",
"lines": [
"Is it true the Duke is here? ",
"What, the Duke is near?",
"He is? ",
"Is he?",
"You don't know?",
"Do you? "
]
},
{
"members": ["townsfolk-guard", "townsfolk-guard"],
"starter": "",
"lines": [
"Anything to report?",
"Nothing to report!",
"Good! I'll note that in my report.",
"Do you have anything to report, Sir?",
"Only that you have nothing to report.",
"Great! I'll note that in my report!"
]
},
{
"members": ["townsfolk-guard", "townsfolk-guard"],
"starter": "",
"lines": [
"Stay alert, soldier!",
"Yes, sir!",
"The Duke is near. We must be vigilant.",
"Vigilant for the Duke, Sir?",
"Yes! How else will I get his autograph?"
]
},
{
"members": ["townsfolk-guard", "townsfolk-guard"],
"starter": "",
"lines": [
"Seen anything interesting?",
"Just this cat that keeps limping around.",
"Limping?",
"Aye. Something took a bite out of it.",
"Aw, the poor thing."
]
},
{
"members": ["townsfolk-guard", "townsfolk-guard"],
"starter": "",
"lines": [
"What is it we're guarding anyway?",
"Beats me.",
"And who are we guarding it from?",
"No idea.",
"Why don't we just go home?",
"Sure. You first. "
]
},
{
"members": ["townsfolk-guard", "townsfolk-guard"],
"starter": "",
"lines": [
"Dammit. I lost my sandwich.",
"Well you're not sharing mine. ",
"What have you got?",
"Sandwich surprise.",
"What's the surprise?",
"Depends. What was in your sandwich?"
]
} }
]
}; };

View File

@@ -122,7 +122,7 @@ GameState.prototype.create = function()
20, SCREEN_HEIGHT - 40, '', { font : '16px Arial', fill: '#ffffff' }, this.uigroup 20, SCREEN_HEIGHT - 40, '', { font : '16px Arial', fill: '#ffffff' }, this.uigroup
); );
this.clock = new Date(); this.clock = new Date();
this.clock.setHours(20, 0, 0, 0); this.clock.setHours(20, 50, 0, 0);
this.clockTimer = game.time.create(true); this.clockTimer = game.time.create(true);
this.clockTimer.repeat(DAYLIGHT_TIMER_REPEAT, this.clockTimer.repeat(DAYLIGHT_TIMER_REPEAT,
DAYLIGHT_TIMER_REPEATCOUNT, DAYLIGHT_TIMER_REPEATCOUNT,