Sample game made on Discoteque engine https://deiru.moe/disco/
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.
 
 
 
 

32 lines
788 B

import React, { useMemo, FC } from 'react';
import { Provider } from 'react-redux';
import { render } from 'react-dom';
import { injectGlobal } from 'emotion';
import Engine from 'discoteque/lib/engine/Engine';
import Playback from 'discoteque/lib/playback';
import font from "./assets/fonts/AnticSlab-Regular.woff2";
import config from '@/game';
injectGlobal`
@font-face {
font-family: 'Antic Slab Regular';
src: url(${font}) format('woff2');
} body {
font-family: 'Antic Slab Regular';
}
`;
const App: FC = () => {
const engine = useMemo(() => new Engine<any, any>(config), [config]);
return (
<Provider store={engine.store}>
<Playback engine={engine} />
</Provider>
)
};
render(<App />, document.getElementById('root'));