An open API service indexing awesome lists of open source software.

https://github.com/starweb-libs/engine

A lightweight 2D game engine for the browser
https://github.com/starweb-libs/engine

2d browser canvas game-engine starweb typescript

Last synced: 1 day ago
JSON representation

A lightweight 2D game engine for the browser

Awesome Lists containing this project

README

          

# Starweb Engine

A lightweight 2D game engine for the browser, built with TypeScript and the Web Audio / Canvas APIs.

## Tech Stack





## Modules
| Module | Description |
| ------ | ----------- |
| `canvas` | Fullscreen canvas setup with resize handling |
| `update` | Fixed or variable timestep game loop |
| `assets` | Image loading and tinting |
| `input/keyboard` | Per-frame keyboard state |
| `input/pointer` | Per-frame pointer/mouse state with canvas scaling |
| `validate` | JSON validation helpers and error collector |

## Installation
```bash
npm install github:starweb-libs/engine
```

## License
MIT License - see [LICENSE](./LICENSE) for details.