Explore
Sign up
Make games on your phone.
Get the app!
Android
iOS
Discord
Dweller
Sign up
Play in App
Sign up
Play in App
iOS
Android
Sign up
SmeakyPizza
614
7
4 Comments
Next up
SmeakyPizza
#mergetocreate
SmeakyPizza
43w
ADDING MORE NEW STUFF HIT 1K PLAYS FOR MORE DAILY UPDATES
1
Reply
warmwave
105w
this is literally the kit but only two recipes
1
Reply
SmeakyPizza
105w
const canvas = document.getElementById('gameCanvas'); const ctx = canvas.getContext('2d'); canvas.width = 800; canvas.height = 600; class Player { constructor() { this.x = canvas.width / 2; this.y = canvas.height / 2; this.size = 30; this.color = 'blue'; this.speed = 5; this.score = 0; } draw() { ctx.fillStyle = this.color; ctx.fillRect(this.x, this.y, this.size, this.size); } update() { if (keys['ArrowUp']) this.y -= this.speed; if (keys['ArrowDown']) this.y += this.speed; if (keys['ArrowLeft']) this.x -= this.speed; if (keys['ArrowRight']) this.x += this.speed; this.x = Math.max(0, Math.min(canvas.width - this.size, this.x)); this.y = Math.max(0, Math.min(canvas.height - this.size, this.y)); } } class Item { constructor() { this.size = 20; this.x = Math.random() * (canvas.width - this.size); this.y = Math.random() *
Reply
SmeakyPizza
105w
Heh?
Reply
Comment in the App