Skip to content

Commit 5ce721d

Browse files
committed
cosmetics
1 parent a7c4b82 commit 5ce721d

File tree

5 files changed

+19
-19
lines changed

5 files changed

+19
-19
lines changed

common/images/chips/folded.png

83 Bytes
Loading

common/images/chips/pieces.svg

Lines changed: 12 additions & 12 deletions
Loading

common/images/chips/playing.png

52 Bytes
Loading

games/cards/game.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ board.add_team('manager', ['hand_white.png', 'fist_white.png' ], '#cccccc', tru
5959
// Set up the team zones based on the number of seats
6060
number_of_teams = 8;
6161
theta = 0.5*(360/number_of_teams)*Math.PI/180.0; // Wedge angle in radians
62-
R1 = 500; // Inner radius of team zones
62+
R1 = 525; // Inner radius of team zones
6363
R2 = (R1*Math.cos(theta)+250)/Math.cos(theta); // Outer radius of team zones
6464
board.r_step = 360.0/number_of_teams;
6565

@@ -167,8 +167,8 @@ function collect_all_cards() {
167167
}
168168
else {
169169
team_angle=45*(team-1);
170-
var d = rotate_vector(R1*0.289, R1*0.75, team_angle);
171-
var dd = rotate_vector(R1*0.289, R1*0.77, team_angle);
170+
var d = rotate_vector(R1*0.270, R1*0.831, team_angle);
171+
var dd = rotate_vector(R1*0.270, R1*0.851, team_angle);
172172
}
173173

174174
// collect the cards (pieces,x,y,shuffle,active_image,r_piece,r_stack,offset_x,offset_y,from_top)

games/poker/game.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ board.add_team('manager', ['hand_white.png', 'fist_white.png' ], '#cccccc', tru
5959
// Set up the team zones based on the number of seats
6060
number_of_teams = 8;
6161
theta = 0.5*(360/number_of_teams)*Math.PI/180.0; // Wedge angle in radians
62-
R1 = 500; // Inner radius of team zones
62+
R1 = 525; // Inner radius of team zones
6363
R2 = (R1*Math.cos(theta)+300)/Math.cos(theta); // Outer radius of team zones
6464
board.r_step = 360.0/number_of_teams;
6565

@@ -228,8 +228,8 @@ function collect_all_cards() {
228228
}
229229
else {
230230
team_angle=45*(team-1);
231-
var d = rotate_vector(R1*0.289, R1*0.75, team_angle);
232-
var dd = rotate_vector(R1*0.289, R1*0.77, team_angle);
231+
var d = rotate_vector(R1*0.27, R1*0.831, team_angle);
232+
var dd = rotate_vector(R1*0.27, R1*0.853, team_angle);
233233
}
234234

235235
// collect the cards (pieces,x,y,shuffle,active_image,r_piece,r_stack,offset_x,offset_y,from_top)
@@ -393,7 +393,7 @@ function distribute_folders() {
393393
var p = folders[i];
394394

395395
// Get the rotated coordinate of the dealt plate
396-
var d = rotate_vector(0,-R1*0.88,-i*45);
396+
var d = rotate_vector(0,-R1*0.883,-i*45);
397397

398398
p.set_target(d.x, -d.y, -i*45);
399399
console.log('pants', i+1, pants.includes(i+1));

0 commit comments

Comments
 (0)