Menu

#3 Gaps appear between tiles

Gamelib_-_CTileMngr
open-accepted
Gamelib (9)
5
2002-08-18
2002-08-02
Drew Sikora
No

This bug was created when I fixed another one - don't
you hate that?

The problem is that now the CVideo class is fixed so
that it does not overdraw a cell in a template and draw
part of adjoining cells. However because of this the
CTileMngr now draws tiles that are 1 pixel too small,
creating 1 pixel gaps in between the tiles.

Since the tile width and height are used universally
throughout the engine, it's probably an issue of finding
where in the engine (or even CVideo) these values have
to be tweaked so that even though the images blitted
are 1 pixel less that intended, the tiles still match up.

One idea is that instead of measuring tile length and
width starting from 1, instead measure it starting from 0.
Therefore all tiles will be a pixel smaller (but still the
same size). I really haven't looked into this much at all.

Discussion

  • Drew Sikora

    Drew Sikora - 2002-08-06
    • assigned_to: nobody --> gaiiden
     
  • Drew Sikora

    Drew Sikora - 2002-08-18

    Logged In: YES
    user_id=572189

    I did a little tinkering and now although there are still black
    lines in the pacman map, the roadmaps have no black lines
    in them whatsoever. This is something because I always
    thought those black lines inbetween the tiles was the
    background. Now the tiles are being fully blitted - it's just a
    matter of creating a proper tile map. I think the ones we're
    using right now are incorrectly dimensioned.

     
  • Drew Sikora

    Drew Sikora - 2002-08-18
    • status: open --> open-duplicate
     
  • Drew Sikora

    Drew Sikora - 2002-08-18
    • status: open-duplicate --> open-accepted
     

Log in to post a comment.

MongoDB Logo MongoDB