Disappearing things


everything is black

How'd you do that?

Maybe I used too much clones...
and stuck the ide in a megaton of load sprites

No problem here... what is the problem ?

function fillLoop() {
  requestAnimationFrame(fillLoop);
  const canvas = document.getElementById('world');
  const ctx = canvas.getContext('2d');
  ctx.fillRect(0, 0, canvas.width, canvas.height);
}
requestAnimationFrame(fillLoop);

If you do this you will geta black screen instead of a black canvas

Fixed.

I didn't run this code...

Résumé

Or

I like april fool

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.