Where can I download the Hump library?

Asked

Viewed 54 times

0

On my American Stack Overflow account,I asked how I could make the game wait a certain number of seconds. One of the results was using Hump.timer, for example:

function love.load()
    timer=require "hump.timer"
    face=love.graphics.newImage("face.png")
end

function love.update(dt)
    timer.update(dt)
end

function love.draw()
    timer.after(1,function()
        love.graphics.draw(face)
    end)
end

but then an error occurred saying that the "Hump.timer" module was not found

So I asked why this happened to the person who gave me Hump.timer,and he said:Did you download the Hump library and add it to your project folder? Also, "Hump.timer" on the require line means that the.lua timer is inside an Hump folder.So make sure that’s where the.lua timer is located. Otherwise Voce can put the file timer.lua in the same directory as main.lua, and just use require "timer"

Only I don’t know where to download this library. If someone helps me,

1 answer

2


  • brigado. And that I was researching timer.moon download kkk

  • If you solved your problem accept the answer for in the future people who have the same doubt know that the link is correct.

  • thanks for reminding me,I forgot that detail

Browser other questions tagged

You are not signed in. Login or sign up in order to post.