jbilcke-hf HF staff commited on
Commit
2f0f4c5
1 Parent(s): 6a7b7ca

added two new styles

Browse files
src/app/games/index.ts CHANGED
@@ -8,9 +8,11 @@ import { game as vernian } from "./vernian"
8
  import { game as enchanters } from "./enchanters"
9
  import { game as flamenco } from "./flamenco"
10
  import { game as pharaoh } from "./pharaoh"
 
 
11
 
12
- export const games = { pirates, city, dungeon, doom, vernian, enchanters, flamenco, pharaoh}
13
 
14
- export const defaultGame: GameType = "enchanters"
15
 
16
  export const getGame = (type?: GameType) => games[type || defaultGame] || games[defaultGame]
 
8
  import { game as enchanters } from "./enchanters"
9
  import { game as flamenco } from "./flamenco"
10
  import { game as pharaoh } from "./pharaoh"
11
+ import { game as tensor } from "./tensor"
12
+ import { game as nexus } from "./nexus"
13
 
14
+ export const games = { pirates, city, dungeon, doom, vernian, enchanters, flamenco, pharaoh, tensor, nexus}
15
 
16
+ export const defaultGame: GameType = "tensor"
17
 
18
  export const getGame = (type?: GameType) => games[type || defaultGame] || games[defaultGame]
src/app/games/nexus.ts ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import { macondo } from "@/lib/fonts"
2
+ import { Game } from "./types"
3
+
4
+ const initialSituation = [
5
+ `first-person view of a futuristic street`,
6
+ `looking at a flying chinese Junk ship powered by rockets`,
7
+ `huge led screen advertising on the skyscrappers`,
8
+ `heavy rain, soft haze, holograms`
9
+ ].join(", ")
10
+
11
+ const initialActionnables = [
12
+ "car",
13
+ "face",
14
+ "person",
15
+ "building",
16
+ "sidewalk",
17
+ "spaceship",
18
+ "object",
19
+ "window",
20
+ "floor",
21
+ "door"
22
+ ]
23
+
24
+ export const game: Game = {
25
+ title: "Nexus",
26
+ type: "nexus",
27
+ engine: "spherical_image",
28
+ className: macondo.className,
29
+ initialSituation,
30
+ initialActionnables,
31
+ getScenePrompt: (situation?: string) => [
32
+ `high-res photo from Blade Runner`,
33
+ `cyberpunk, tokyo, futuristic clothes`,
34
+ `at night, neon lights, rain and flying cars seen from afar`,
35
+ situation || initialSituation,
36
+ ]
37
+ }
38
+
src/app/games/tensor.ts ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import { macondo } from "@/lib/fonts"
2
+ import { Game } from "./types"
3
+
4
+ const initialSituation = [
5
+ `in Martin Place, Sydney`,
6
+ `side walk, few pedestrians`,
7
+ `a person in leather coat and with sunglasses`,
8
+ `business city district and buildings`,
9
+ ].join(", ")
10
+
11
+ const initialActionnables = [
12
+ "car",
13
+ "face",
14
+ "person",
15
+ "building",
16
+ "sidewalk",
17
+ "trash bin",
18
+ "object",
19
+ "window",
20
+ "floor",
21
+ "door"
22
+ ]
23
+
24
+ export const game: Game = {
25
+ title: "The Tensor",
26
+ type: "tensor",
27
+ engine: "spherical_image",
28
+ className: macondo.className,
29
+ initialSituation,
30
+ initialActionnables,
31
+ getScenePrompt: (situation?: string) => [
32
+ `first person photo`,
33
+ `cold design, modern architecture, business district, impersonal`,
34
+ situation || initialSituation,
35
+ ]
36
+ }
37
+
src/app/games/types.ts CHANGED
@@ -1,6 +1,16 @@
1
  import { EngineType } from "../engines"
2
 
3
- export type GameType = "pirates" | "city" | "dungeon" | "doom" | "vernian" | "enchanters" | "pharaoh" | "flamenco"
 
 
 
 
 
 
 
 
 
 
4
 
5
  export interface Scene {
6
  actionnables: string[]
 
1
  import { EngineType } from "../engines"
2
 
3
+ export type GameType =
4
+ | "pirates"
5
+ | "city"
6
+ | "dungeon"
7
+ | "doom"
8
+ | "vernian"
9
+ | "enchanters"
10
+ | "pharaoh"
11
+ | "flamenco"
12
+ | "tensor"
13
+ | "nexus"
14
 
15
  export interface Scene {
16
  actionnables: string[]
src/app/queries/getActionnables.ts CHANGED
@@ -31,8 +31,8 @@ export const getActionnables = async ({
31
  content: [
32
  `You are an API endpoint that can return a list of objects visible in the background image of a role playing game.`,
33
  basePrompt,
34
- `You must list ten (10) basic names of visible objects (eg. "door", "person", "window", "light", "knob", "button", "rock", "tree", "parrot", "chest", "glass".. etc) but don't list any word from abstract or immaterial concepts (ig. don't list words like "secret", "danger", "next move", "game" etc)`,
35
- `The answer must be a JSON array, ie. a list of 10 quoted strings.`
36
  ].filter(item => item).join("\n")
37
  },
38
  {
@@ -86,7 +86,7 @@ export const getActionnables = async ({
86
  "table",
87
  "ground",
88
  "sky",
89
- "box",
90
  "tree",
91
  "wall",
92
  "floor"
 
31
  content: [
32
  `You are an API endpoint that can return a list of objects visible in the background image of a role playing game.`,
33
  basePrompt,
34
+ `You must list twelve (12) basic names of visible objects (eg. "door", "person", "window", "light", "floor", "knob", "button", "rock", "tree", "parrot", "chest", "glass".. etc) but don't list any word from abstract or immaterial concepts (ig. don't list words like "secret", "danger", "next move", "game" etc)`,
35
+ `The answer must be a JSON array, ie. a list of 12 quoted strings.`
36
  ].filter(item => item).join("\n")
37
  },
38
  {
 
86
  "table",
87
  "ground",
88
  "sky",
89
+ "object",
90
  "tree",
91
  "wall",
92
  "floor"
src/{app/games → lib}/pick.ts RENAMED
File without changes