Add script scheduler and pre/post visual effects system.
This commit is contained in:
parent
67c25d93cb
commit
98ae464ab9
6 changed files with 260 additions and 10 deletions
3
game.js
3
game.js
|
@ -67,7 +67,8 @@ window.addEventListener("load", async () => {
|
|||
fillRect: (ctx, x, y, w, h) => ctx.fillRect(x, y, w, h),
|
||||
fillText: (ctx, text, x, y) => ctx.fillText(text, x, y),
|
||||
drawImage: (ctx, image, sx, sy, sw, sh, dx, dy, dw, dh) => ctx.drawImage(image, sx, sy, sw, sh, dx, dy, dw, dh),
|
||||
setScale: (ctx, sx, sy) => ctx.scale(sx, sy),
|
||||
scale: (ctx, sx, sy) => ctx.scale(sx, sy),
|
||||
translate: (ctx, x, y) => ctx.translate(x, y),
|
||||
setTransform: (ctx, a, b, c, d, e, f) => ctx.setTransform(a, b, c, d, e, f),
|
||||
setImageSmoothingEnabled: (ctx, enabled) => ctx.imageSmoothingEnabled = (enabled == 1)
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue