Andy Janata
bdf288a379
Add game option for using idle timer. Implementation when not using idle timer is it instead uses Integer.MAX_VALUE as the number of milliseconds.
2013-04-13 10:39:38 -07:00
Andy Janata
5d26113605
Checkbox to locally hide a game password. Fixes #31 .
2013-04-06 14:30:12 -07:00
Andy Janata
660fd2d5f1
prevent wrapping in the middle of cardset names
2013-03-26 20:31:46 -07:00
Andy Janata
a43e087fa2
card set descriptions
2013-03-26 17:19:01 -07:00
Andy Janata
ccca422b8c
show game-related log messages in the game's log instead of the global log
2013-02-24 18:57:04 -08:00
Andy Janata
300e7e09b7
Fix up per-game chats so global chat still works. Fix graphical glitch with game chat tab. Make enter work in game chat box. Clear game chat log when joinging game.
2013-02-24 18:47:05 -08:00
Matt Mullins
b1c8e52dd4
Remove the chat tab when leaving a game
2013-02-24 17:48:49 -08:00
Matt Mullins
d110b59b9c
Create a new tab for game-specific chat.
...
Signed-off-by: Matt Mullins <mmullins@mmlx.us>
2013-02-23 14:18:22 -08:00
Andy Janata
7cf9413861
- add card set support to the game itself
...
- add watermark field to cards to indicate what to display over the logo
- display said watermark
2012-07-07 15:01:33 -07:00
Andy Janata
21e0aea9a3
add button to display game options in middle of game. do not allow host to change options in middle of game (on client, server should check this too)
2012-03-18 21:38:24 -07:00
Andy Janata
315549d87f
game passwords, and display more game information in the lobby list
2012-03-18 21:20:48 -07:00
Andy Janata
a1c2bbce80
allow to choose between first version cards, second version cards, or all cards at once.
2012-03-17 20:17:32 -07:00
Andy Janata
1237d4c8a2
move round cards up the z-order again
2012-03-16 18:34:20 -07:00
Andy Janata
e0391b8d4e
skip and kick idle players
2012-03-16 16:59:50 -07:00
Andy Janata
95fe597184
add intermission after judge leaves game. it looks weird, and acts a bit oddly, especially for the previous judge: they can pick a winner but it won't let them choose on the server. still I think this is better than the old way of just starting the next round immediately.
2012-03-15 23:43:43 -07:00
Andy Janata
27a58856d8
fix host options with the card set hidden
2012-03-15 20:19:24 -07:00
Andy Janata
a6f1a139be
game host can configure maximum players and score goal
2012-03-15 20:06:23 -07:00
Andy Janata
a679a7a36c
- confirm leaving game
...
- initial game options. it never displays it right now since it isn't done
2012-03-15 13:50:42 -07:00
Andy Janata
2931fb7492
add TODO about cards blanking when players join and leave game
2012-03-12 22:20:17 -07:00
Andy Janata
f9b6de36d0
jsdoc cleanup
2012-02-20 12:34:26 -08:00
Andy Janata
02e2715809
Don't overwrite displaying the last round's black card when a new black card is dealt, if we are looking at the last round's results. Fixes #4 .
2012-02-20 11:59:47 -08:00
Andy Janata
3058cf9498
- the re-centering of "you are czar" hand overlay wasn't working, so I removed it.
...
- ability to show the last round. this updates as soon as a new round winner is selected, and is tracked entirely on the client
2012-02-07 19:30:30 -08:00
Andy Janata
89da813b28
refactor around the card resize code so it's only in one place
2012-02-07 17:06:23 -08:00
Andy Janata
f4ef1b3521
make the hand card scaling use the same algorithm as the round cards, to prevent them from getting larger than 100% scale
2012-02-07 16:31:56 -08:00
Andy Janata
463432e369
Gray out the Card Czar's hand and display a message over it.
2012-02-07 14:15:51 -08:00
Andy Janata
88b68c87b6
comment ALL the files!
2012-02-06 14:00:24 -08:00
Andy Janata
4d5fddd293
add 2-clause bsd-style license to source files
2012-02-02 14:47:23 -08:00
Andy Janata
582537b0a1
todo cleanup for multi-play
2012-02-01 14:26:20 -08:00
Andy Janata
b5cb45353c
- make the logo on the cards from css instead of images
...
- fix reshuffle notifications not delivering to client properly
- fix not actually putting "draw 2" cards into the players' hands
2012-01-31 20:22:07 -08:00
Andy Janata
a493b917ed
rudimentary support for pick X and draw X cards. it looks completely wrong on the client during the play phase. does not display the annotations to the player yet either
2012-01-31 17:59:53 -08:00
Andy Janata
a5f82eb08e
TODO cleanup
2012-01-30 23:53:00 -08:00
Andy Janata
2d5e9d18c0
- discard cards after they are used, so that they can be reshuffled if more cards are required (hasn't been tested)
...
- much better handling when users leave the game:
- put their hand in the discard pile
- if they played this round, put that card in the discard pile and remove them from the played players list
- if they were supposed to play this round, remove them from the players list
- if they were judge, return all played cards to players and move to the next judge
- if they weren't judge and were lower in judging order, fix the judge pointer
- add a goal to the game (8 points for now, hard-coded)
- keep track of which players are supposed to play this round so players joining and leaving don't affect the game progressing
2012-01-30 16:35:06 -08:00
Andy Janata
84373a5453
- disable the confirm card button for the judge during the intermission
...
- don't say "points" for 1 point
2012-01-30 00:35:56 -08:00
Andy Janata
5e95299801
replace the border on the winning card, not add another one
2012-01-28 23:33:21 -08:00
Andy Janata
ed9cec7ed7
don't add a blank card to the screen when a user switches to idle state unless the game is still in playing state
2012-01-27 17:01:51 -08:00
Andy Janata
0e11e59207
- judge can select card
...
- game goes to next round
2012-01-27 15:41:57 -08:00
Andy Janata
34c23b3a01
fix confirm selection button not enabling properly sometimes
2012-01-27 00:18:36 -08:00
Andy Janata
d06e835ac4
add the zoom effect to round cards, and let the judge select a card
2012-01-27 00:14:48 -08:00
Andy Janata
48976b4dc0
- change how the client's own card is displayed after playing it to avoid race condition
...
- show all white cards when switching to judging mode
2012-01-26 22:17:36 -08:00
Andy Janata
2e26e938e5
- reload the round white cards when page reloaded
...
- can't select a hand card after playing a card
2012-01-26 19:25:40 -08:00
Andy Janata
7600ec27de
- refactor game handlers a bit to add another abstract class that ensures the user requesting is in the game in question
...
- add play card handler. need to send the white card count down to users that refresh the page.
- ajax event handlers get the request object as well as the result object so the server doesn't have to send the game id back in a response
2012-01-26 18:07:39 -08:00
Andy Janata
6ed6bdb365
resize hand cards when resizing window.
...
fix font being fucking huge in firefox.
2012-01-25 00:03:41 -08:00
Andy Janata
f92258fb56
able to select and deselect cards in hand
2012-01-24 22:39:19 -08:00
Andy Janata
234b82afd2
- display black card in game
...
- display message indicating what the game is currently waiting for
- reload the black card when reloading page
- change the js constant generator to explain what the dummy things are for in the output
- add support for enums that need two user-visible values (specifically the game player state: the short message for the scoreboard and the long message telling the player what they need to do)
- hide the start game button after the game is started
- refactor game event longpoll handlers to use a helper that gets the game and reports an error if it can't
- game (should) reset to a lobby if it loses players to put it less than 3
2012-01-24 16:20:43 -08:00
Andy Janata
44153c549a
resize the cards when zooming them so the other cards flow
2012-01-23 23:13:40 -08:00
Andy Janata
363bfc1147
get rid of unneeded zindex hack
2012-01-23 23:04:52 -08:00
Andy Janata
5915a3558d
- reload hand after reloading page
...
- use transform animation in all browsers to reduce complexity :(
2012-01-23 23:02:59 -08:00
Andy Janata
2f2d683384
fix card zoom in firefox and opera, and display a message that this looks better in chrome for those browsers the first time the page loads
2012-01-23 19:14:29 -08:00
Andy Janata
d41b06ffde
fix card scaling in ie, but the logo still is broken
2012-01-23 17:41:02 -08:00
Andy Janata
c73ce88646
deal cards to players when the game starts
2012-01-23 15:06:20 -08:00