<commit_before>-- MainMenu module

MainMenu = {}

function MainMenu.new()
	local self = table.copy(MainMenu)
	self.buttons = {}
	local button = makeButtonCentered(640, 400, 440, 100, "Physics Demo")
	button.onClickUp = function()
		game:setMode(MODE_PHYSICS_TESTS)
	end
	table.insert(self.buttons, button)
	local button = makeButtonCentered(640, 510, 440, 100, "Basic 3D Tests")
	button.onClickUp = function()
		game:setMode(MODE_3D_TESTS)
	end
	table.insert(self.buttons, button)
	local button = makeButtonCentered(640, 620, 440, 100, "Example Game")
	button.onClickUp = function()
		game:setMode(MODE_PLAY)
	end
	table.insert(self.buttons, button)
	button = makeButtonCentered(180, 620, 280, 100, "Options")
	button.onClickUp = function()
		game:setMode(MODE_OPTIONS)
	end
	table.insert(self.buttons, button)
	button = makeButtonCentered(1100, 620, 280, 100, "Reload")
	button.onClickUp = function()
		logmsg("Reload")
		game:engineReset()
	end
	table.insert(self.buttons, button)
	self.showAnim = 0
	return self
end

function MainMenu:show()
	self.showAnim = 0
end

function MainMenu:update(tickDelta)
	for i,v in ipairs(self.buttons) do
		v:update(tickDelta)<commit_msg>BT2 - main menu rearrange<commit_after>-- MainMenu module

MainMenu = {}

function MainMenu.new()
	local self = table.copy(MainMenu)
	self.buttons = {}
    local x = 640
    local y = 400
    local width = 440
    local height = 100
    local yNext = 110
	local button = makeButtonCentered(x, y, width, height, "Example Game")
	button.onClickUp = function()
		game:setMode(MODE_PLAY)
	end
	table.insert(self.buttons, button)
    y = y + yNext
	local button = makeButtonCentered(x, y, width, height, "Physics Demo")
	button.onClickUp = function()
		game:setMode(MODE_PHYSICS_TESTS)
	end
	table.insert(self.buttons, button)
    y = y + yNext
	local button = makeButtonCentered(x, y, width, height, "Basic 3D Tests")
	button.onClickUp = function()
		game:setMode(MODE_3D_TESTS)
	end
	table.insert(self.buttons, button)
	button = makeButtonCentered(180, 620, 280, 100, "Options")
	button.onClickUp = function()
		game:setMode(MODE_OPTIONS)
	end
	table.insert(self.buttons, button)
	button = makeButtonCentered(1100, 620, 280, 100, "Reload")
	button.onClickUp = function()
		logmsg("Reload")
		game:engineReset()
	end
	table.insert(self.buttons, button)
	self.showAnim = 0
	return self
end

function MainMenu:show()
	self.showAnim = 0
end

function MainMenu:update(tickDelta)
	for i,v in ipairs(self.buttons) do
		v:update(tickDelta)
{'fraction_non_alphanumeric': 0.11990407673860912, 'fraction_numerical': 0.04396482813749001, 'mean_word_length': 4.931279620853081, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4323000', 'n_tokens_mistral': 1003, 'n_tokens_neox': 886, 'n_words': 215}