Skip to content
Snippets Groups Projects
Commit 56a7cb8e authored by DarkGod's avatar DarkGod
Browse files

mushrooms!

web test
parent 046bb3a2
No related branches found
No related tags found
No related merge requests found
Showing
with 26 additions and 8 deletions
......@@ -57,7 +57,7 @@ function _M:init()
l[#l+1] = {name="Credits", fct=function() game:registerDialog(require("mod.dialogs.Credits").new()) end}
l[#l+1] = {name="Exit", fct=function() game:onQuit() end}
if config.settings.cheat then l[#l+1] = {name="Reboot", fct=function() util.showMainMenu() end} end
if config.settings.cheat then l[#l+1] = {name="webtest", fct=function() util.browserOpenUrl("http://google.com/") end} end
if config.settings.cheat then l[#l+1] = {name="webtest", fct=function() util.browserOpenUrl("http://tometips.github.io/#talents/") end} end
-- if config.settings.cheat then l[#l+1] = {name="webtest", fct=function() util.browserOpenUrl("asset://te4/html/test.html") end} end
self.c_background = Button.new{text=game.stopped and "Enable background" or "Disable background", fct=function() self:switchBackground() end}
......
......@@ -23,26 +23,44 @@ newEntity{
name = "floor", image = "terrain/underground_floor.png",
display = '.', color=colors.LIGHT_UMBER, back_color=colors.UMBER,
grow = "UNDERGROUND_TREE",
nice_tiler = { method="replace", base={"UNDERGROUND_FLOOR", 30, 1, 8}},
nice_tiler = { method="replace", base={"UNDERGROUND_FLOOR", 50, 1, 20}},
}
for i = 1, 8 do
newEntity{base = "UNDERGROUND_FLOOR", define_as = "UNDERGROUND_FLOOR"..i, image = "terrain/underground_floor"..i..".png"}
for i = 1, 20 do
local add = nil
if rng.percent(50) then add = {{image="terrain/floor_mushroom_0"..rng.range(1,8)..".png"}} end
newEntity{base = "UNDERGROUND_FLOOR", define_as = "UNDERGROUND_FLOOR"..i, image = "terrain/underground_floor"..(1 + i % 8)..".png", add_mos=add}
end
for i = 1, 20 do
local treesdef = {
{"small_mushroom_01", {"shadow", "trunk", {"head_%02d", 1, 2}}},
{"small_mushroom_02", {"shadow", "trunk", {"head_%02d", 1, 6}}},
{"small_mushroom_03", {"shadow", "trunk", {"head_%02d", 1, 5}}},
{"small_mushroom_04", {"shadow", "trunk", {"head_%02d", 1, 2}}},
{"mushroom_01", {tall=-1, "shadow", "trunk", {"head_%02d", 1, 2}}},
{"mushroom_02", {tall=-1, "shadow", "trunk", {"head_%02d", 1, 2}}},
{"mushroom_03", {tall=-1, "shadow", "trunk", {"head_%02d", 1, 2}}},
{"mushroom_04", {tall=-1, "shadow", "trunk", {"head_%02d", 1, 1}}},
{"mushroom_05", {tall=-1, "shadow", "trunk", {"head_%02d", 1, 1}}},
{"mushroom_06", {tall=-1, "shadow", "trunk", {"head_%02d", 1, 1}}},
{"mushroom_07", {tall=-1, "shadow", "trunk", {"head_%02d", 1, 1}}},
{"mushroom_08", {tall=-1, "shadow", "trunk", {"head_%02d", 1, 4}}},
}
newEntity{
define_as = "UNDERGROUND_TREE"..(i > 1 and i or ""),
define_as = "UNDERGROUND_TREE",
type = "wall", subtype = "underground",
name = "underground thick vegetation",
image = "terrain/underground_floor.png",
add_displays = class:makeSubTrees("terrain/underground_tree_alpha", 10),
image = "terrain/tree.png",
display = '#', color=colors.PURPLE, back_color=colors.UMBER,
always_remember = true,
can_pass = {pass_tree=1},
does_block_move = true,
block_sight = true,
nice_tiler = { method="replace", base={"UNDERGROUND_TREE", 100, 1, 30}},
dig = "UNDERGROUND_FLOOR",
}
for i = 1, 30 do
newEntity(class:makeNewTrees({base="UNDERGROUND_TREE", define_as = "UNDERGROUND_TREE"..i, image = "terrain/underground_floor.png"}, treesdef))
end
newEntity{
......
game/modules/tome/data/gfx/shockbolt/terrain/floor_mushroom_01.png

4.45 KiB

game/modules/tome/data/gfx/shockbolt/terrain/floor_mushroom_02.png

3.89 KiB

game/modules/tome/data/gfx/shockbolt/terrain/floor_mushroom_03.png

3.98 KiB

game/modules/tome/data/gfx/shockbolt/terrain/floor_mushroom_04.png

5.6 KiB

game/modules/tome/data/gfx/shockbolt/terrain/floor_mushroom_05.png

3.92 KiB

game/modules/tome/data/gfx/shockbolt/terrain/floor_mushroom_06.png

4.77 KiB

game/modules/tome/data/gfx/shockbolt/terrain/floor_mushroom_07.png

3.94 KiB

game/modules/tome/data/gfx/shockbolt/terrain/floor_mushroom_08.png

4.06 KiB

game/modules/tome/data/gfx/shockbolt/terrain/trees/mushroom_01_head_01.png

9.6 KiB

game/modules/tome/data/gfx/shockbolt/terrain/trees/mushroom_01_head_02.png

15.5 KiB

game/modules/tome/data/gfx/shockbolt/terrain/trees/mushroom_01_shadow.png

4.36 KiB

game/modules/tome/data/gfx/shockbolt/terrain/trees/mushroom_01_trunk.png

9.64 KiB

game/modules/tome/data/gfx/shockbolt/terrain/trees/mushroom_02_head_01.png

10.5 KiB

game/modules/tome/data/gfx/shockbolt/terrain/trees/mushroom_02_head_02.png

12.6 KiB

game/modules/tome/data/gfx/shockbolt/terrain/trees/mushroom_02_shadow.png

4.06 KiB

game/modules/tome/data/gfx/shockbolt/terrain/trees/mushroom_02_trunk.png

5.96 KiB

game/modules/tome/data/gfx/shockbolt/terrain/trees/mushroom_03_head_01.png

8.14 KiB

game/modules/tome/data/gfx/shockbolt/terrain/trees/mushroom_03_head_02.png

17 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