-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathmain_old.lua
More file actions
52 lines (51 loc) · 1.05 KB
/
main_old.lua
File metadata and controls
52 lines (51 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
-- Game core functions will be powered by the Dokun Engine.
if DOKUN_STATUS ~= true then -- but dokun has not fully initialised
print("Dokun failed to start.")
end
require("global")
require("system")
require("input") -- new
require("time")
require ("data")
require("math1")
require("string1")
require("log")
require("magic")
require("player")
require("item")
require("storage")
require("pet")
require("monster")
require("bag") -- complete
require("world")
require("shop")
require("quest")
require("npc")
require("guild")
require("profession")
require("battle")
require("object")
require("stance")
require("chat")
require("gui")
require("fps")
if dokun then
window = Window:new("Script", 1280, 720)
window:create()
window:show()
while not game_over do
-- ======================
window:set_viewport(window:get_width(), window:get_height())
window:clear(32, 32, 32)
-- ======================
-- draw world
-- draw item
-- draw objects (static)
-- draw_monster
-- draw NPC
-- draw player
-- draw ui
-- ======================
window:update()
end
end