Buffer every sound asset

This commit is contained in:
LoveEevee
2018-09-11 01:17:13 +03:00
parent 66b0924252
commit 0feb31227a
17 changed files with 510 additions and 506 deletions

View File

@@ -4,10 +4,9 @@ class View{
this.bg = bg
this.diff = diff
this.winW = $(window).width()
this.winH = $(window).height()
this.canvas = new ScalableCanvas("canvas", this.winW, this.winH)
this.canvas = new ScalableCanvas("canvas", $(window).width(), $(window).height())
this.winW = this.canvas.scaledWidth
this.winH = this.canvas.scaledHeight
this.ctx = this.canvas.ctx
this.taikoSquareW = this.winW / 4