haxegon / zeedonk

Haxegon + Puzzlescript = Zeedonk!
http://www.zeedonk.net
12 stars 2 forks source link

this is flashing the whole screen red for one frame - what am I doing wrong? #228

Closed increpare closed 9 years ago

increpare commented 9 years ago
Gfx.createimage("pic",10,10);
Gfx.drawtoimage("pic");
Gfx.clearscreen(Col.RED);
Gfx.drawtoscreen();

function update(){
  Gfx.drawimage(0,0,"pic");
}
TerryCavanagh commented 9 years ago

Oh, this is because clearscreen is still only applying to the backbuffer, instead of the current surface. Fixing that now!

increpare commented 9 years ago

yay! thanks!

TerryCavanagh commented 9 years ago

Hmm, you'll have to recompile for this one too, I guess. Why is that? PuzzleScript\terrylibweb\bin\html5\bin\webthing.js isn't in the gitignore (although the old PuzzleScript/webthing.js is)

increpare commented 9 years ago

hmm. i don't know.

increpare commented 9 years ago

are you sure the code example above works for you now? it's not working for me

increpare commented 9 years ago

(now i just get a black screen)

TerryCavanagh commented 9 years ago

Oh! Sorry, try again!

increpare commented 9 years ago

👍🏽