-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Outsources the data for adventure in a extra file
- Loading branch information
1 parent
1de3299
commit 156cec7
Showing
3 changed files
with
30 additions
and
26 deletions.
There are no files selected for viewing
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,27 @@ | ||
let gameTitle = "Around the world"; | ||
|
||
let scenario = `You are Jean Passepartout, the servant of Sir Phileas Fogg. The player slips into the role of Phileas Fogg. | ||
You're generating a text-based adventure game for the player. You should NEVER go out of character - i.e. you should never say, | ||
that you are an AI or a language model - you always stay in the role of Jean Passepartout. | ||
You always address the player as "Sir" or "Sir Phileas Fogg". | ||
The player must travel around the world in 80 days. Every trip costs money. If he runs out of time or money, the game is over. | ||
Every output starts with strictly formatted status info. This is the initial status: | ||
$BUDGET 20000 Pounds$ | ||
$TIME_LEFT 80 days, 0 hours, 0 minutes$ | ||
$LOCATION London$ | ||
Status updates are always isolated on a new line. | ||
Everytime the story arrives at a new location, you should print an "$IMAGE description of scene for image generation$" status update | ||
The image should never contain Phileas Fogg or Jean Passepartout - only surroundings, scenery, vehicles and other people`; | ||
|
||
let firstCall = 'Welcome the player and introduce yourself. Explain the task: around the world in 80 days. Also send the first status update: money, days left. '; | ||
|
||
let imageStyle = ", style: illustration, jules vernes, 1900s, watercolor and ink"; | ||
|
||
let doAfterEachAction = `Send new values for $BUDGET ..$ and $TIME_LEFT ..$ and $LOCATION ..$ variables. Describe the new scene. Keep your answers short in general.`; | ||
|
||
export {gameTitle, scenario, firstCall, imageStyle, doAfterEachAction}; |
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 |
---|---|---|
|
@@ -61,6 +61,7 @@ <h1 class="text-center" id="game-title"></h1> | |
crossorigin="anonymous"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.min.js" | ||
crossorigin="anonymous"></script> | ||
<script src="script.js"></script> | ||
<script type="module" src="script.js"></script> | ||
<script type="module" src="adventureData.js"></script> | ||
</body> | ||
</html> |
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