fucking things up, frozen
This commit is contained in:
+6
-4
@@ -74,11 +74,11 @@ love.draw = function()
|
||||
|
||||
for x = 1, map.size do
|
||||
for y = 1, map.size do
|
||||
-- local value = map.biome[x][y]
|
||||
local value = map.temperature[x][y]
|
||||
local value = map.biome[x][y]
|
||||
-- local value = map.temperature[x][y]
|
||||
if value then
|
||||
-- love.graphics.setColor(value)
|
||||
love.graphics.setColor( (value + map.temperature.max) / (map.temperature.max + math.abs(map.temperature.min)) , 0, 0, 1)
|
||||
love.graphics.setColor(value)
|
||||
-- love.graphics.setColor( (value + map.temperature.max) / (map.temperature.max + math.abs(map.temperature.min)) , 0, 0, 1)
|
||||
love.graphics.rectangle("fill", x * map.tile_size, y * map.tile_size, map.tile_size, map.tile_size)
|
||||
end
|
||||
end
|
||||
@@ -90,6 +90,8 @@ love.keypressed = function(key)
|
||||
love.event.quit()
|
||||
elseif key == "r" then
|
||||
love.load()
|
||||
elseif key == "t" then
|
||||
print(running_average.count("minT"))
|
||||
elseif key == "=" then
|
||||
map.tile_size = map.tile_size * 2
|
||||
elseif key == "-" then
|
||||
|
||||
Reference in New Issue
Block a user