However, I think you missed an update in the doc. In the hump.class global description, you don't specify the "init" function.
Code: Select all
Critter = Class{function(self, pos, img)
self.pos = pos
self.img = img
end}
Code: Select all
Critter = Class{function(self, pos, img)
self.pos = pos
self.img = img
end}
Code: Select all
Error: Syntax error: eros/helpers.lua:184: invalid escape sequence near '''
Code: Select all
if string.find(file, '\.' .. extension .. '$') then