Skip to content

Commit

Permalink
outofcontext.party games (#99)
Browse files Browse the repository at this point in the history
* add outofcontext party games

* add folding story to the based on
  • Loading branch information
Meshiest authored Oct 27, 2024
1 parent 592aa64 commit 85218bb
Show file tree
Hide file tree
Showing 2 changed files with 121 additions and 0 deletions.
6 changes: 6 additions & 0 deletions config/categories.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,12 @@
"color": "black",
"backgroundColor": "BurlyWood"
},
{
"id": "writing",
"name": "✍️ Writing",
"color": "black",
"backgroundColor": "Turquoise"
},
{
"id": "netgamesio",
"name": "💎 netgames.io",
Expand Down
115 changes: 115 additions & 0 deletions config/games/outofcontextparty.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,115 @@
import { ServerGame } from "../../types/types";
import { postJson } from "../../utils/utils";

const gameTemplate = (
game: string,
{
name,
description,
basedOn,
category,
players,
minPlayers,
familyFriendly,

Check failure on line 13 in config/games/outofcontextparty.ts

View workflow job for this annotation

GitHub Actions / build

Property 'familyFriendly' does not exist on type 'Partial<ServerGame>'.
pictures,
}: Partial<ServerGame>
): ServerGame => ({
id: "ooc-" + game,
name: name,
author: "Isaac Hirschfeld",
basedOn,
description,
displayUrlText: "outofcontext.party",
displayUrlHref: "https://www.outofcontext.party/",
minPlayers,
maxPlayers: 255,
category,
players,
familyFriendly,

Check failure on line 28 in config/games/outofcontextparty.ts

View workflow job for this annotation

GitHub Actions / build

Object literal may only specify known properties, and 'familyFriendly' does not exist in type 'ServerGame'.
pictures,
connectToGame: async () => {
const origin = "https://outofcontext.party"; // "http://localhost:8080"; // (dev)
const { code } = await postJson(origin + "/api/v1/rocketcrab", {
game,
version: 1,
});
return {
player: { url: `${origin}/lobby/${code}` },
};
},
});

const games: Array<ServerGame> = [
gameTemplate("story", {
name: "Raconteur",
description: `Collaborate in writing stories one line at a time with
minimal context.
Raconteur is inspired by improv-type games where players
contribute to a story one sentence or one word at a time.
The idea is to create unique stories from a train of thought
going who knows where. Continuity is held only by the last line
in the story, so writing with ambiguity allows for more
interesting stories.`,
basedOn: {
game: "Consequences, FoldingStory",
link: "https://en.wikipedia.org/wiki/Consequences_(game)",
},
category: ["writing", "easy"],
minPlayers: 2,
players: "2+",
familyFriendly: true,

Check failure on line 61 in config/games/outofcontextparty.ts

View workflow job for this annotation

GitHub Actions / build

Object literal may only specify known properties, and 'familyFriendly' does not exist in type 'Partial<ServerGame>'.
pictures: [
"https://i.imgur.com/d3qNPi4.jpg",
"https://i.imgur.com/yd8klf4.jpg",
"https://i.imgur.com/gyCBqMh.jpg",
],
}),
gameTemplate("redacted", {
name: "Redacted",
description: `Collaborate in writing, tampering, and repairing
stories one line at a time.
Redacted is an extension upon Raconteur. Players still
contribute to a story, however now players are able to interact
with the lines other players have written. This game is meant to
be played after a familiarity with no context line-by-line
stories is established.`,
basedOn: null,
category: ["writing", "medium"],
minPlayers: 4,
players: "4+",
familyFriendly: true,

Check failure on line 82 in config/games/outofcontextparty.ts

View workflow job for this annotation

GitHub Actions / build

Object literal may only specify known properties, and 'familyFriendly' does not exist in type 'Partial<ServerGame>'.
pictures: [
"https://i.imgur.com/n4QYeLp.jpg",
"https://i.imgur.com/IQ6DAhF.jpg",
"https://i.imgur.com/urUahk6.jpg",
"https://i.imgur.com/QSX70Nv.jpg",
"https://i.imgur.com/vaIJQwM.jpg",
],
}),
gameTemplate("recipe", {
name: "Hodgepodge",
description: `Collaborate in splicing together recipes for anything.
Hodgepodge is fairly complicated in the sense that there is not a
single streamlined direction for each instruction set. Players
submit steps in a recipe following a theme, ingredients without
any context, and potential hazards without context. This mixture
of randomness and context tends to be awfully delicious.`,
basedOn: null,
category: ["writing", "medium"],
minPlayers: 2,
players: "2+",
familyFriendly: true,

Check failure on line 104 in config/games/outofcontextparty.ts

View workflow job for this annotation

GitHub Actions / build

Object literal may only specify known properties, and 'familyFriendly' does not exist in type 'Partial<ServerGame>'.
pictures: [
"https://i.imgur.com/IAC751C.jpg",
"https://i.imgur.com/BvdwE7v.jpg",
"https://i.imgur.com/Mezk17h.jpg",
"https://i.imgur.com/lkD8Xbf.jpg",
"https://i.imgur.com/a8jCj5t.jpg",
],
}),
];

export default games;

0 comments on commit 85218bb

Please sign in to comment.