remove canvas requirement for camera

This commit is contained in:
Zutatensuppe 2021-04-17 19:01:56 +02:00
parent f5f08be505
commit 7c9ced4a22
2 changed files with 3 additions and 20 deletions

View file

@ -408,7 +408,7 @@ async function main() {
// initialize some view data
// this global data will change according to input events
const viewport = new Camera(canvas)
const viewport = new Camera()
// center viewport
viewport.move(
-(TABLE_WIDTH - viewport.width) /2,