Skip to content

ghosts are rendered as eyes only, no color is shown #24

@pbarsic

Description

@pbarsic

OS: Ubuntu 18.0.4
SDL version: 2.0
gcc version: 7.4.0

The ghosts are rendered as eyes only, no ghost color is shown (see screenshot).

pacman_actual

This is because the black background on augen_0.png, augen_1.png, augen_2.png, and augen_3.png are not set to transparent. I think it is a conflict between the transparent index that you have set for the ghost images (255) and the eye images (0).

The fix I employed was:

    1. Insert the following at line 195 of src/screen.cpp: SDL_SetSurfaceBlendMode(surface, SDL_BLENDMODE_BLEND);
  1. Modify the augen_?.png files so that alpha=0 for the background
  2. Change the last argument of lines 65-68 of src/ghost_figur.cpp from 0 to -1.

There is a similar bug affecting gfx/escaping_ghost_?.png.

I have these fixes in a branch. I'll send it to you if you are interested, or push it if you grant access to me.

This is the result of my fix:
pacman_expected

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions