<commit_before>local o = {}
local SECONDS = 4

o.init = function(dt)
	o.countdown = SECONDS
	o.oldcountdown = o.countdown -1
end

o.update = function(dt)
	o.countdown = o.countdown - dt
	if (o.countdown <= -1)then
		love.setgamestate(1)
	end
end

o.draw = function()
	G.setFont(FONT_LARGE)
	G.setColor(255, 127, 0, 127)
	local countdown = math.floor(o.countdown+0.5)
	local text = tostring(countdown)
	if countdown <= 0 then
		text = "Go!"
	elseif countdown >= 4 then
		text = ""
	else if countdown >= 1 then
		if (o.oldcountdown == countdown)then
			if countdown == 3 then
				love.sounds.playSound("sounds/super_phaser.mp3")
			end
			love.sounds.playSound("sounds/phaser_2.mp3")
			o.oldcountdown = countdown -1
		end
	end
	end
	G.printf(text, 0, 240, W.getWidth(), "center")
	G.setColor(255, 255, 255, 127)
end<commit_msg>played around with the scaling. The effect is not quite what I had intended, but at least its animating in some [exciting?] way.<commit_after>local o = {}
local SECONDS = 4

o.init = function(dt)
	o.countdown = SECONDS
	o.oldcountdown = o.countdown -1
end

o.update = function(dt)
	o.countdown = o.countdown - dt
	if (o.countdown <= -1)then
		love.setgamestate(1)
	end
end

o.draw = function()
	G.setFont(FONT_LARGE)
	G.setColor(255, 127, 0, 127)
	local countdown = math.floor(o.countdown+0.5)
	local text = tostring(countdown)
	if countdown <= 0 then
		text = "Go!"
	elseif countdown >= 4 then
		text = ""
	else if countdown >= 1 then
		if (o.oldcountdown == countdown)then
			if countdown == 3 then
				love.sounds.playSound("sounds/super_phaser.mp3")
			end
			love.sounds.playSound("sounds/phaser_2.mp3")
			o.oldcountdown = countdown -1
		end
	end
	end
	local scale = 1-(o.countdown-o.oldcountdown)/2
	G.printf(text, 0, 240, W.getWidth(), "center",0,scale,scale)
	G.setColor(255, 255, 255, 127)
end
{'fraction_non_alphanumeric': 0.13395297977036633, 'fraction_numerical': 0.045379989065062874, 'mean_word_length': 3.704370179948586, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5365079', 'n_tokens_mistral': 821, 'n_tokens_neox': 728, 'n_words': 182}