Opened 21 years ago

Closed 21 years ago

Last modified 5 years ago

#8248 closed patch

COMI: Experimental actorHit implementation

Reported by: eriktorbjorn Owned by: eriktorbjorn
Priority: normal Component: Engine: SCUMM
Version: Keywords:
Cc: Game: Monkey Island 3

Description

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.

Attachments (2)

actor-hit.diff (5.7 KB ) - added by eriktorbjorn 21 years ago.
Patch against a June 14 CVS snapshot
comi.s45.gz (56.1 KB ) - added by eriktorbjorn 21 years ago.
Savegame with a decent set of cannons

Download all attachments as: .zip

Change History (5)

by eriktorbjorn, 21 years ago

Attachment: actor-hit.diff added

Patch against a June 14 CVS snapshot

by eriktorbjorn, 21 years ago

Attachment: comi.s45.gz added

Savegame with a decent set of cannons

comment:1 by eriktorbjorn, 21 years ago

Owner: set to eriktorbjorn
Status: newclosed

comment:2 by eriktorbjorn, 21 years ago

Committed after some discussion with Endy.

comment:3 by digitall, 5 years ago

Component: Engine: SCUMM
Game: Monkey Island 3
Note: See TracTickets for help on using tickets.