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

typos

Example modules have their Game:setupDisplayMode() method fixed when loading a save


git-svn-id: http://svn.net-core.org/repos/t-engine4@1788 51575b47-30f0-44d4-a5cc-537603b46e54
parent a02afb11
No related branches found
No related tags found
No related merge requests found
......@@ -128,10 +128,15 @@ function _M:createSeparators()
end
function _M:setupDisplayMode()
print("[DISPLAY MODE] 32x32 ASCII/background")
Map:setViewPort(200, 20, self.w - 200, math.floor(self.h * 0.80) - 20, 16, 16, "/data/font/FSEX300.ttf", 16, true, false)
Map:resetTiles()
Map.tiles.use_images = false
if self.level then
self.level.map:recreate()
engine.interface.GameTargeting.init(self)
self.level.map:moveViewSurround(self.player.x, self.player.y, 8, 8)
end
end
function _M:save()
......
......@@ -121,6 +121,12 @@ function _M:setupDisplayMode()
Map:setViewPort(200, 20, self.w - 200, math.floor(self.h * 0.80) - 20, 32, 32, nil, 22, true, true)
Map:resetTiles()
Map.tiles.use_images = false
if self.level then
self.level.map:recreate()
engine.interface.GameTargeting.init(self)
self.level.map:moveViewSurround(self.player.x, self.player.y, 8, 8)
end
end
function _M:save()
......
......@@ -121,6 +121,12 @@ function _M:setupDisplayMode()
Map:setViewPort(200, 20, self.w - 200, math.floor(self.h * 0.80) - 20, 32, 32, nil, 22, true, true)
Map:resetTiles()
Map.tiles.use_images = false
if self.level then
self.level.map:recreate()
engine.interface.GameTargeting.init(self)
self.level.map:moveViewSurround(self.player.x, self.player.y, 8, 8)
end
end
function _M:save()
......
......@@ -31,8 +31,8 @@ newChat{ id="save-derth",
text = [[Yes we have noticed the devastation that happened there. I have sent some friends to dispose of the cloud but the real threat is not there.
We know who created this abomination: Urkis. He is a Tempest, a powerful archmage who can control the storms.
A few years ago he has gone rogue, cutting himself from Angolwen. He remained quiet so we were reluctant to go against him openly, but it seems we have no choice now.
The removal of the could will take much time, in the meanwhile we can, if you are willing, send you to Urkis lair to try stop him.
I will not lie to you, we can send you there but this cuold be a death trap, and we have no way of knowing if there is a way for you to exit his lair as he lives on top of a tall peak in the Daikara mountains.]],
The removal of the cloud will take much time, in the meanwhile we can, if you are willing, send you to Urkis lair to try stop him.
I will not lie to you, we can send you there but this could be a death trap, and we have no way of knowing if there is a way for you to exit his lair as he lives on top of a tall peak in the Daikara mountains.]],
answers = {
{"I need to prepare myself, I will be back soon.", action=function(npc, player) player:setQuestStatus("lightning-overload", engine.Quest.COMPLETED, "tempest-located") end},
{"I am ready, send me, I will not let the good people of Derth down.", action=function(npc, player) player:setQuestStatus("lightning-overload", engine.Quest.COMPLETED, "tempest-located") player:hasQuest("lightning-overload"):teleport_urkis() end},
......
......@@ -60,6 +60,5 @@ newEntity{ define_as = "UNGOLE", base = "BASE_NPC_SPIDER",
on_die = function(self, who)
game.player:resolveSource():setQuestStatus("spydric-infestation", engine.Quest.COMPLETED)
game.player.gates_of_morning_access = 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