-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstate.lua
More file actions
64 lines (43 loc) · 1.12 KB
/
Copy pathstate.lua
File metadata and controls
64 lines (43 loc) · 1.12 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
53
54
55
56
57
58
59
60
61
62
63
64
--[[
This software is released under the MIT License. See LICENSE.txt for details.
Also, on a non-legal note: I do not recommend reading my code, especially not for educative
purposes. It was written over like three years, and I often forgot how I implemented several
things over time. Also, I was mostly drunk and listening to the Katamari Damacy soundtrack.
So yeah.
]]
stateClass = newClass()
function newState()
return stateClass:newSubClass()
end
function stateClass:isEmpty(x,y)
print "I AM ERROR... FOR REALZ"
end
function stateClass:update(dt)
end
function stateClass:load()
end
function stateClass:draw()
end
function stateClass:keypressed(k)
end
function stateClass:mousepressed(k)
end
function stateClass:mousereleased(k)
end
function changeState(s)
if state.flagMenuStateLol then
lolNecoDirection = state.map.maphero.mirror
if globalpack then
local str = "return {" .. globalpack .. "," .. globalnumber .. "}"
love.filesystem.write("mappos.lua", str)
end
end
changingState = s
lolt = 0
lolmark = false
theTimes = false
end
function rChangeState(s)
state = s:newInstance()
state:load()
end