Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding werewolf game to rocketcrab #97

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 43 additions & 0 deletions config/games/werewolfnight.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
import { ServerGame } from "../../types/types";
import { postJson } from "../../utils/utils";

const game: ServerGame = {
id: "werewolfnight",
name: "werewolf-night.com",
author: "Duc Ngo Viet",
duc-gp marked this conversation as resolved.
Show resolved Hide resolved
description: `Werewolf-night is an interactive deduction game for
two teams: the villagers and the werewolves.
While the villagers do not know who the werewolves are, the werewolves try to remain undiscovered
and eliminate one villager after the other.
one by one...`,
displayUrlText: "werewolf-night.com",
displayUrlHref: "https://werewolf-night.com/",
donationUrlText: "Buy ducci a coffee!",
donationUrlHref: "https://www.buymeacoffee.com/ducci",
guideUrl: "https://werewolf-night.com/roles",
pictures: [
"https://i.imgur.com/A7yqerc.jpg",
"https://i.imgur.com/He5amxk.jpg",
"https://i.imgur.com/96lH5JJ.jpg",
"https://i.imgur.com/17PUnb0.jpg",
],
category: ["hard"],
players: "5-16",
familyFriendly: true,
minPlayers: 5,
maxPlayers: 16,
connectToGame: async () => {
const newUrl = "https://werewolf.uber.space/newRoom";
const { gameCode } = await postJson(newUrl);
return {
player: {
url: "https://werewolf-night.com/game",
customQueryParams: {
roomId: gameCode,
},
},
};
},
};

export default game;