diff --git a/.templates/Game/definition.ts b/.templates/Game/definition.ts index 759668e..6ffa51b 100644 --- a/.templates/Game/definition.ts +++ b/.templates/Game/definition.ts @@ -3,7 +3,7 @@ import { WinMode } from '../../api/types/WinMode'; export default function getDefinition(): GameDef { return { - title: '$$name$$', + title: '$$name.p$$', //url: '', //bgColor: '#fff', //fontColor: '#000', diff --git a/src/allGames.ts b/src/allGames.ts index 9d48385..b1bb586 100644 --- a/src/allGames.ts +++ b/src/allGames.ts @@ -12,6 +12,7 @@ import ForestShuffle from './games/forest-shuffle/main'; import WorldWonders from './games/world-wonders/main'; import SeaSaltPaper from './games/sea-salt-paper/main'; import SpiritsOfTheWild from './games/spirits-of-the-wild/main'; +import Faraway from './games/faraway/main'; export function getAllGames() { return [ @@ -29,6 +30,7 @@ export function getAllGames() { ForestShuffle, SeaSaltPaper, SpiritsOfTheWild, + Faraway, ]; } diff --git a/src/games/faraway/View.tsx b/src/games/faraway/View.tsx new file mode 100644 index 0000000..535cd44 --- /dev/null +++ b/src/games/faraway/View.tsx @@ -0,0 +1,6 @@ +import GameView from '../../components/GameView'; +import getDefinition from './definition'; + +export default function FarawayView() { + return ; +} diff --git a/src/games/faraway/assets/1.png b/src/games/faraway/assets/1.png new file mode 100644 index 0000000..1c993ba Binary files /dev/null and b/src/games/faraway/assets/1.png differ diff --git a/src/games/faraway/assets/2.png b/src/games/faraway/assets/2.png new file mode 100644 index 0000000..b4f5df2 Binary files /dev/null and b/src/games/faraway/assets/2.png differ diff --git a/src/games/faraway/assets/3.png b/src/games/faraway/assets/3.png new file mode 100644 index 0000000..03470e5 Binary files /dev/null and b/src/games/faraway/assets/3.png differ diff --git a/src/games/faraway/assets/4.png b/src/games/faraway/assets/4.png new file mode 100644 index 0000000..fda4b17 Binary files /dev/null and b/src/games/faraway/assets/4.png differ diff --git a/src/games/faraway/assets/5.png b/src/games/faraway/assets/5.png new file mode 100644 index 0000000..e39081b Binary files /dev/null and b/src/games/faraway/assets/5.png differ diff --git a/src/games/faraway/assets/6.png b/src/games/faraway/assets/6.png new file mode 100644 index 0000000..141c251 Binary files /dev/null and b/src/games/faraway/assets/6.png differ diff --git a/src/games/faraway/assets/7.png b/src/games/faraway/assets/7.png new file mode 100644 index 0000000..4e5c873 Binary files /dev/null and b/src/games/faraway/assets/7.png differ diff --git a/src/games/faraway/assets/8.png b/src/games/faraway/assets/8.png new file mode 100644 index 0000000..8516be9 Binary files /dev/null and b/src/games/faraway/assets/8.png differ diff --git a/src/games/faraway/assets/sanctuary.png b/src/games/faraway/assets/sanctuary.png new file mode 100644 index 0000000..5d18401 Binary files /dev/null and b/src/games/faraway/assets/sanctuary.png differ diff --git a/src/games/faraway/definition.ts b/src/games/faraway/definition.ts new file mode 100644 index 0000000..114c1af --- /dev/null +++ b/src/games/faraway/definition.ts @@ -0,0 +1,66 @@ +import { GameDef } from '../../api/types/GameDef'; +import { WinMode } from '../../api/types/WinMode'; +import img1 from './assets/1.png'; +import img2 from './assets/2.png'; +import img3 from './assets/3.png'; +import img4 from './assets/4.png'; +import img5 from './assets/5.png'; +import img6 from './assets/6.png'; +import img7 from './assets/7.png'; +import img8 from './assets/8.png'; +import sanctuary from './assets/sanctuary.png'; + +export default function getDefinition(): GameDef { + return { + title: 'Faraway', + url: 'https://boardgamegeek.com/boardgame/385761/faraway', + rulesUrl: + 'https://s3.amazonaws.com/geekdo-files.com/bgg362694?response-content-disposition=inline%3B%20filename%3D%22Faraway-rules-EN.pdf%22&response-content-type=application%2Fpdf&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAJYFNCT7FKCE4O6TA%2F20241021%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20241021T060703Z&X-Amz-SignedHeaders=host&X-Amz-Expires=120&X-Amz-Signature=07f156062feedbf209ca1e84f1bb1f24fbf281d126aa6f4014551f1600adfd5e', + bgColor: '#fdfcfb', + fontColor: '#000', + primaryColor: '#53315e', + secondaryColor: '#edd406', + //fontFamily: FontUtils.PLAYFUL, + stripeColor: '#f8f4ee', + playerSizes: [2, 3, 4, 5, 6], + winMode: WinMode.MOST, + rows: [ + { + name: 'Card 1', + icon: img1, + }, + { + name: 'Card 2', + icon: img2, + }, + { + name: 'Card 3', + icon: img3, + }, + { + name: 'Card 4', + icon: img4, + }, + { + name: 'Card 5', + icon: img5, + }, + { + name: 'Card 6', + icon: img6, + }, + { + name: 'Card 7', + icon: img7, + }, + { + name: 'Card 8', + icon: img8, + }, + { + name: 'Sanctuary', + icon: sanctuary, + }, + ], + }; +} diff --git a/src/games/faraway/main.ts b/src/games/faraway/main.ts new file mode 100644 index 0000000..f4714f6 --- /dev/null +++ b/src/games/faraway/main.ts @@ -0,0 +1,8 @@ +import getDefinition from './definition'; +import FarawayView from './View'; + +const Faraway = { + view: FarawayView, + definition: getDefinition(), +}; +export default Faraway;