Collision detection is usually difficult for anything but rectangles.
The way I did this in the past is to provide both an image and a mask for each object. So, for example, an object such as the Jupiter 2 spaceship from Lost in Space will have the following image and mask:
X 00000100000
XXXXXXX 00111111100
X X 01111111110
X X 11111111111
X X 01111111110
XXXXXXX 00111111100
XXX 00001110000
- , , - , . , 1 - .
:
- , . , .
- 1, .
- 2, .
- - 2 1.
- 1 1 , .
" ", , . - .
, - :
....xx....
..xx..xx..
.x......x.
.x......x.
x........x
x........x
.x......x.
.x......x.
..xx..xx..
....xx.**y.....
.y......
yyyyyyyy
.y......
..y.....
, , (. **y), . , , .
@kyoryu . , , ( ). , ( ) X Y , Z:
YYYY .Z.
YYYY .Z.
XXXXXXXXXXXX .Z.
XXXXXXXXXXXX ZZZ
XXXXXXXXXXXX .Z.
XXXXXXXXXXXX
. , , . ( , ).