Skip to content
Snippets Groups Projects
Commit 1cc135e2 authored by DarkGod's avatar DarkGod
Browse files

snowy

parent 0821a414
No related branches found
No related tags found
No related merge requests found
Showing
with 228 additions and 4 deletions
......@@ -425,6 +425,37 @@ autumn_grass = { method="borders", type="autumn_grass", forbid={grass=true, lava
water7i={add_mos={{image="terrain/grass/autumn_grass_inner_7_%02d.png", display_x=-1, display_y=-1}}, min=1, max=1},
water9i={add_mos={{image="terrain/grass/autumn_grass_inner_9_%02d.png", display_x=1, display_y=-1}}, min=1, max=1},
},
snowy_grass = { method="borders", type="snowy_grass", forbid={grass=true, lava=true, rock=true},
default8={add_mos={{image="terrain/grass/snowy_grass_2_%02d.png", display_y=-1}}, min=1, max=2},
default2={add_mos={{image="terrain/grass/snowy_grass_8_%02d.png", display_y=1}}, min=1, max=2},
default4={add_mos={{image="terrain/grass/snowy_grass_6_%02d.png", display_x=-1}}, min=1, max=2},
default6={add_mos={{image="terrain/grass/snowy_grass_4_%02d.png", display_x=1}}, min=1, max=2},
default1={add_mos={{image="terrain/grass/snowy_grass_9_%02d.png", display_x=-1, display_y=1}}, min=1, max=1},
default3={add_mos={{image="terrain/grass/snowy_grass_7_%02d.png", display_x=1, display_y=1}}, min=1, max=1},
default7={add_mos={{image="terrain/grass/snowy_grass_3_%02d.png", display_x=-1, display_y=-1}}, min=1, max=1},
default9={add_mos={{image="terrain/grass/snowy_grass_1_%02d.png", display_x=1, display_y=-1}}, min=1, max=1},
default1i={add_mos={{image="terrain/grass/snowy_grass_inner_1_%02d.png", display_x=-1, display_y=1}}, min=1, max=2},
default3i={add_mos={{image="terrain/grass/snowy_grass_inner_3_%02d.png", display_x=1, display_y=1}}, min=1, max=2},
default7i={add_mos={{image="terrain/grass/snowy_grass_inner_7_%02d.png", display_x=-1, display_y=-1}}, min=1, max=2},
default9i={add_mos={{image="terrain/grass/snowy_grass_inner_9_%02d.png", display_x=1, display_y=-1}}, min=1, max=2},
water8={add_mos={{image="terrain/grass/snowy_grass_2_%02d.png", display_y=-1}}, min=1, max=1},
water2={add_mos={{image="terrain/grass/snowy_grass_8_%02d.png", display_y=1}}, min=1, max=1},
water4={add_mos={{image="terrain/grass/snowy_grass_6_%02d.png", display_x=-1}}, min=1, max=1},
water6={add_mos={{image="terrain/grass/snowy_grass_4_%02d.png", display_x=1}}, min=1, max=1},
water1={add_mos={{image="terrain/grass/snowy_grass_9_%02d.png", display_x=-1, display_y=1}}, min=1, max=1},
water3={add_mos={{image="terrain/grass/snowy_grass_7_%02d.png", display_x=1, display_y=1}}, min=1, max=1},
water7={add_mos={{image="terrain/grass/snowy_grass_3_%02d.png", display_x=-1, display_y=-1}}, min=1, max=1},
water9={add_mos={{image="terrain/grass/snowy_grass_1_%02d.png", display_x=1, display_y=-1}}, min=1, max=1},
water1i={add_mos={{image="terrain/grass/snowy_grass_inner_1_%02d.png", display_x=-1, display_y=1}}, min=1, max=1},
water3i={add_mos={{image="terrain/grass/snowy_grass_inner_3_%02d.png", display_x=1, display_y=1}}, min=1, max=1},
water7i={add_mos={{image="terrain/grass/snowy_grass_inner_7_%02d.png", display_x=-1, display_y=-1}}, min=1, max=1},
water9i={add_mos={{image="terrain/grass/snowy_grass_inner_9_%02d.png", display_x=1, display_y=-1}}, min=1, max=1},
},
grass_wm = { method="borders", type="grass", forbid={lava=true, rock=true},
default8={add_mos={{image="terrain/grass_worldmap/grass_2_%02d.png", display_y=-1}}, min=1, max=2},
default2={add_mos={{image="terrain/grass_worldmap/grass_8_%02d.png", display_y=1}}, min=1, max=2},
......
......@@ -19,6 +19,7 @@
local grass_editer = { method="borders_def", def="grass"}
local autumn_grass_editer = { method="borders_def", def="autumn_grass"}
local snowy_grass_editer = { method="borders_def", def="snowy_grass"}
local treesdef = {
{"elventree", {tall=-1, "shadow", "trunk", "foliage_summer"}},
......@@ -71,7 +72,7 @@ local snow_treesdef = {
newEntity{
define_as = "SNOW_ELVEN_TREE",
type = "wall", subtype = "grass",
type = "wall", subtype = "snowy_grass",
name = "tree",
image = "terrain/tree.png",
display = '#', color=colors.LIGHT_GREEN, back_color={r=44,g=95,b=43},
......@@ -81,9 +82,10 @@ newEntity{
block_sight = true,
dig = "GRASS",
nice_tiler = { method="replace", base={"SNOW_ELVEN_TREE", 100, 1, 30}},
nice_editer = snowy_grass_editer,
}
for i = 1, 30 do
newEntity(class:makeNewTrees({base="SNOW_ELVEN_TREE", define_as = "SNOW_ELVEN_TREE"..i, image = "terrain/snowy_grass.png"}, snow_treesdef))
newEntity(class:makeNewTrees({base="SNOW_ELVEN_TREE", define_as = "SNOW_ELVEN_TREE"..i, image = "terrain/grass/snowy_grass_main_01.png"}, snow_treesdef))
end
local autumn_treesdef = {
......@@ -107,5 +109,5 @@ newEntity{
nice_editer = autumn_grass_editer,
}
for i = 1, 30 do
newEntity(class:makeNewTrees({base="AUTUMN_ELVEN_TREE", define_as = "AUTUMN_ELVEN_TREE"..i, image = "terrain/grass/grass_main_01.png"}, autumn_treesdef))
newEntity(class:makeNewTrees({base="AUTUMN_ELVEN_TREE", define_as = "AUTUMN_ELVEN_TREE"..i, image = "terrain/grass/autumn_grass_main_01.png"}, autumn_treesdef))
end
......@@ -52,7 +52,7 @@ local treesdef = {
{"cypress", {tall=-1, "shadow", "trunk", {"foliage_%02d",1,4}}},
{"small_cypress", {tall=-1, "shadow", "trunk", {"foliage_%02d",1,4}}},
{"tiny_cypress", {"shadow", "trunk", {"foliage_%02d",1,4}}},
{"oak", {tall=-1, "shadow", {"trunk_%02d",1,2}, {"foliage_spring_%02d",1,2}}},
{"oak", {tall=-1, "shadow", {"trunk_%02d",1,2}, {"foliage_summer_%02d",1,4}}},
}
newEntity{
......
-- ToME - Tales of Maj'Eyal
-- Copyright (C) 2009 - 2014 Nicolas Casalini
--
-- This program is free software: you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation, either version 3 of the License, or
-- (at your option) any later version.
--
-- This program is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- GNU General Public License for more details.
--
-- You should have received a copy of the GNU General Public License
-- along with this program. If not, see <http://www.gnu.org/licenses/>.
--
-- Nicolas Casalini "DarkGod"
-- darkgod@te4.org
local snowy_grass_editer = { method="borders_def", def="snowy_grass"}
newEntity{
define_as = "SNOWY_GRASS",
type = "floor", subtype = "snowy_grass",
name = "snowy grass", image = "terrain/grass/snowy_grass_main_01.png",
display = '.', color=colors.LIGHT_GREEN, back_color={r=44,g=95,b=43},
grow = "SNOWY_TREE",
nice_tiler = { method="replace", base={"SNOWY_PATCH", 100, 1, 14}},
nice_editer = snowy_editer,
}
for i = 1, 14 do newEntity{ base = "SNOWY_GRASS", define_as = "SNOWY_PATCH"..i, image = ("terrain/grass/snowy_grass_main_%02d.png"):format(i) } end
local snowy_treesdef = {
{"small_elm", {"shadow", "trunk", "foliage_winter"}},
{"elm", {tall=-1, "shadow", "trunk", "foliage_winter"}},
}
newEntity{
define_as = "SNOWY_TREE",
type = "wall", subtype = "snowy_grass",
name = "winter tree",
image = "terrain/snowy_tree.png",
display = '#', color=colors.LIGHT_GREEN, back_color={r=44,g=95,b=43},
always_remember = true,
can_pass = {pass_tree=1},
does_block_move = true,
block_sight = true,
dig = "snowy",
nice_tiler = { method="replace", base={"SNOWY_TREE", 100, 1, 30}},
nice_editer = snowy_editer,
}
for i = 1, 30 do
newEntity(class:makeNewTrees({base="SNOWY_TREE", define_as = "SNOWY_TREE"..i, image = "terrain/grass/snowy_grass_main_01.png"}, snowy_treesdef))
end
newEntity{
define_as = "HARDSNOWY_TREE",
type = "wall", subtype = "snowy_grass",
name = "tall thick tree",
image = "terrain/snowy_tree.png",
display = '#', color=colors.LIGHT_GREEN, back_color={r=44,g=95,b=43},
always_remember = true,
does_block_move = true,
block_sight = true,
block_sense = true,
block_esp = true,
nice_tiler = { method="replace", base={"HARDSNOWY_TREE", 100, 1, 30}},
nice_editer = snowy_editer,
}
for i = 1, 30 do
newEntity(class:makeNewTrees({base="HARDSNOWY_TREE", define_as = "HARDSNOWY_TREE"..i, image = "terrain/grass/snowy_grass_main_01.png"}, snowy_treesdef))
end
-----------------------------------------
-- Forest road
-----------------------------------------
newEntity{
define_as = "snowy_ROAD_STONE",
type = "floor", subtype = "snowy_grass", road="oldstone",
name = "old road", image = "terrain/grass/snowy_grass_main_01.png",
display = '=', color=colors.DARK_GREY,
always_remember = true,
nice_editer = snowy_editer,
nice_editer2 = { method="roads_def", def="oldstone" },
}
newEntity{
define_as = "snowy_ROAD_DIRT",
type = "floor", subtype = "snowy_grass", road="dirt",
name = "old road", image = "terrain/grass/snowy_grass_main_01.png",
display = '=', color=colors.DARK_GREY,
always_remember = true,
nice_editer = snowy_editer,
nice_editer2 = { method="roads_def", def="dirt" },
}
-----------------------------------------
-- snowyy exits
-----------------------------------------
newEntity{
define_as = "snowy_UP_WILDERNESS",
type = "floor", subtype = "snowy_grass",
name = "exit to the worldmap", image = "terrain/grass/snowy_grass_main_01.png", add_mos = {{image="terrain/worldmap.png"}},
display = '<', color_r=255, color_g=0, color_b=255,
always_remember = true,
notice = true,
change_level = 1,
change_zone = "wilderness",
nice_editer = snowy_editer,
}
newEntity{
define_as = "snowy_UP8",
type = "floor", subtype = "snowy_grass",
name = "way to the previous level", image = "terrain/grass/snowy_grass_main_01.png", add_mos = {{image="terrain/way_next_8.png"}},
display = '<', color_r=255, color_g=255, color_b=0,
notice = true,
always_remember = true,
change_level = -1,
nice_editer = snowy_editer,
}
newEntity{
define_as = "snowy_UP2",
type = "floor", subtype = "snowy_grass",
name = "way to the previous level", image = "terrain/grass/snowy_grass_main_01.png", add_mos = {{image="terrain/way_next_2.png"}},
display = '<', color_r=255, color_g=255, color_b=0,
notice = true,
always_remember = true,
change_level = -1,
nice_editer = snowy_editer,
}
newEntity{
define_as = "snowy_UP4",
type = "floor", subtype = "snowy_grass",
name = "way to the previous level", image = "terrain/grass/snowy_grass_main_01.png", add_mos = {{image="terrain/way_next_4.png"}},
display = '<', color_r=255, color_g=255, color_b=0,
notice = true,
always_remember = true,
change_level = -1,
nice_editer = snowy_editer,
}
newEntity{
define_as = "snowy_UP6",
type = "floor", subtype = "snowy_grass",
name = "way to the previous level", image = "terrain/grass/snowy_grass_main_01.png", add_mos = {{image="terrain/way_next_6.png"}},
display = '<', color_r=255, color_g=255, color_b=0,
notice = true,
always_remember = true,
change_level = -1,
nice_editer = snowy_editer,
}
newEntity{
define_as = "snowy_DOWN8",
type = "floor", subtype = "snowy_grass",
name = "way to the next level", image = "terrain/grass/snowy_grass_main_01.png", add_mos = {{image="terrain/way_next_8.png"}},
display = '>', color_r=255, color_g=255, color_b=0,
notice = true,
always_remember = true,
change_level = 1,
nice_editer = snowy_editer,
}
newEntity{
define_as = "snowy_DOWN2",
type = "floor", subtype = "snowy_grass",
name = "way to the next level", image = "terrain/grass/snowy_grass_main_01.png", add_mos = {{image="terrain/way_next_2.png"}},
display = '>', color_r=255, color_g=255, color_b=0,
notice = true,
always_remember = true,
change_level = 1,
nice_editer = snowy_editer,
}
newEntity{
define_as = "snowy_DOWN4",
type = "floor", subtype = "snowy_grass",
name = "way to the next level", image = "terrain/grass/snowy_grass_main_01.png", add_mos = {{image="terrain/way_next_4.png"}},
display = '>', color_r=255, color_g=255, color_b=0,
notice = true,
always_remember = true,
change_level = 1,
nice_editer = snowy_editer,
}
newEntity{
define_as = "snowy_DOWN6",
type = "floor", subtype = "snowy_grass",
name = "way to the next level", image = "terrain/grass/snowy_grass_main_01.png", add_mos = {{image="terrain/way_next_6.png"}},
display = '>', color_r=255, color_g=255, color_b=0,
notice = true,
always_remember = true,
change_level = 1,
nice_editer = snowy_editer,
}
game/modules/tome/data/gfx/shockbolt/terrain/grass/snowy_grass_1_01.png

11.3 KiB

game/modules/tome/data/gfx/shockbolt/terrain/grass/snowy_grass_2_01.png

8.73 KiB

game/modules/tome/data/gfx/shockbolt/terrain/grass/snowy_grass_2_02.png

8.61 KiB

game/modules/tome/data/gfx/shockbolt/terrain/grass/snowy_grass_3_01.png

11.5 KiB

game/modules/tome/data/gfx/shockbolt/terrain/grass/snowy_grass_4_01.png

9.15 KiB

game/modules/tome/data/gfx/shockbolt/terrain/grass/snowy_grass_4_02.png

8.52 KiB

game/modules/tome/data/gfx/shockbolt/terrain/grass/snowy_grass_6_01.png

8.83 KiB

game/modules/tome/data/gfx/shockbolt/terrain/grass/snowy_grass_6_02.png

8.73 KiB

game/modules/tome/data/gfx/shockbolt/terrain/grass/snowy_grass_7_01.png

11.4 KiB

game/modules/tome/data/gfx/shockbolt/terrain/grass/snowy_grass_8_01.png

8.78 KiB

game/modules/tome/data/gfx/shockbolt/terrain/grass/snowy_grass_8_02.png

8.93 KiB

game/modules/tome/data/gfx/shockbolt/terrain/grass/snowy_grass_9_01.png

11.1 KiB

game/modules/tome/data/gfx/shockbolt/terrain/grass/snowy_grass_inner_1_01.png

5.87 KiB

game/modules/tome/data/gfx/shockbolt/terrain/grass/snowy_grass_inner_1_02.png

5.4 KiB

game/modules/tome/data/gfx/shockbolt/terrain/grass/snowy_grass_inner_3_01.png

5.76 KiB

game/modules/tome/data/gfx/shockbolt/terrain/grass/snowy_grass_inner_3_02.png

5.06 KiB

0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment