Open-source interactive fiction engine, powered by React, Redux and TypeScript. _ https://discoteque.pub/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

24 lines
631 B

import React, { FC } from 'react';
import cn from 'classnames';
import styles from './Menu.styles';
type Props = {
startGame: () => void;
loadGame: () => void;
}
const Menu: FC<Props> = ({ startGame, loadGame }) => (
<>
<div className={styles.menuTitle}>
<h1>
Discoteque Demo <br />
<small>Interactive fiction system with light RPG elements</small>
</h1>
</div>
<button className={cn(styles.menuItem, styles.start)} onClick={startGame}>Start Game</button>
<button className={cn(styles.menuItem, styles.load)} onClick={loadGame}>Load Game</button>
</>
);
export default Menu;