-
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.
Initial check in for working version
- Loading branch information
Showing
22 changed files
with
4,801 additions
and
121 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
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,4 @@ | ||
module.exports = { | ||
semi: false, | ||
trailingComma: "es5", | ||
} |
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,3 @@ | ||
{ | ||
"recommendations": ["dbaeumer.vscode-eslint"] | ||
} |
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,28 @@ | ||
# Getting Started with Rune | ||
|
||
### `npm run dev` | ||
|
||
Runs the game in Dev UI. | ||
|
||
The page will reload when you make changes. | ||
|
||
### `npm run upload` | ||
|
||
Builds the game and starts upload process to Rune. | ||
|
||
### `npm run build` | ||
|
||
Builds the game. You can then upload it to Rune using `npx rune-games-cli@latest upload`. | ||
|
||
### `npm run lint` | ||
|
||
Runs the validation rules. You can read about them in the [docs on server-side logic](https://developers.rune.ai/docs/advanced/server-side-logic). | ||
|
||
### `npm run typecheck` | ||
|
||
Verifies that TypeScript is valid. | ||
|
||
|
||
## Learn More | ||
|
||
See the [Rune docs](https://developers.rune.ai/docs/quick-start) for more info. You can also ask any questions in the [Rune Discord](https://discord.gg/rune-devs), we're happy to help! |
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 @@ | ||
import js from "@eslint/js" | ||
import prettier from "eslint-plugin-prettier/recommended" | ||
import globals from "globals" | ||
import runePlugin from "rune-sdk/eslint.js" | ||
import tseslint from "typescript-eslint" | ||
|
||
export default [ | ||
{ | ||
languageOptions: { | ||
globals: { | ||
...globals.browser, | ||
...globals.es2020, | ||
}, | ||
ecmaVersion: "latest", | ||
sourceType: "module", | ||
}, | ||
}, | ||
js.configs.recommended, | ||
...runePlugin.configs.recommended, | ||
...tseslint.configs.recommended, | ||
prettier, | ||
{ | ||
rules: { | ||
"prettier/prettier": "warn", | ||
}, | ||
}, | ||
] |
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,61 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<meta | ||
name="viewport" | ||
content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1" | ||
/> | ||
<title>Storyteller AI</title> | ||
</head> | ||
<body> | ||
<div id="page"> | ||
<div id="logo"> | ||
|
||
</div> | ||
<div id="players"> | ||
<img src="avatar" class="player ready"></img> | ||
<img src="avatar" class="player not-ready"></img> | ||
<img src="avatar" class="player not-ready"></img> | ||
<img src="avatar" class="player ready"></img> | ||
<img src="avatar" class="player ready"></img> | ||
</div> | ||
<div id="startScreen" class="screen enabled"> | ||
<div id="intro">Welcome to the game of Storyteller, where AI helps you create amazing tales.</div> | ||
<div id="startTheStory" class="storyButton"><span>Start</span></div> | ||
</div> | ||
|
||
<div id="thinkingScreen" class="screen off"> | ||
<div id="thinking">Storyteller AI is writing an epic....</div> | ||
</div> | ||
<div id="inputScreen" class="screen off"> | ||
<div id="textSection"> | ||
</div> | ||
<div id="playerInputControls"> | ||
<div id="error"></div> | ||
<input type="text" id="playerInput" placeholder="Enter story terms here"> | ||
</input> | ||
<div id="suggestions"> | ||
<div id="suggestionsLabel">SUGGESTIONS</div> | ||
<div id="suggestionsList"> | ||
</div> | ||
</div> | ||
<div id="addButton" class="storyButton"><span>Add</span></div> | ||
</div> | ||
<div id="waitingForOtherPlayers"> | ||
Waiting for other players... | ||
</div> | ||
</div> | ||
|
||
<div id="endScreen" class="screen off"> | ||
<div id="fullTextSection"> | ||
The creature paused, eyeing the <span class="term">rubber duck<img src="avatar" class="termAvatar"></span> at its feet when a telephone on the fountain rang. A familiar voice crackled through—britney spears singing softly, distorted and haunting. The crowd froze, unsure if they were more startled by the voice or the creature's sudden, intent gaze on the ringing phone. | ||
</div> | ||
<div id="shareButton" class="storyButton"><span>Share</span></div> | ||
|
||
</div> | ||
</div> | ||
<script type="module" src="/src/logic.ts"></script> | ||
<script type="module" src="/src/client.ts"></script> | ||
</body> | ||
</html> |
Oops, something went wrong.