Jump to content


Photo

Modified sprite-drawing code


  • Please log in to reply
1 reply to this topic

#1 IRF

IRF

    Advanced Member

  • Contributor
  • 3,611 posts

Posted 08 November 2017 - 01:32 AM

In original JSW, at the instant when Willy collides with a guardian, that guardian is only drawn as far the graphical byte which collided with Willy. Furthermore, all guardians that appear subsequently in the current room's guardian list are not drawn at all in that moment. (That latter point means that composite guardians - for example the three-part Evil Priest Head or the Attic Centipede - are rendered incompletely at the time of Willy's collision with one component part of them*.)

In the attached file, all the guardians (and arrows and ropes) in the current room are drawn in their entirety at the moment when Willy is killed by colliding with one of them.

Note that in the attached file, the room still appears as 'empty' - without guardians, items or Willy - whenever Willy hits a Fire cell or falls a fatal distance.

 

 

EDIT: * Unless it is the last component part to be drawn which is the one that Willy collides with.

Attached Files


Edited by IRF, 17 November 2017 - 09:14 AM.


#2 IRF

IRF

    Advanced Member

  • Contributor
  • 3,611 posts

Posted 08 November 2017 - 01:34 AM

The above approach should also allow the code which draws Willy and the Toilet to be optimised, by simply setting the appropriate variables and then jumping to the routine at #9456.






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users