Skip to content

Commit

Permalink
update: Wed 24 Jul 2024 20:52:23 CEST
Browse files Browse the repository at this point in the history
  • Loading branch information
cophilot committed Jul 24, 2024
1 parent e921a60 commit 68ee853
Show file tree
Hide file tree
Showing 14 changed files with 95 additions and 20 deletions.
2 changes: 2 additions & 0 deletions .templates/game/$$name.k$$/definition.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ export default function getDefinition() {
//fontColor: '#000',
//primaryColor: '#fff',
//secondaryColor: '#000',
// fontFamily: FontUtils.PLAYFUL,
// stripColor: '#000',
playerSizes: [1, 2, 3, 4],
winMode: WinMode.MOST,
rows: [
Expand Down
8 changes: 8 additions & 0 deletions .templates/game/$$name.k$$/main.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import getDefinition from './definition';
import $$name.p$$View from './View';

const $$name.p$$ = {
view: $$name.p$$View,
definition: getDefinition(),
};
export default $$name.p$$;
4 changes: 4 additions & 0 deletions src/allGames.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ import Scout from './games/scout/main';
import SevenWondersDuel from './games/seven-wonders-duel/main';
import TerraformingMars from './games/terraforming-mars/main';
import Wizard from './games/wizard/main';
import Wingspan from './games/wingspan/main';
import ForestShuffle from './games/forest-shuffle/main';

export default function getAllGames() {
return [
Expand All @@ -19,5 +21,7 @@ export default function getAllGames() {
SevenWondersDuel,
TerraformingMars,
Wizard,
Wingspan,
ForestShuffle,
];
}
43 changes: 32 additions & 11 deletions src/games/forest-shuffle/definition.ts
Original file line number Diff line number Diff line change
@@ -1,22 +1,43 @@
import { WinMode } from '../../api/types/WinMode';

import cardIcon from './assets/card.png';
import topIcon from './assets/top.png';
import downIcon from './assets/down.png';
import leftIcon from './assets/left.png';
import rightIcon from './assets/right.png';
import caveIcon from './assets/cave.png';
export default function getDefinition() {
return {
title: 'ForestShuffle',
//bgColor: '#fff',
//fontColor: '#000',
//primaryColor: '#fff',
//secondaryColor: '#000',
playerSizes: [1, 2, 3, 4],
title: 'Forest Shuffle',
bgColor: '#dce2c9',
fontColor: '#315a39',
primaryColor: '#bbad86',
secondaryColor: '#b11917',
playerSizes: [2, 3, 4, 5],
winMode: WinMode.MOST,
rows: [
{
name: 'Row1',
name: 'Tree',
icon: cardIcon,
},

{
name: 'Row2',
icon: 'src/games/forest-shuffle/assets/test.png',
name: 'Cards on top',
icon: topIcon,
},
{
name: 'Cards on right',
icon: rightIcon,
},
{
name: 'Cards below',
icon: downIcon,
},
{
name: 'Cards on left',
icon: leftIcon,
},
{
name: 'Cave',
icon: caveIcon,
},
],
};
Expand Down
8 changes: 8 additions & 0 deletions src/games/forest-shuffle/main.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import getDefinition from './definition';
import ForestShuffleView from './View';

const ForestShuffle = {
view: ForestShuffleView,
definition: getDefinition(),
};
export default ForestShuffle;
Empty file removed src/games/wingspan/assets/.gitkeep
Empty file.
Binary file added src/games/wingspan/assets/bird.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/wingspan/assets/bonus.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/wingspan/assets/eggs.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/wingspan/assets/resources.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/wingspan/assets/round-goals.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/wingspan/assets/tucked-card.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
42 changes: 33 additions & 9 deletions src/games/wingspan/definition.ts
Original file line number Diff line number Diff line change
@@ -1,22 +1,46 @@
import { WinMode } from '../../api/types/WinMode';
import FontUtils from '../../api/utils/FontUtils';
import eggIcon from './assets/eggs.png';
import resourceIcon from './assets/resources.png';
import roundGoalIcon from './assets/round-goals.png';
import bonusIcon from './assets/bonus.png';
import tuckedCardIcon from './assets/tucked-card.png';
import birdIcon from './assets/bird.png';

export default function getDefinition() {
return {
title: 'Wingspan',
//bgColor: '#fff',
//fontColor: '#000',
//primaryColor: '#fff',
//secondaryColor: '#000',
playerSizes: [1, 2, 3, 4],
bgColor: '#f4f5f0',
fontColor: '#73645b',
primaryColor: '#9fcccf',
secondaryColor: '#73645b', //73645b
playerSizes: [1, 2, 3, 4, 5],
fontFamily: FontUtils.PLAYFUL,
winMode: WinMode.MOST,
rows: [
{
name: 'Row1',
name: 'Birds',
icon: birdIcon,
},
{
name: 'Bonus cards',
icon: bonusIcon,
},
{
name: 'End-of-round goals',
icon: roundGoalIcon,
},
{
name: 'Eggs on cards',
icon: eggIcon,
},
{
name: 'Food on cards',
icon: resourceIcon,
},

{
name: 'Row2',
icon: 'src/games/wingspan/assets/test.png',
name: 'Tucked cards',
icon: tuckedCardIcon,
},
],
};
Expand Down
8 changes: 8 additions & 0 deletions src/games/wingspan/main.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import getDefinition from './definition';
import WingspanView from './View';

const Wingspan = {
view: WingspanView,
definition: getDefinition(),
};
export default Wingspan;

0 comments on commit 68ee853

Please sign in to comment.