1hatoffsets = {}
2hatoffsets["idle"] = {0, 0}
3hatoffsets["running"] = {{0, 0}, {0, 0}, {-1, -1}}
4hatoffsets["sliding"] = {0, 0}
5hatoffsets["jumping"] = {0, -1}
6hatoffsets["falling"] = {0, 0}
7hatoffsets["climbing"] = {{2, 0}, {2, -1}}
8hatoffsets["swimming"] = {{1, -1}, {1, -1}}
9hatoffsets["dead"] = false
10hatoffsets["grow"] = {-6, 0}
11
12local i
13hat = {}
14
15i = 1
16hat[i] = {}
17hat[i].x = 7
18hat[i].y = 2
19hat[i].height = 2
20hat[i].graphic = love.graphics.newImage("graphics/SMB/hats/standard.png");hat[i].graphic:setFilter("nearest", "nearest")
21
22i = 2
23hat[i] = {}
24hat[i].x = 5
25hat[i].y = -3
26hat[i].height = 4
27hat[i].graphic = love.graphics.newImage("graphics/SMB/hats/tyrolean.png");hat[i].graphic:setFilter("nearest", "nearest")
28
29i = 3
30hat[i] = {}
31hat[i].x = 5
32hat[i].y = -1
33hat[i].height = 4
34hat[i].graphic = love.graphics.newImage("graphics/SMB/hats/towering1.png");hat[i].graphic:setFilter("nearest", "nearest")
35
36i = 4
37hat[i] = {}
38hat[i].x = 5
39hat[i].y = -6
40hat[i].height = 8
41hat[i].graphic = love.graphics.newImage("graphics/SMB/hats/towering2.png");hat[i].graphic:setFilter("nearest", "nearest")
42
43i = 5
44hat[i] = {}
45hat[i].x = 5
46hat[i].y = 1
47hat[i].height = 2
48hat[i].graphic = love.graphics.newImage("graphics/SMB/hats/towering3.png");hat[i].graphic:setFilter("nearest", "nearest")
49
50i = 6
51hat[i] = {}
52hat[i].x = 5
53hat[i].y = -7
54hat[i].height = 10
55hat[i].graphic = love.graphics.newImage("graphics/SMB/hats/drseuss.png");hat[i].graphic:setFilter("nearest", "nearest")
56
57i = 7
58hat[i] = {}
59hat[i].x = 4
60hat[i].y = -7
61hat[i].height = 8
62hat[i].graphic = love.graphics.newImage("graphics/SMB/hats/bird.png");hat[i].graphic:setFilter("nearest", "nearest")
63
64i = 8
65hat[i] = {}
66hat[i].x = 4
67hat[i].y = -1
68hat[i].height = 3
69hat[i].graphic = love.graphics.newImage("graphics/SMB/hats/banana.png");hat[i].graphic:setFilter("nearest", "nearest")
70
71i = 9
72hat[i] = {}
73hat[i].x = 7
74hat[i].y = -2
75hat[i].height = 3
76hat[i].graphic = love.graphics.newImage("graphics/SMB/hats/beanie.png");hat[i].graphic:setFilter("nearest", "nearest")
77
78i = 10
79hat[i] = {}
80hat[i].x = 7
81hat[i].y = -5
82hat[i].height = 8
83hat[i].graphic = love.graphics.newImage("graphics/SMB/hats/toilet.png");hat[i].graphic:setFilter("nearest", "nearest")
84
85i = 11
86hat[i] = {}
87hat[i].x = 5
88hat[i].y = -4
89hat[i].height = 5
90hat[i].graphic = love.graphics.newImage("graphics/SMB/hats/indian.png");hat[i].graphic:setFilter("nearest", "nearest")
91
92i = 12
93hat[i] = {}
94hat[i].x = 6
95hat[i].y = -1
96hat[i].height = 3
97hat[i].graphic = love.graphics.newImage("graphics/SMB/hats/officerhat.png");hat[i].graphic:setFilter("nearest", "nearest")
98
99i = 13
100hat[i] = {}
101hat[i].x = 5
102hat[i].y = -3
103hat[i].height = 6
104hat[i].graphic = love.graphics.newImage("graphics/SMB/hats/crown.png");hat[i].graphic:setFilter("nearest", "nearest")
105
106i = 14
107hat[i] = {}
108hat[i].x = 5
109hat[i].y = -5
110hat[i].height = 9
111hat[i].graphic = love.graphics.newImage("graphics/SMB/hats/tophat.png");hat[i].graphic:setFilter("nearest", "nearest")
112
113i = 15
114hat[i] = {}
115hat[i].x = 6
116hat[i].y = 1
117hat[i].height = 2
118hat[i].graphic = love.graphics.newImage("graphics/SMB/hats/batter.png");hat[i].graphic:setFilter("nearest", "nearest")
119
120i = 16
121hat[i] = {}
122hat[i].x = 6
123hat[i].y = 0
124hat[i].height = 2
125hat[i].graphic = love.graphics.newImage("graphics/SMB/hats/bonk.png");hat[i].graphic:setFilter("nearest", "nearest")
126
127i = 17
128hat[i] = {}
129hat[i].x = 6
130hat[i].y = 0
131hat[i].height = 3
132hat[i].graphic = love.graphics.newImage("graphics/SMB/hats/bakerboy.png");hat[i].graphic:setFilter("nearest", "nearest")
133
134i = 18
135hat[i] = {}
136hat[i].x = 5
137hat[i].y = 1
138hat[i].height = 2
139hat[i].graphic = love.graphics.newImage("graphics/SMB/hats/troublemaker.png");hat[i].graphic:setFilter("nearest", "nearest")
140
141i = 19
142hat[i] = {}
143hat[i].x = 7
144hat[i].y = 1
145hat[i].height = 3
146hat[i].graphic = love.graphics.newImage("graphics/SMB/hats/whoopee.png");hat[i].graphic:setFilter("nearest", "nearest")
147
148i = 20
149hat[i] = {}
150hat[i].x = 6
151hat[i].y = -1
152hat[i].height = 4
153hat[i].graphic = love.graphics.newImage("graphics/SMB/hats/milkman.png");hat[i].graphic:setFilter("nearest", "nearest")
154
155i = 21
156hat[i] = {}
157hat[i].x = 6
158hat[i].y = 1
159hat[i].height = 2
160hat[i].graphic = love.graphics.newImage("graphics/SMB/hats/bombingrun.png");hat[i].graphic:setFilter("nearest", "nearest")
161
162i = 22
163hat[i] = {}
164hat[i].x = 4
165hat[i].y = 3
166hat[i].height = 0
167hat[i].graphic = love.graphics.newImage("graphics/SMB/hats/bonkboy.png");hat[i].graphic:setFilter("nearest", "nearest")
168
169i = 23
170hat[i] = {}
171hat[i].x = 6
172hat[i].y = 0
173hat[i].height = 3
174hat[i].graphic = love.graphics.newImage("graphics/SMB/hats/flippedtrilby.png");hat[i].graphic:setFilter("nearest", "nearest")
175
176i = 24
177hat[i] = {}
178hat[i].x = 7
179hat[i].y = 0
180hat[i].height = 3
181hat[i].graphic = love.graphics.newImage("graphics/SMB/hats/superfan.png");hat[i].graphic:setFilter("nearest", "nearest")
182
183i = 25
184hat[i] = {}
185hat[i].x = 6
186hat[i].y = -2
187hat[i].height = 4
188hat[i].graphic = love.graphics.newImage("graphics/SMB/hats/familiarfez.png");hat[i].graphic:setFilter("nearest", "nearest")
189
190i = 26
191hat[i] = {}
192hat[i].x = 3
193hat[i].y = 0
194hat[i].height = 4
195hat[i].graphic = love.graphics.newImage("graphics/SMB/hats/santahat.png");hat[i].graphic:setFilter("nearest", "nearest")
196
197i = 27
198hat[i] = {}
199hat[i].x = 6
200hat[i].y = 0
201hat[i].height = 2
202hat[i].graphic = love.graphics.newImage("graphics/SMB/hats/sailor.png")
203
204i = 28
205hat[i] = {}
206hat[i].x = 3
207hat[i].y = -3
208hat[i].height = 5
209hat[i].graphic = love.graphics.newImage("graphics/SMB/hats/koopa.png")
210
211table.insert(hat, {x = 5, y = -5, height = 5, graphic = love.graphics.newImage("graphics/SMB/hats/blooper.png")})
212
213--30:
214table.insert(hat, {x = 7, y = 1, height = 2, graphic = love.graphics.newImage("graphics/SMB/hats/shyguy.png")})
215
216table.insert(hat, {x = 6, y = 4, height = 4, graphic = love.graphics.newImage("graphics/SMB/hats/goodnewseverybody.png")})
217
218table.insert(hat, {x = 5, y = 1, height = 4, graphic = love.graphics.newImage("graphics/SMB/hats/jetset.png")})
219
220table.insert(hat, {x = 6, y = 1, height = 4, graphic = love.graphics.newImage("graphics/SMB/hats/bestpony.png")})