-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Because the pig decided it's hungry for Abby.
- Loading branch information
1 parent
cd5e9bc
commit d98e80a
Showing
78 changed files
with
599 additions
and
374 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
{ | ||
"titleScreen": "images/titleScreen.png", | ||
"music": "music/titleTheme.ogg", | ||
"menuText": "DEMO", | ||
"menuText": "main menu", | ||
"musicOverSplash": true, | ||
"persistBGM": false, | ||
"splashFadeFrames": 60, | ||
"titleFadeFrames": 120, | ||
"splashScreens": [ | ||
{ "fileName": "logos/sphere.png", "holdFrames": 180 }, | ||
{ "fileName": "logos/spectaclesBS.png", "holdFrames": 180 } | ||
{ "fileName": "logos/splashScreen.png", "holdFrames": 180 } | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{"version":2,"apiLevel":4,"name":"Spectacles: Bruce's Story","author":"Fat Cerberus","summary":"Follow Scott Starcross in his quest to stop the Primus from destroying both worlds.","resolution":"320x240","main":"scripts/main.js","saveID":"Spectacles Saga"} | ||
{"version":2,"apiLevel":4,"name":"Spectacles: Bruce's Story","author":"Where'd She Go? Productions","summary":"Follow Scott Starcross in his quest to stop the Primus from, um... what does the Primus do again?","resolution":"320x240","main":"scripts/main.js","saveID":"Spectacles Saga"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
version=2 | ||
api=4 | ||
name=Spectacles: Bruce's Story | ||
author=Fat Cerberus | ||
description=Follow Scott Starcross in his quest to stop the Primus from destroying both worlds. | ||
author=Where'd She Go? Productions | ||
description=Follow Scott Starcross in his quest to stop the Primus from, um... what does the Primus do again? | ||
saveID=Spectacles Saga | ||
resolution=320x240 | ||
main=scripts/main.js |
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
/** | ||
* Specs Engine: the Spectacles Saga game engine | ||
* Copyright © 2012-2024 Where'd She Go? Productions | ||
* All rights reserved. | ||
**/ | ||
|
||
// Beverly movepool: | ||
// - Munch | ||
// - Fat Slam | ||
// - 10.5 | ||
// - Knock Back | ||
|
||
import { from, Random, Scene } from 'sphere-runtime'; | ||
|
||
import { AutoBattler, Stance } from '../battleSystem/index.js'; | ||
|
||
export default | ||
class BeverlyAI extends AutoBattler | ||
{ | ||
constructor(unit, battle) | ||
{ | ||
super(unit, battle); | ||
|
||
this.defaultSkill = 'upheaval'; | ||
|
||
this.talkCount = 0; | ||
} | ||
|
||
strategize() | ||
{ | ||
if (Random.chance(0.25)) | ||
this.queueSkill('fatSlam'); | ||
} | ||
|
||
async on_phaseChanged(newPhase, lastPhase) | ||
{ | ||
switch (newPhase) { | ||
case 1: | ||
this.queueSkill('tenPointFive'); | ||
break; | ||
} | ||
} | ||
|
||
on_skillUsed(userID, skillID, stance, targetIDs) | ||
{ | ||
|
||
} | ||
|
||
on_unitDamaged(unit, amount, tags, actingUnit) | ||
{ | ||
if (unit === this.unit && actingUnit !== null) { | ||
if (from(tags).anyIs('fire')) | ||
this.queueSkill('knockBack', Stance.Normal, actingUnit.id); | ||
} | ||
} | ||
|
||
async on_unitReady(unitID) | ||
{ | ||
if (unitID === 'beverly') { | ||
switch (++this.talkCount) { | ||
case 1: | ||
await new Scene() | ||
.talk("Beverly", true, 1.0, Infinity, | ||
"Funny thing about the rats in Malmagma Manor...", | ||
"They don't tend to last very long around here for one reason or another. They disappear, and you know, nobody's really sure why!") | ||
.run(); | ||
break; | ||
case 2: | ||
await new Scene() | ||
.talk("Beverly", true, 1.0, Infinity, "Of course, if I had to guess...") | ||
.run(); | ||
this.queueSkill('munch', Stance.Normal, 'lauren'); | ||
break; | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.