Hacker Newsnew | comments | show | ask | jobs | submitlogin

> Nor can you detect a collision between the opaque regions of two png images (this is needed for most simple 2-d games)

Crazy idea. At the start of the game use the server to determine the image's boundary, then send the info up to the client and get Javascript to use that pre-calculated boundary to detect a collision rather than getting Javascript to try and look inside the png.




Applications are open for YC Summer 2015

Guidelines | FAQ | Support | Lists | Bookmarklet | DMCA | Y Combinator | Apply | Contact

Search: