Skip to content

Commit

Permalink
added faraway
Browse files Browse the repository at this point in the history
  • Loading branch information
cophilot committed Oct 21, 2024
1 parent a8f703e commit dfdceac
Showing 14 changed files with 83 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .templates/Game/definition.ts
Original file line number Diff line number Diff line change
@@ -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',
2 changes: 2 additions & 0 deletions src/allGames.ts
Original file line number Diff line number Diff line change
@@ -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,
];
}

6 changes: 6 additions & 0 deletions src/games/faraway/View.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import GameView from '../../components/GameView';
import getDefinition from './definition';

export default function FarawayView() {
return <GameView definition={getDefinition()} />;
}
Binary file added src/games/faraway/assets/1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/games/faraway/assets/2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/games/faraway/assets/3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/games/faraway/assets/4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/games/faraway/assets/5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/games/faraway/assets/6.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/games/faraway/assets/7.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/games/faraway/assets/8.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/games/faraway/assets/sanctuary.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
66 changes: 66 additions & 0 deletions src/games/faraway/definition.ts
Original file line number Diff line number Diff line change
@@ -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,
},
],
};
}
8 changes: 8 additions & 0 deletions src/games/faraway/main.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import getDefinition from './definition';
import FarawayView from './View';

const Faraway = {
view: FarawayView,
definition: getDefinition(),
};
export default Faraway;

0 comments on commit dfdceac

Please sign in to comment.