[ scummvm-Patches-754895 ] COMI: Experimental actorHit implementation
SourceForge.net
noreply at sourceforge.net
Sun Jun 15 17:10:39 CEST 2003
Patches item #754895, was opened at 2003-06-15 17:10
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=418822&aid=754895&group_id=37116
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Torbjörn Andersson (eriktorbjorn)
Assigned to: Nobody/Anonymous (nobody)
Summary: COMI: Experimental actorHit implementation
Initial Comment:
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.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=418822&aid=754895&group_id=37116
More information about the Scummvm-tracker
mailing list