import Game from './components/Game.tsx'; import { ToastContainer } from 'react-toastify'; import a16zImg from '../assets/a16z.png'; import convexImg from '../assets/convex.svg'; import starImg from '../assets/star.svg'; import helpImg from '../assets/help.svg'; // import { UserButton } from '@clerk/clerk-react'; // import { Authenticated, Unauthenticated } from 'convex/react'; // import LoginButton from './components/buttons/LoginButton.tsx'; import { useState } from 'react'; import ReactModal from 'react-modal'; import MusicButton from './components/buttons/MusicButton.tsx'; import Button from './components/buttons/Button.tsx'; import InteractButton from './components/buttons/InteractButton.tsx'; import FreezeButton from './components/FreezeButton.tsx'; import { MAX_HUMAN_PLAYERS } from '../convex/constants.ts'; import PoweredByConvex from './components/PoweredByConvex.tsx'; import OAuthLogin from './components/buttons/OAuthLogin.tsx'; export default function Home() { const [helpModalOpen, setHelpModalOpen] = useState(false); return (
setHelpModalOpen(false)} style={modalStyles} contentLabel="Help modal" ariaHideApp={false} >

Help

Welcome to Matou Garou. To play, you have to be logged in{' '} as player.

Spectating

Click and drag to move around the village, and scroll in and out to zoom. You can click on an individual character to view its chat history.

Playing

If you log in, you can join the game and directly interact with different characters! After logging in, click the "Play" button, and your character will appear somewhere in the village with a highlighted circle underneath you.

Controls:

Click to navigate around.

To talk to a character, click on them and then click "Start conversation," which will ask them to start walking towards you. Once they're nearby, the conversation will start, and you can speak to each other. You can leave at any time by closing the conversation pane or moving away. They may propose a conversation to you - you'll see a button to accept in the messages panel.

Rules

When the game starts, players will be assigned roles randomly (team Villagers and team Matou Garou). The primary objective is to vote against another team to kick them out of the game (the game ends once there's no members left of one of the teams). The bonus objective is to discover which players are actually powered by an LLM (you can vote at any moment even if your character was kicked out).

Matou Garou only supports {MAX_HUMAN_PLAYERS} human players at a time. If you're idle for five minutes, you'll be automatically removed from the game.

); } const modalStyles = { overlay: { backgroundColor: 'rgb(0, 0, 0, 75%)', zIndex: 12, }, content: { top: '50%', left: '50%', right: 'auto', bottom: 'auto', marginRight: '-50%', transform: 'translate(-50%, -50%)', maxWidth: '50%', border: '10px solid rgb(23, 20, 33)', borderRadius: '0', background: 'rgb(35, 38, 58)', color: 'white', fontFamily: '"Upheaval Pro", "sans-serif"', }, };