Commit e3f07b2c authored by Mahmoud Aglan's avatar Mahmoud Aglan

fix: correct P3/P4 base positions and add domino route to games hub

- P3/P4 base coordinates restored to proper center (12.5) offset
- Added domino to gameRoutes so it shows play button instead of coming soon
- Fixed icon/cover class keys from "dominoes" to "domino" to match DB
Co-Authored-By: 's avatarClaude Opus 4.6 <noreply@anthropic.com>
parent 419bfdb8
...@@ -28,13 +28,14 @@ document.addEventListener('DOMContentLoaded', async () => { ...@@ -28,13 +28,14 @@ document.addEventListener('DOMContentLoaded', async () => {
const gameRoutes = { const gameRoutes = {
chess: '/play', chess: '/play',
ludo: '/ludo' ludo: '/ludo',
domino: '/domino'
}; };
const gameIcons = { const gameIcons = {
chess: 'icon-play', chess: 'icon-play',
ludo: 'icon-ludo', ludo: 'icon-ludo',
dominoes: 'icon-domino', domino: 'icon-domino',
backgammon: 'icon-backgammon', backgammon: 'icon-backgammon',
trix: 'icon-cards', trix: 'icon-cards',
baloot: 'icon-cards', baloot: 'icon-cards',
...@@ -44,7 +45,7 @@ document.addEventListener('DOMContentLoaded', async () => { ...@@ -44,7 +45,7 @@ document.addEventListener('DOMContentLoaded', async () => {
const gameCoverClasses = { const gameCoverClasses = {
chess: 'game-card-cover--chess', chess: 'game-card-cover--chess',
ludo: 'game-card-cover--ludo', ludo: 'game-card-cover--ludo',
dominoes: 'game-card-cover--domino', domino: 'game-card-cover--domino',
backgammon: 'game-card-cover--backgammon', backgammon: 'game-card-cover--backgammon',
trix: 'game-card-cover--trix', trix: 'game-card-cover--trix',
baloot: 'game-card-cover--baloot', baloot: 'game-card-cover--baloot',
......
...@@ -118,17 +118,17 @@ var LudoConstants = (function() { ...@@ -118,17 +118,17 @@ var LudoConstants = (function() {
602: [2.8, 4.2], 602: [2.8, 4.2],
603: [4.2, 4.2], 603: [4.2, 4.2],
// P3 Base positions (top-right quadrant, center at 11.5, 3.5) // P3 Base positions (top-right quadrant, center at 12.5, 3.5)
700: [10.8, 2.8], 700: [11.8, 2.8],
701: [12.2, 2.8], 701: [13.2, 2.8],
702: [10.8, 4.2], 702: [11.8, 4.2],
703: [12.2, 4.2], 703: [13.2, 4.2],
// P4 Base positions (bottom-right quadrant, center at 11.5, 12.5) // P4 Base positions (bottom-right quadrant, center at 12.5, 12.5)
800: [10.8, 11.8], 800: [11.8, 11.8],
801: [12.2, 11.8], 801: [13.2, 11.8],
802: [10.8, 13.2], 802: [11.8, 13.2],
803: [12.2, 13.2] 803: [13.2, 13.2]
}; };
var BASE_POSITIONS = { var BASE_POSITIONS = {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment