38 lines
1.4 KiB
JavaScript
38 lines
1.4 KiB
JavaScript
// 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: {
|
|
dimensions: { x: 0.6, y: 0.6, z: 0.01 },
|
|
imageURL: "https://wizards.cyou/images/sit.png",
|
|
alpha: 0.7,
|
|
},
|
|
|
|
// Table mesh URL
|
|
POKER_TABLE_MODEL_URL: "https://wizards.cyou/models/table.glb",
|
|
|
|
// API base URLs
|
|
API_BASE: "https://wizards.cyou/api",
|
|
POKER_BASE: "https://wizards.cyou/poker",
|
|
|
|
};
|