remove canvas requirement for camera
This commit is contained in:
parent
f5f08be505
commit
7c9ced4a22
2 changed files with 3 additions and 20 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue