overte-www/scripts/poker_constants.js

39 lines
1.4 KiB
JavaScript
Raw Normal View History

2026-03-18 05:50:44 +00:00
// poker_constants.js — shared constants for poker entity scripts
// Script.require() this from poker_sit.js, poker_spawn.js, etc.
//
// Seat offsets are in local space relative to the table entity's position
// and rotation. Y is height above table origin, X/Z are horizontal offsets.
// Yaw is the direction the seated avatar faces, in degrees.
module.exports = {
// Seat layouts keyed by seat count
POKER_SEATS: {
7: [
{ offset: { x: 0.95, y: 0.8, z: -1.00 }, yaw: 105 },
{ offset: { x: -0.05, y: 0.8, z: -1.80 }, yaw: 180 },
{ offset: { x: -1.05, y: 0.8, z: -1.07 }, yaw: -110 },
{ offset: { x: -1.15, y: 0.8, z: 0.00 }, yaw: -90 },
{ offset: { x: -1.05, y: 0.8, z: 1.07 }, yaw: -70 },
{ offset: { x: -0.05, y: 0.8, z: 1.80 }, yaw: 0 },
{ offset: { x: 0.95, y: 0.8, z: 1.00 }, yaw: 80 },
],
// Add 6 and 9 seat layouts here when custom tables are ready
},
// Seat pad entity appearance
POKER_SEAT_PAD: {
2026-03-19 05:28:12 +00:00
dimensions: { x: 0.4, y: 0.4, z: 0.01 },
2026-03-19 02:59:48 +00:00
imageURL: "https://wizards.cyou/images/sit.png",
2026-03-18 05:50:44 +00:00
alpha: 0.7,
},
// Table mesh URL
2026-03-19 03:01:59 +00:00
POKER_TABLE_MODEL_URL: "https://wizards.cyou/models/poker_table.glb",
2026-03-18 05:50:44 +00:00
// API base URLs
API_BASE: "https://wizards.cyou/api",
POKER_BASE: "https://wizards.cyou/poker",
};