~marnold128/pacetime.love

42bf1883d654a3b62500a3f2ee123ecdc708cf4d — Matt Arnold 9 months ago 40fd5bd main
Final build of this version of the project
4 files changed, 9 insertions(+), 7 deletions(-)

A conf.lua
M main.lua
M playlist.txt
R config.lua => settings.lua
A conf.lua => conf.lua +5 -0
@@ 0,0 1,5 @@
function love.conf(t)
  t.window.width = 1024
  t.window.height = 768
  t.identity = "ThePacer"
end

M main.lua => main.lua +3 -7
@@ 11,7 11,7 @@
]]

require("button")
require("config")
require("settings")
divMax = timerMaxDiv
function str_split (inputstr, sep)
        if sep == nil then


@@ 41,7 41,6 @@ end


function playlistCallback(audioSrc)
    print("Entered playlist conditional")

    if (timerActive) and not audioSrc:isPlaying() then



@@ 79,7 78,8 @@ function love.load()
end

function startButtonCallback()
    

    ourtext = "You Got this"
    if not timerActive then
        timerMaxDiv = divMax
        love.audio.stop() 


@@ 94,7 94,6 @@ function startButtonCallback()
        if bgIsPlaylist then bgm = love.audio.newSource(randomize_source(plistTable), "stream") end
        love.audio.play(bgm)
    end
    ourtext = "You Got this"
end

function stopButtonCallback()


@@ 112,9 111,7 @@ local buttons = {

  
function love.mousepressed(mx, my, mb)
    print("event fired!")
    if mb then
        print("Mouse button clicked")
      for index, button in ipairs(buttons) do
        ButtonMaker.check_button(button, mx, my)
      end


@@ 122,7 119,6 @@ function love.mousepressed(mx, my, mb)
end

function timerCallBack()
    print("Timer Callback fired")
     if love.timer.getTime() - timerStartTime >= timerCountDown then
        if timerMaxDiv <= 1 then
            ourtext = "Success Commrade"

M playlist.txt => playlist.txt +1 -0
@@ 1,3 1,4 @@
internationale.ogg
pacetime.ogg
placebo.xm
80ies_are_90ies.xm

R config.lua => settings.lua +0 -0