User Tag List

Results 1 to 1 of 1

Thread: [zplayer] Some hearts become white from left to right

  1. #1
    Octorok Asuna Yuuki Nagato's Avatar
    Join Date
    Jan 2024
    Posts
    491
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    56
    Level
    2
    vBActivity - Bars
    Lv. Percent
    59.83%

    Sick Bug [zplayer] Some hearts become white from left to right

    Steps to recreate:

    1. In the editor, File->New
    2. Place a 'Fire' enemy on the screen
    3. Test the quest
    4. Walk into the fire repeatedly
    5. Observe the fullmost heart correctly becomes white from right to left, but the other two become white from left to right.
    Last edited by jeffythedragonslayer; 04-13-2024 at 08:59 PM.

  2. #2
    Octorok Asuna Yuuki Nagato's Avatar
    Join Date
    Jan 2024
    Posts
    491
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    56
    Level
    2
    vBActivity - Bars
    Lv. Percent
    59.83%
    The hurting happens in gamedata::set_life

  3. #3
    Octorok Asuna Yuuki Nagato's Avatar
    Join Date
    Jan 2024
    Posts
    491
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    56
    Level
    2
    vBActivity - Bars
    Lv. Percent
    59.83%
    Commenting out the body of lifemeter in subscr.cpp doesn't have any affect on this bug.

  4. #4
    Octorok Asuna Yuuki Nagato's Avatar
    Join Date
    Jan 2024
    Posts
    491
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    56
    Level
    2
    vBActivity - Bars
    Lv. Percent
    59.83%
    The hearts are drawn by SW_GaugePiece::draw

  5. #5
    Octorok Asuna Yuuki Nagato's Avatar
    Join Date
    Jan 2024
    Posts
    491
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    56
    Level
    2
    vBActivity - Bars
    Lv. Percent
    59.83%
    Here is what overtile8 draws when called with various values of the tile parameter:

    Code:
    80181	upper right corner of widget box
    103036	blackness
    103376	full heart
    103368	half-heart (empty on left side)
    103380	empty heart
    103388	half-heart (empty on right side)

  6. #6
    Octorok Asuna Yuuki Nagato's Avatar
    Join Date
    Jan 2024
    Posts
    491
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    56
    Level
    2
    vBActivity - Bars
    Lv. Percent
    59.83%
    A bit ugly, but making the if(fulltile) at the bottom of SW_GaugePiece::draw_piece look like this fixes it:

    Code:
    	if(fulltile)
    		overtile16(dest,tile+offs,dx,dy,cset,0);
    	else 
    	{
    		if( mtile + offs == 103368 ) // draw half-hearts that are empty on their right side, not left
    			overtile8(dest, 103388, dx, dy, cset, 0);
    		else
    			overtile8(dest, mtile + offs, dx, dy, cset, 0);
    	}

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Armageddon Games is a game development group founded in 1997. We are extremely passionate about our work and our inspirations are mostly drawn from games of the 8-bit and 16-bit era.
Social