This commit is contained in:
@@ -2,6 +2,15 @@ function GameWindow.draw()
|
|||||||
local currentScreenData = Context.screens[Context.current_screen]
|
local currentScreenData = Context.screens[Context.current_screen]
|
||||||
|
|
||||||
UI.draw_top_bar(currentScreenData.name)
|
UI.draw_top_bar(currentScreenData.name)
|
||||||
|
|
||||||
|
-- Draw Norman's bedroom
|
||||||
|
local from_x = 0 -- top-left coordinate of the large MAP (screen 1)
|
||||||
|
local from_y = 0 -- top-left coordinate of the large MAP (screen 1)
|
||||||
|
local width = 30 -- width of the standard screen (number of tiles)
|
||||||
|
local height = 17 -- height of the standard screen (number of tiles)
|
||||||
|
local to_x = 0 -- target x (of the displayed screen)([0-29])
|
||||||
|
local to_y = 0 -- target y (of the displayed screen)([0-16])
|
||||||
|
map(from_x, from_y, width, height, to_x, to_y)
|
||||||
end
|
end
|
||||||
|
|
||||||
function GameWindow.update()
|
function GameWindow.update()
|
||||||
|
|||||||
Reference in New Issue
Block a user