Personal starting point for HTML5 Canvas projects.
We use TypeScript and compile to JavaScript using Webpack.
npx webpack
- Continous drawing via
requestAnimationFrame
- Entity object uses event loop -> Update, Display
To use the repository as a template, you can add remote template and merge updates.
git remote add template https://github.com/Jagermeister/html5-canvas-template.git
git fetch --all
git merge template/main --allow-unrelated-histories