diff --git a/README.md b/README.md index 7431ddc..14e07af 100644 --- a/README.md +++ b/README.md @@ -62,8 +62,8 @@ There are other commands implemented as well, e.g. for changing the brightness. - runs all game logic - sends image and text to the service point display - sends image to clients -- currently, the game has a fixed tick and frame rate of 25/s -- One frame is ~7KB, not including the text +- The game has a dynamic update rate. Hundreds of updates per second on a laptop are expected. +- One frame is ~7KB, not including the text and player specific data - maps can be loaded from png files containing black and white pixels or simple text files - some values (like tank speed) can be configured but are fixed at run time diff --git a/tank-frontend/src/App.tsx b/tank-frontend/src/App.tsx index 6a54b4c..b805877 100644 --- a/tank-frontend/src/App.tsx +++ b/tank-frontend/src/App.tsx @@ -1,3 +1,5 @@ +import {useState} from 'react'; + import ClientScreen from './ClientScreen'; import Controls from './Controls.tsx'; import JoinForm from './JoinForm.tsx'; @@ -7,23 +9,22 @@ import Row from './components/Row.tsx'; import Scoreboard from './Scoreboard.tsx'; import Button from './components/Button.tsx'; import MapChooser from './MapChooser.tsx'; +import {ThemeProvider} from './theme.tsx'; import './App.css'; -import {ThemeContext, getRandomTheme, useStoredTheme} from './theme.ts'; -import {useState} from 'react'; +import ThemeChooser from './ThemeChooser.tsx'; export default function App() { - const [theme, setTheme] = useStoredTheme(); const [name, setName] = useState(null); - return + return

CCCB-Tanks!

- -