8 Logo snoke(0, 0, {
' ', COLOR_WHITE, COLOR_WHITE}, {
' ', COLOR_BLACK, COLOR_RED}, 0);
10 snokeBottomBorder = 3;
12 snokeSize = snoke.getSize(),
13 menuStartPoint, snokeStartPoint;
15 snokeStartPoint.
x = (consoleSize.
x - snokeSize.x) / 2;
16 snokeStartPoint.y = (consoleSize.
y - snokeSize.y - menuHeight - snokeBottomBorder) / 2;
17 snoke.setPosition(snokeStartPoint.x, snokeStartPoint.y);
20 menuStartPoint.x = snokeStartPoint.x;
21 menuStartPoint.y = snokeStartPoint.y + snokeSize.y + snokeBottomBorder;
23 Menu* menu =
new Menu(menuStartPoint.x, menuStartPoint.y, snokeSize.x, menuHeight);
27 menu->
add(
"Settings");
28 menu->
add(
"About game");
Point getConsoleSize()
Gets size of current console screen in symdols.
Coordinates and style of the cell in console window.