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

invis

git-svn-id: http://svn.net-core.org/repos/t-engine4@168 51575b47-30f0-44d4-a5cc-537603b46e54
parent 95fdca51
No related branches found
No related tags found
No related merge requests found
......@@ -48,7 +48,7 @@ end
--- Defines the actor that sees the map
-- Usualy this will be the player. This is used to determine invisibility/...
function _M:setViewerFaction(player)
function _M:setViewerActor(player)
self.actor_player = player
end
......
......@@ -73,6 +73,7 @@ end
function _M:newGame()
self.zone = Zone.new("wilderness")
self.player = Player.new{name=self.player_name}
Map::setViewerActor(self.player)
local birth = Birther.new(self.player, {"base", "race", "subrace", "sex", "class", "subclass" }, function()
self.player.wild_x, self.player.wild_y = self.player.default_wilderness[2], self.player.default_wilderness[3]
......@@ -88,6 +89,7 @@ end
function _M:loaded()
Zone:setup{npc_class="mod.class.NPC", grid_class="mod.class.Grid", object_class="mod.class.Object"}
Map::setViewerActor(self.player)
Map:setViewPort(self.w * 0.2, 0, self.w * 0.8, math.floor(self.h * 0.80), 16, 16)
engine.GameTurnBased.loaded(self)
self.key = engine.KeyCommand.new()
......
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