0

So I have a game I'm working on that is grid based. I noticed if the window is a certain width, then the grids will have vertical lines separating them. Below I attached two images, one with the screen at 905px (with lines) and another with the screen at 906px (without lines). It alternates between lines or no lines every 3 to 4px.

With Lines Without Lines

There is an online version located here - Game Link

Any possibly explanations would be greatly appreciated!

Jared Bledsoe
  • 559
  • 5
  • 15

1 Answers1

2

It is possible that your images are not completely filling in the space. If this is the case, try drawing the images with 1-2 pixel overlap.

forthe
  • 378
  • 3
  • 15
  • Thanks for the tip, I'm going to look further into it but it appears the grids shrink/grow slightly although I never resize them in the code. Setting it wider doesn't fix it, I'll post here if I figure out the resizing cause. – Jared Bledsoe Feb 17 '18 at 04:53