COMI: Experimental actorHit implementation
|Reported by:||eriktorbjorn||Owned by:||eriktorbjorn|
|Game:||Monkey Island 3|
This is an attempt at implementing the missing "actor hit" opcode that's used by CoMI's ship-to-ship combat. I'm a bit uncertain about some of the implementation details, but it seems to work.
The basic idea is that I've added an "actor hit mode" to the AKOS costume renderer. When this is active, the renderer doesn't touch the screen. It just checks whether a given coordinate is covered by the costume. It should detect the hit even if the coordinate is masked or off-screen.
I've only implemented it for codec 1, but this seems to be enough for now.
The thing I'm most uncertain about is the part of the code where I set _actorHitX and _actorHitY. That's the result of trial-and-error, rather than any genuine understanding.
Ticket imported from: #754895. Ticket imported from: patches/353.