refactoring
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import { Prompt } from "../prompt.js";
|
||||
import { Scene } from "../scene.js";
|
||||
|
||||
/**
|
||||
@@ -6,7 +7,38 @@ import { Scene } from "../scene.js";
|
||||
* It's here we listen for player commands.
|
||||
*/
|
||||
export class GameScene extends Scene {
|
||||
introText = `
|
||||
onReady() {
|
||||
//
|
||||
// Find out which state the player and their characters are in
|
||||
// Find out where we are
|
||||
// Re-route to the relevant scene if necessary.
|
||||
//
|
||||
// IF player has stored state THEN
|
||||
// restore it and resume [main flow]
|
||||
// END
|
||||
//
|
||||
// IF player has no characters THEN
|
||||
// go to createCharacterScene
|
||||
// END
|
||||
//
|
||||
// set player's current location = Hovedstad
|
||||
// display the welcome to Hovedstad stuff, and
|
||||
// await the player's commands.
|
||||
//
|
||||
//
|
||||
// IDEA:
|
||||
// Does a player have a previous state?
|
||||
// The state that was on the previous session?
|
||||
//
|
||||
// If player does not have a previous session
|
||||
// then we start in the Adventurers Guild in the Hovedstad
|
||||
//
|
||||
this.show(GameScenePlaceholderPrompt);
|
||||
}
|
||||
}
|
||||
|
||||
class GameScenePlaceholderPrompt extends Prompt {
|
||||
promptText = `
|
||||
▄
|
||||
█▐▀▀▀▌▄
|
||||
█ ▐▀▀▀▌▌▓▌
|
||||
@@ -49,33 +81,6 @@ export class GameScene extends Scene {
|
||||
|
||||
|
||||
= Welcome to Hovedstad
|
||||
(( type :quit to quit ))
|
||||
`;
|
||||
|
||||
onReady() {
|
||||
//
|
||||
// Find out which state the player and their characters are in
|
||||
// Find out where we are
|
||||
// Re-route to the relevant scene if necessary.
|
||||
//
|
||||
// IF player has stored state THEN
|
||||
// restore it and resume [main flow]
|
||||
// END
|
||||
//
|
||||
// IF player has no characters THEN
|
||||
// go to createCharacterScene
|
||||
// END
|
||||
//
|
||||
// set player's current location = Hovedstad
|
||||
// display the welcome to Hovedstad stuff, and
|
||||
// await the player's commands.
|
||||
//
|
||||
//
|
||||
// IDEA:
|
||||
// Does a player have a previous state?
|
||||
// The state that was on the previous session?
|
||||
//
|
||||
// If player does not have a previous session
|
||||
// then we start in the Adventurers Guild in the Hovedstad
|
||||
//
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user