Jump to content
This forum will be closing down. Please move to the respective dedicated project forums.

erase bitmap using the mouse


pranadevil
 Share

Recommended Posts

I think a place to start is here

http://phaser.io/examples/v2/create/gen-paint

 

You could have a number of predrawn images that you load (your levels) with the goal to clear them out by clicking the mouse. I don't know about using an arbitrary BMP file. Given that the sizes of these are at least of order 100x100, that's 10,000 clicks just to clear ONE image. I don't think this is feasible for a game. 

 

The percentage clear would be the total number of pixels with the "clear" color (white or grey or whatever) divided by the total pixels. 

Link to comment
Share on other sites

whats this?? var coinURI = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAgAElEQVR4Xtx9B3xc1ZX+N72PZkaj3qtlFUtyw8aAjQFjWigJhISakIRNA5LNpuymkE1hk2wSSEIIJISODRgwveNuy3KTLduyZau36b239/+d+6aqGExMwv7vj8Gamffe3PfOd08/5wrwf3B0v9C5EiJhBziuw2yJdCQ4QYfDEQUEEqhUSnDJe+I4/i+ZJAJwUUgk2KzViF0cx/XEOW5z3Ovvuej2Qff/wUdwxqYsOGNX+hgvtOP5

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...