Skip to content

Instantly share code, notes, and snippets.

@codebykeoma
Created April 20, 2019 17:38
Show Gist options
  • Select an option

  • Save codebykeoma/1e4cfcf17ad2a88fd5ad4cab2222fc76 to your computer and use it in GitHub Desktop.

Select an option

Save codebykeoma/1e4cfcf17ad2a88fd5ad4cab2222fc76 to your computer and use it in GitHub Desktop.

Revisions

  1. code by keoma created this gist Apr 20, 2019.
    16 changes: 16 additions & 0 deletions test.lua
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,16 @@
    function love.load()
    x = 100
    y = 100
    width = 200
    height = 150
    speed = 75
    end

    function love.draw()
    love.graphics.rectangle("line", x, y, width, height)
    end

    function love.update(dt)
    print(dt)
    x = x + (speed * dt)
    end