Skip to content
Snippets Groups Projects
Commit e34752a3 authored by dg's avatar dg
Browse files

Levers have a tile now

git-svn-id: http://svn.net-core.org/repos/t-engine4@3694 51575b47-30f0-44d4-a5cc-537603b46e54
parent 74574e3a
No related branches found
No related tags found
No related merge requests found
game/modules/tome/data/gfx/shockbolt/terrain/lever1_state1.png

3.09 KiB

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

3.03 KiB

......@@ -45,7 +45,7 @@ newEntity{ base = "LEVER_DOOR", define_as = "LEVER_DOOR_VERT", image = "terrain/
newEntity{
define_as = "LEVER",
type = "lever", subtype = "floor",
name = "huge lever",
name = "huge lever", image = "terrain/marble_floor.png", add_mos = {{image="terrain/lever1_state1.png"}},
display = '&', color=colors.UMBER, back_color=colors.DARK_UMBER,
notice = true,
always_remember = true,
......@@ -53,6 +53,10 @@ newEntity{
force_clone = true,
block_move = function(self, x, y, e, act)
if act and e.player and self.lever then
self.color_r = 255 self.color_g = 255 self.color_b = 255
self.add_mos[1].image = "terrain/lever1_state2.png"
self:removeAllMOs()
game.level.map:updateMap(x, y)
self.lever = false
local spot = game.level:pickSpot{type="lever", subtype="door"}
if not spot then return true end
......
......@@ -55,7 +55,7 @@ newEntity{ base = "LEVER_DOOR", define_as = "LEVER_DOOR_VERT", image = "terrain/
newEntity{
define_as = "LEVER",
type = "lever", subtype = "floor",
name = "huge lever",
name = "huge lever", image = "terrain/marble_floor.png", add_mos = {{image="terrain/lever1_state1.png"}},
display = '&', color=colors.UMBER, back_color=colors.DARK_UMBER,
notice = true,
always_remember = true,
......@@ -63,6 +63,10 @@ newEntity{
force_clone = true,
block_move = function(self, x, y, e, act)
if act and e.player and self.lever then
self.color_r = 255 self.color_g = 255 self.color_b = 255
self.add_mos[1].image = "terrain/lever1_state2.png"
self:removeAllMOs()
game.level.map:updateMap(x, y)
self.lever = false
local spot = game.level:pickSpot{type="lever", subtype="door"}
if not spot then return true end
......
......@@ -43,7 +43,7 @@ newEntity{ base = "LEVER_DOOR", define_as = "LEVER_DOOR_VERT", image = "terrain/
newEntity{
define_as = "LEVER",
type = "lever", subtype = "floor",
name = "huge lever",
name = "huge lever", image = "terrain/marble_floor.png", add_mos = {{image="terrain/lever1_state1.png"}},
display = '&', color=colors.UMBER, back_color=colors.DARK_UMBER,
notice = true,
always_remember = true,
......@@ -51,6 +51,10 @@ newEntity{
force_clone = true,
block_move = function(self, x, y, e, act)
if act and e.player and self.lever then
self.color_r = 255 self.color_g = 255 self.color_b = 255
self.add_mos[1].image = "terrain/lever1_state2.png"
self:removeAllMOs()
game.level.map:updateMap(x, y)
self.lever = false
local spot = game.level:pickSpot{type="lever", subtype="door"}
if not spot then return true end
......
......@@ -43,7 +43,7 @@ newEntity{ base = "LEVER_DOOR", define_as = "LEVER_DOOR_VERT", image = "terrain/
newEntity{
define_as = "LEVER",
type = "lever", subtype = "floor",
name = "huge lever",
name = "huge lever", image = "terrain/marble_floor.png", add_mos = {{image="terrain/lever1_state1.png"}},
display = '&', color=colors.UMBER, back_color=colors.DARK_UMBER,
notice = true,
always_remember = true,
......@@ -51,6 +51,10 @@ newEntity{
force_clone = true,
block_move = function(self, x, y, e, act)
if act and e.player and self.lever then
self.color_r = 255 self.color_g = 255 self.color_b = 255
self.add_mos[1].image = "terrain/lever1_state2.png"
self:removeAllMOs()
game.level.map:updateMap(x, y)
self.lever = false
local spot = game.level:pickSpot{type="lever", subtype="door"}
if not spot then return true end
......
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