1
0
mirror of https://github.com/ComfyFactory/ComfyFactorio.git synced 2024-12-26 22:56:43 +02:00
This commit is contained in:
MewMew 2019-05-07 20:17:50 +02:00
parent 03965e18d1
commit a71a4b4b8e
3 changed files with 6025 additions and 2 deletions

View File

@ -61,7 +61,7 @@ local function on_tick(event)
if game.tick % 300 ~= 0 then return end
for i = 1, 4, 1 do
game.forces[i].chart(game.surfaces["wave_of_death"], {{-320, -384}, {320, 96}})
game.forces[i].chart(game.surfaces["wave_of_death"], {{-288, -420}, {352, 32}})
end
game_status.restart_server()

6013
maps/wave_of_death/logo.lua Normal file

File diff suppressed because it is too large Load Diff

View File

@ -1,5 +1,6 @@
local simplex_noise = require 'utils.simplex_noise'.d2
local simplex_noise = require "utils.simplex_noise".d2
local math_random = math.random
local wod_logo_tiles = require "maps.wave_of_death.logo"
local noises = {
["biter_territory_decoratives"] = {{modifier = 0.03, weight = 1}, {modifier = 0.05, weight = 0.3}, {modifier = 0.1, weight = 0.05}},
["biter_territory_beach"] = {{modifier = 0.07, weight = 1}, {modifier = 0.03, weight = 0.3}, {modifier = 0.1, weight = 0.1}},
@ -22,6 +23,14 @@ local function get_noise(name, pos, seed)
return noise
end
local function wod_logo(surface, left_top)
if left_top.y ~= -320 then return end
if left_top.x ~= -256 then return end
for _, tile in pairs(wod_logo_tiles.data) do
surface.set_tiles({{name = wod_logo_tiles.index[tile[2]], position = {tile[1][1] - 50, tile[1][2] - 436}}})
end
end
local function init(surface, left_top)
if left_top.x ~= 256 then return end
if left_top.y ~= 256 then return end
@ -182,6 +191,7 @@ local function on_chunk_generated(event)
draw_lanes(surface, left_top)
end
init(surface, left_top)
wod_logo(surface, left_top)
end
return on_chunk_generated