Okay
I have found a game idea. But i need to set my mind about development steps.
So the main game idea is 2 players painting (drawing) on screen. so they will try to paint more than each other.
I couldn't found any example about freely drawing on screen (without physics.)
But after that i need to calculate at the end of the game who has painted most of the screen?
only idea i got so far is that -if it's possible with gideros- i should take a screenshot at the end of the game. and then look at all pixels one by one. get their colors and count them.
So is it possible?
Or can anyone point me to another direction?
Comments
The first would be to use render to texture (which doesn't exist yet) where by you fill pixels directly in a texture which is the size of the screen, you can then do a simple check to see how much of each colour exists.
Alternatively - you could track multiple touches and create a "Shape" for each player, which is dynamically updated each frame (using the :lineTo() method), you'd then have to analyse the shape at the end of the game to see who's shape was the biggest.
#MakeABetterGame! "Never give up, Never NEVER give up!" - Winston Churchill
sorry to hear that the first function is not availeble.
You can dynamically add to a shape as you play the game - or you could keep a list of all shapes created by each player.
#MakeABetterGame! "Never give up, Never NEVER give up!" - Winston Churchill
http://www.giderosmobile.com/forum/discussion/comment/5751
#MakeABetterGame! "Never give up, Never NEVER give up!" - Winston Churchill
http://www.giderosmobile.com/forum/discussion/1135/mobile-server#Item_10
i'm a horrible programmer.
now let me go, i will cry at somewhere...