Driftwood2D / Driftwood

Driftwood 2D Tiling Game Engine and Development Suite
http://tileengine.org/
MIT License
24 stars 1 forks source link

Edges of area not cleared when area rumbling #75

Closed pmer closed 7 years ago

pmer commented 8 years ago

Issue

Notice the top and left sides of the screen. They should be black (the area is not currently there). Instead, whatever was drawn in the previous frame remains, leaving a graphical artifact.

screen shot 2016-10-24 at 11 12 19 pm
seisatsu commented 8 years ago

Yeah, I noticed this, but overlooked it when the window was the size of each area because all four edges would have been black while rumbling. The effect of graphics cloning off the side of the screen could actually trick my eyes to think there was something over there to render. Anyway, I think we can just fix this and then make areas where rumbles happen big enough to handle it without showing letterbox.

seisatsu commented 7 years ago

I am having a hell of a time just trying to paint black on the screen between frames.

seisatsu commented 7 years ago

One last detail -- we need to be able to cover up tall entities spilling over the edge of the area before I can mark this fixed. This is particularly troublesome when the character is standing in a lit area; the part of them sticking over the bounds has a different coloration and looks obnoxious.

pmer commented 7 years ago

I am thinking of adding a clip to the src and dest rectangles on every overlay draw & clipping to the area boundaries. What do you think @seisatsu?

seisatsu commented 7 years ago

A clip is probably what's going to have to happen.