print version in the main menu

This commit is contained in:
Alexey 2025-10-23 15:19:10 +03:00
commit a47e14ffca

View file

@ -1,9 +1,14 @@
require 'menu.state'
require 'button'
require 'text'
require 'point'
require 'config'
local common = require 'menu.common'
local versionPos = Point:new( 0, 468 )
local versionSize = Point:new( 800 )
local startButton = Button:new(
common.buttonTopPos,
common.buttonSize,
@ -34,7 +39,14 @@ local title = Text:new(
'Lines'
)
local versionText = Text:new(
versionPos,
versionSize,
string.format("Version %s", VERSION),
'left'
)
return MenuState:new(
{ startButton, exitGameButton },
{ title }
{ title, versionText }
)