implement affine wrap

This commit is contained in:
Matthew Berry 2021-01-16 01:59:37 -08:00
parent d5e05f0f88
commit 99ac277ca0

View file

@ -220,7 +220,8 @@ class PPU
y = ((pc * col + pd * row) + dy) >> 8
if @bgcnt[bg].affine_wrap
# puts "Wrap not supported yet (bg:#{bg})".colorize.fore(:red)
x %= size_pixels
y %= size_pixels
end
next unless 0 <= x < size_pixels && 0 <= y < size_pixels