Hacker News new | comments | show | ask | jobs | submit login

> 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.

Guidelines | FAQ | Support | API | Security | Lists | Bookmarklet | DMCA | Apply to YC | Contact