major refactor

This commit is contained in:
Bernardo Magri
2025-04-24 09:53:09 +01:00
parent 0cdc668629
commit a4dccdc2a3
11 changed files with 2069 additions and 474 deletions

118
resources/minesweeper.svg Normal file
View File

@@ -0,0 +1,118 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
viewBox="0 0 100 100"
width="100"
height="100"
version="1.1"
id="svg9"
sodipodi:docname="minesweeper.svg"
xml:space="preserve"
inkscape:version="1.3.2 (091e20e, 2023-11-25)"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg"><defs
id="defs9" /><sodipodi:namedview
id="namedview9"
pagecolor="#4c524e"
bordercolor="#eeeeee"
borderopacity="1"
inkscape:showpageshadow="0"
inkscape:pageopacity="0"
inkscape:pagecheckerboard="0"
inkscape:deskcolor="#d1d1d1"
inkscape:zoom="10.337901"
inkscape:cx="34.097831"
inkscape:cy="41.207591"
inkscape:window-width="2560"
inkscape:window-height="1387"
inkscape:window-x="0"
inkscape:window-y="25"
inkscape:window-maximized="1"
inkscape:current-layer="svg9" /><rect
x="4.573761"
y="5.6444345"
width="90"
height="90"
rx="15"
fill="#f9db9b"
stroke="#6d4c41"
stroke-width="4"
id="rect1" /><rect
x="9.4985218"
y="10.021999"
width="25"
height="25"
fill="#f44336"
rx="5"
id="rect2" /><circle
cx="54.573761"
cy="55.644436"
r="18"
fill="#4e342e"
id="circle2" /><path
d="m 59.573761,40.644434 q 5,-10 10,-5"
stroke="#4e342e"
stroke-width="3"
fill="none"
id="path2" /><line
x1="69.34153"
y1="29.115864"
x2="64.542198"
y2="27.71357"
stroke="#ff9800"
stroke-width="2"
id="line2" /><line
x1="72.705803"
y1="25.333492"
x2="70.999474"
y2="20.633656"
stroke="#ff9800"
stroke-width="2"
id="line3" /><line
x1="79.007629"
y1="27.03516"
x2="82.793045"
y2="23.768559"
stroke="#ff9800"
stroke-width="2"
id="line4" /><line
x1="79.630043"
y1="33.17028"
x2="84.25367"
y2="35.073471"
stroke="#ff9800"
stroke-width="2"
id="line5" /><line
x1="75.123314"
y1="35.76083"
x2="76.230385"
y2="40.63673"
stroke="#ff9800"
stroke-width="2"
id="line6" /><line
x1="72.073761"
y1="31.314306"
x2="74.573761"
y2="26.98418"
stroke="#ff9800"
stroke-width="2"
id="line7" /><circle
cx="29.573761"
cy="75.644432"
r="4"
fill="#4e342e"
id="circle7" /><circle
cx="74.573761"
cy="75.644432"
r="4"
fill="#4e342e"
id="circle8" /><circle
cx="74.573761"
cy="30.644434"
r="4"
fill="#4e342e"
id="circle9" /><path
d="m 17.36416,15.724382 c 0,-0.571957 -0.462088,-1.034051 -1.034044,-1.034051 -0.571963,0 -1.03405,0.462094 -1.03405,1.034051 v 1.034043 9.823461 3.619167 c 0,0.571963 0.462087,1.03405 1.03405,1.03405 0.571956,0 1.034044,-0.462087 1.034044,-1.03405 v -4.136188 l 2.077796,-0.52026 c 1.328101,-0.332834 2.73376,-0.177725 3.958464,0.433007 1.428274,0.714144 3.085984,0.80139 4.578889,0.239123 l 1.121298,-0.420079 c 0.403926,-0.151878 0.672137,-0.536414 0.672137,-0.969421 v -8.000947 c 0,-0.743225 -0.782001,-1.227935 -1.447674,-0.895095 l -0.31021,0.155103 c -1.496138,0.749688 -3.257253,0.749688 -4.75339,0 -1.134225,-0.568725 -2.436478,-0.710906 -3.667644,-0.403921 l -2.229666,0.559029 z"
id="path1"
style="fill:#6d4c41;fill-opacity:1;stroke-width:0.032314" /></svg>

After

Width:  |  Height:  |  Size: 3.4 KiB

View File

@@ -0,0 +1,11 @@
[Desktop Entry]
Name=MineSweeper
GenericName=Minesweeper Game
Comment=Classic minesweeper game with modern GTK UI
Keywords=game;puzzle;mine;
Exec=minesweeper
Icon=minesweeper
Terminal=false
Type=Application
Categories=Game;LogicGame;
StartupNotify=true