add create game

This commit is contained in:
2026-09-03 01:28:39 +07:00
parent 8b8fb33d45
commit aec2e550eb
57 changed files with 2734 additions and 1953 deletions
-1
View File
@@ -1 +0,0 @@
function e(e){return typeof e==`string`?e.endsWith(`px`)?Number(e.slice(0,e.length-2)):Number(e):e}function t(e){if(e!=null)return typeof e==`number`?`${e}px`:e.endsWith(`px`)?e:`${e}px`}function n(e,t){let n=e.trim().split(/\s+/g),r={top:n[0]};switch(n.length){case 1:r.right=n[0],r.bottom=n[0],r.left=n[0];break;case 2:r.right=n[1],r.left=n[1],r.bottom=n[0];break;case 3:r.right=n[1],r.bottom=n[2],r.left=n[1];break;case 4:r.right=n[1],r.bottom=n[2],r.left=n[3];break;default:throw Error(`[seemly/getMargin]:`+e+` is not a valid value.`)}return t===void 0?r:r[t]}function r(e,t){let[n,r]=e.split(` `);return t?t===`row`?n:r:{row:n,col:r||n}}export{t as i,r as n,n as r,e as t};