Skip to content

Commit

Permalink
add slingshot line
Browse files Browse the repository at this point in the history
  • Loading branch information
krmpotic committed Aug 22, 2023
1 parent a22275e commit 3f3905a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ function love.draw()
local x, y = love.mouse.getPosition()
love.graphics.draw(b, b_x, b_y)

if love.mouse.isDown(1) then
love.graphics.line(x,y,x_press,y_press)
end
if love.mouse.isDown(2) then
love.graphics.line(x,y,b_x+b_w/2,b_y+b_h/2)
end
Expand Down

0 comments on commit 3f3905a

Please sign in to comment.