Skip to content

Commit

Permalink
cosmetics
Browse files Browse the repository at this point in the history
  • Loading branch information
jaxankey committed Oct 30, 2019
1 parent a7c4b82 commit 5ce721d
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 19 deletions.
Binary file modified common/images/chips/folded.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
24 changes: 12 additions & 12 deletions common/images/chips/pieces.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified common/images/chips/playing.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions games/cards/game.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ board.add_team('manager', ['hand_white.png', 'fist_white.png' ], '#cccccc', tru
// Set up the team zones based on the number of seats
number_of_teams = 8;
theta = 0.5*(360/number_of_teams)*Math.PI/180.0; // Wedge angle in radians
R1 = 500; // Inner radius of team zones
R1 = 525; // Inner radius of team zones
R2 = (R1*Math.cos(theta)+250)/Math.cos(theta); // Outer radius of team zones
board.r_step = 360.0/number_of_teams;

Expand Down Expand Up @@ -167,8 +167,8 @@ function collect_all_cards() {
}
else {
team_angle=45*(team-1);
var d = rotate_vector(R1*0.289, R1*0.75, team_angle);
var dd = rotate_vector(R1*0.289, R1*0.77, team_angle);
var d = rotate_vector(R1*0.270, R1*0.831, team_angle);
var dd = rotate_vector(R1*0.270, R1*0.851, team_angle);
}

// collect the cards (pieces,x,y,shuffle,active_image,r_piece,r_stack,offset_x,offset_y,from_top)
Expand Down
8 changes: 4 additions & 4 deletions games/poker/game.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ board.add_team('manager', ['hand_white.png', 'fist_white.png' ], '#cccccc', tru
// Set up the team zones based on the number of seats
number_of_teams = 8;
theta = 0.5*(360/number_of_teams)*Math.PI/180.0; // Wedge angle in radians
R1 = 500; // Inner radius of team zones
R1 = 525; // Inner radius of team zones
R2 = (R1*Math.cos(theta)+300)/Math.cos(theta); // Outer radius of team zones
board.r_step = 360.0/number_of_teams;

Expand Down Expand Up @@ -228,8 +228,8 @@ function collect_all_cards() {
}
else {
team_angle=45*(team-1);
var d = rotate_vector(R1*0.289, R1*0.75, team_angle);
var dd = rotate_vector(R1*0.289, R1*0.77, team_angle);
var d = rotate_vector(R1*0.27, R1*0.831, team_angle);
var dd = rotate_vector(R1*0.27, R1*0.853, team_angle);
}

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

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

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

0 comments on commit 5ce721d

Please sign in to comment.