local gen= {} function gen:new(game,winner) local End = game.objects.base:new(game,0,0,0,0) End.sprite = game:newImage("text/win/"..winner..".png") End:register("End") function End:step(dt) end function End:draw() lg.draw(self.sprite,(self.game.WIDTH-self.sprite:getWidth())/2,(self.game.HEIGHT-self.sprite:getHeight())/2) end function End:MouseCallback(x,y) self.game.scenes:main(game) end return End end return gen