Skip to content

Commit

Permalink
add web support
Browse files Browse the repository at this point in the history
  • Loading branch information
rdev32 committed Dec 31, 2023
1 parent d9219f7 commit 45b0d10
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@ class Environment {
setInterval(() => {
this.clean()
this.draw()
}, 1000 / 10);
}, 1000 / 30);
}

async setup() {
this.canvas.width = SCREEN_WIDTH
this.canvas.height = SCREEN_HEIGHT
this.picture = new Image
this.picture.src = './assets/logo.png'
this.picture.src = 'https://github.com/rdev32/powerdvd-web/blob/main/assets/logo.png?raw=true'

this.position.x = this.getRandomInt(SCREEN_WIDTH)
this.position.y = this.getRandomInt(SCREEN_HEIGHT)
Expand Down

0 comments on commit 45b0d10

Please sign in to comment.