2015년 1월 1일 목요일

Is it possible to detect collision base on pixel color?

If possible, please give me an advice and sorry for my bad English.
I'm now creating a game like Tron, and in this game sprites' locus are drown as lines.
And when the player touches lines the player loses, no matter it was locus of  his or CPU's.
I succeeded in drawing the sprite's locus on Canvas but struggling with way to detect collision based on color of locus drawn.
I'd be very glad for your help.



댓글 없음:

댓글 쓰기