Hello, I'm trying to generate some terrain to make a game similar to Risk. To generate the terrain, I'm using love.math.noise.
Code: Select all
for x = 0, 800 do
for y = 0, 600 do
value[x] = value[x] or {}
xCoord = x / 800 - 0.5
yCoord = y / 600 - 0.5
Noise = love.math.noise(xCoord, yCoord)
value[x][y] = Noise
end
end
But this code most of the time ends with a blank window that I have to close because it isn't responding. When it doesn't do that, it gets to the drawing code:
Code: Select all
for i = 0, 799 do
for j = 0, 599 do
love.graphics.setColor(value[i][j], value[i][j], value[i][j])
love.graphics.points(i, j)
end
end
The results are mostly what I'd expect, but there are weird vertical lines that really stick out.

- Screenshot (85).png (105.27 KiB) Viewed 7447 times
I have no idea what's going on. Can someone help me please?