Commit Graph

259 Commits

Author SHA1 Message Date
Liam Westby
5691f28471 Move onMessage cases to their own methods for readability 2018-05-18 15:02:16 -05:00
Liam Westby
d35824be68 Clean up import 2018-05-18 12:10:25 -05:00
Liam Westby
6cf54a09e4 Update player to use container
and rework positioning to be relative to that container
2018-05-18 10:30:45 -05:00
Liam Westby
bd03116e44 Fix players jumping around when one dies and on start 2018-05-18 08:33:24 -05:00
Liam Westby
80cb7a4364 Calculate positions using sizes of the entities involved
This removes the magic numbers
2018-05-18 08:27:36 -05:00
Andrew Guibert
9f5f798aee Use proper ctor for EventSourcePolyFill 2018-05-17 16:37:42 -05:00
Andrew Guibert
1c5580dc32 Fix bug where turning into a wall and dying didn't display the fatal direction change 2018-05-17 16:16:17 -05:00
Liam Westby
ecdce1155b Create and use generic tooltip class 2018-05-17 13:22:54 -05:00
Andrew Guibert
90a2c1cd42 Put glow effect around player trails 2018-05-17 12:47:49 -05:00
Liam Westby
6e6f2d0228 Extract constants to separate files 2018-05-17 08:28:31 -05:00
Liam Westby
61a994ae39 Add production build in again 2018-05-16 16:09:19 -05:00
Liam Westby
f812adbac5 Fixes after review 2018-05-16 16:02:18 -05:00
Liam Westby
5545b1c8e5 Bring in compat module to work around bug in new style import 2018-05-16 15:13:36 -05:00
Liam Westby
82b1ea6487 Resolve inability to find http or https errors 2018-05-16 14:11:17 -05:00
Liam Westby
a7474d9fbc Some additional updates 2018-05-16 14:11:17 -05:00
Liam Westby
ef1b566d78 Upgrade to Angular CLI 6 2018-05-16 14:11:17 -05:00
Liam Westby
a481a4af41 Build error due to old-style rxjs import 2018-05-16 14:11:17 -05:00
Liam Westby
64e9d622aa Angular 6 GM 2018-05-16 14:11:17 -05:00
Liam Westby
5a68ee2ab7 Update to angular 6 rc 5 2018-05-16 14:11:17 -05:00
Andrew Guibert
d0883a2d04 Minor improvements to frontend performance 2018-05-16 13:07:56 -05:00
Andrew Guibert
c5564510eb Update player colors to orange/green/blue/purple 2018-05-16 11:21:35 -05:00
Andrew Guibert
bfdc7e4cd8 Fix explosions not showing when player dies 2018-05-15 14:06:33 -05:00
Andrew Guibert
ee1cdd20db Only load BAM sound once instead of on every death 2018-05-15 11:01:40 -05:00
Andrew Guibert
e048675b58 Send users back to login page if they end up at the game page for an invalid round 2018-05-15 10:30:36 -05:00
Andrew Guibert
3a1057dd88 Handle requeues with REST instead of websockets 2018-05-14 22:55:39 -05:00
Andrew Guibert
c08ec14c33 Take away requeu button on mobile and replace it with prompt 2018-05-14 16:02:11 -05:00
Liam Westby
e256265f95 Fix login width on desktop browsers 2018-05-14 10:31:30 -05:00
Liam Westby
d537a9a21c Up internal canvas resolution to 1200 and scale everything to match 2018-05-14 10:31:13 -05:00
Andrew Guibert
bc46ef05bf Remove players from the board when they leave/disconnect before the round starts 2018-05-11 17:27:03 -05:00
Andrew Guibert
47726aa90b BAM 2018-05-11 15:04:55 -05:00
Andrew Guibert
926a23fa70 Player go boom 2018-05-11 14:29:23 -05:00
Andrew Guibert
8967fa611e Specify HTTP protocol in auth url env var 2018-05-09 14:06:40 -05:00
Andrew Guibert
3bcc7f2198 Remove unused code/properties for tracking player trails 2018-05-09 12:51:42 -05:00
Andrew Guibert
d5613cfc1b Prevent player tooltips from going off game board 2018-05-09 12:32:17 -05:00
Andrew Guibert
403751c8c6
Merge pull request #84 from aguibert/player-bike-icons
Plug in bike icons to game board
2018-05-09 10:56:17 -05:00
Andrew Guibert
8fb4f19a6c Plug in bike icons to game board 2018-05-09 10:02:56 -05:00
Andrew Guibert
b2bfbe83a2
Merge pull request #83 from aguibert/player-tooltips
Identify players at beginning of each game
2018-05-08 15:32:11 -05:00
Andrew Guibert
8f554920cb Identify players at beginning of each game 2018-05-08 15:00:10 -05:00
Liam Westby
b9dc0f21f3 Fix player card incorrect positioning on Chrome 2018-05-08 10:03:52 -05:00
Liam Westby
056caf1344 Fix panels being too wide on mobile 2018-05-08 09:59:03 -05:00
Liam Westby
8f754d2e4e Resolve "undefined" error 2018-05-07 18:29:11 -05:00
Liam Westby
811f32fd2c Fix build break that only happens with prod build 2018-05-07 17:11:08 -05:00
Liam Westby
6e5bc3df3d Obstacles erase trails and players again 2018-05-07 14:42:10 -05:00
Liam Westby
f5d84344da Fix players not turning white on death 2018-05-07 11:42:37 -05:00
Liam Westby
846fbe7334 Improve performance by handling websocket messages outside the angular zone 2018-05-07 11:42:24 -05:00
Liam Westby
a91785a37e Draw obstacles as Shapes 2018-05-07 08:30:22 -05:00
Liam Westby
486a6b6445 Draw static obstacles on their own shape 2018-05-07 08:30:22 -05:00
Liam Westby
2b060cad73 Draw trails on their own shape 2018-05-07 08:30:22 -05:00
Liam Westby
b2f3e69f2d Draw players as shapes instead of directly 2018-05-07 08:30:22 -05:00
Liam Westby
a14608fb74 Refactor player to only hold properties, player component handles styles 2018-05-07 08:27:35 -05:00
Liam Westby
43a9fe0f39 Install createjs libraries 2018-05-07 08:27:35 -05:00
Andrew Guibert
d44a4fb082 Smooth out requeueing from the game page 2018-05-06 00:23:43 -05:00
Andrew Guibert
e95f4d5a61
Merge pull request #77 from aguibert/sso-username-validation
Validate selected username on SSO registration code path
2018-05-04 13:51:33 -05:00
Andrew Guibert
db4075e81a Validate selected username on SSO registration code path 2018-05-04 12:24:20 -05:00
Andrew Guibert
d33bba938f
Merge pull request #76 from aguibert/wlp-2018.4.0.0
Upgrade to Liberty April beta
2018-05-04 11:33:35 -05:00
Andrew Guibert
528229a18f Fix bug so players enter queue if they try to join as game is starting 2018-05-04 11:19:17 -05:00
Andrew Guibert
30ae6816fa Bug fixes for player queueing
- fixed: entering wrong party ID gives NPE on frontend
- port queue changes to mobile device controller
- fixed: re-using tab or hitting browser back button in a party prevents
  user from staying at login page and would auto promote them into a game
  round
2018-05-03 22:47:30 -05:00
Andrew Guibert
155ecc6c52 Review comments and hide some use cases for mobile devices 2018-05-03 15:10:05 -05:00
Andrew Guibert
116ae99bf6 Add ability to leave party queues 2018-05-03 12:47:56 -05:00
Andrew Guibert
5aacfcf659 Player queues for parties 2018-05-03 11:05:07 -05:00
Andrew Guibert
e985d0d951 Sanitize usernames on frontend and backend 2018-05-03 08:38:17 -05:00
Ryan Esch
180c6f000f login 2018-05-02 15:45:06 -05:00
Liam Westby
e7219627e4 Merge branch 'style-cleanup' into cleanup
* Apply tslint suggestions
* Remove unused assets
2018-04-17 21:32:20 -05:00
Liam Westby
a38377b424 Cleanup unused assets 2018-04-17 21:09:24 -05:00
Liam Westby
09feb688b3 Apply tslint suggestions 2018-04-17 21:09:24 -05:00
Liam Westby
51658fd92c Run npm update 2018-04-17 15:04:04 -05:00
Liam Westby
ee9ee1d386 Uninstall jquery package 2018-04-17 14:57:35 -05:00
Liam Westby
fedcf934ac Fix formatting/indentation 2018-04-17 14:49:14 -05:00
Liam Westby
362d107bb6 Remove last direct uses of jquery 2018-04-17 14:44:35 -05:00
Liam Westby
4f5c000eae Just say "play" until SSO options arrive 2018-04-16 16:22:03 -05:00
Liam Westby
043f5ef25f Add cancel for username page 2018-04-16 16:18:27 -05:00
Liam Westby
36fc5518f3 Fix round not joining 2018-04-16 16:07:14 -05:00
Liam Westby
09876d110f Remember logged-in username 2018-04-16 15:53:58 -05:00
Liam Westby
cbfcf39111 Rework layout 2018-04-16 15:53:32 -05:00
Liam Westby
a2d21a71a6 Add icon/logo to login page 2018-04-16 14:37:53 -05:00
Liam Westby
fa7b5690e7 Create 3 stage login screen 2018-04-13 16:22:31 -05:00
Liam Westby
54d7b3e28c Add animation library to application 2018-04-13 16:19:47 -05:00
Andrew Guibert
98c9fdbfe9 Give sample players lower scores so real players show up on leaderboard 2018-04-12 22:52:58 -05:00
Andrew Guibert
a5cd5e1c21 Use Party IDs for a consistent ID across multiple games 2018-04-12 22:35:59 -05:00
Liam Westby
decae2cf4a Firefox was broken with margin-top, so let's try padding-top instead 2018-04-10 17:05:48 -05:00
Andrew Guibert
bc0660ef6f Add new player status icons for WINNER and DEAD states 2018-04-09 10:33:47 -05:00
Andrew Guibert
7f361b6604 Review comments and remove unused files 2018-04-07 11:31:10 -05:00
Andrew Guibert
72e486b01d Implement rating system 2018-04-06 23:05:45 -05:00
Andrew Guibert
c07eac5414 Initial draft of leaderboard 2018-04-06 22:20:06 -05:00
Andrew Guibert
0c09785857 Implement quick join 2018-04-05 14:45:18 -05:00
ryanesch
4f474a30c9
Merge pull request #59 from ryanesch/obstaclemovement
update obstacle movement
2018-04-05 14:10:10 -05:00
Ryan Esch
73e483a901 update obstacle movement 2018-04-05 13:31:17 -05:00
Andrew Guibert
35cb80465a Proper text overflow for long player names 2018-04-05 13:21:01 -05:00
Andrew Guibert
e389eef652 Combine desktop/mobile login buttons 2018-04-05 13:19:45 -05:00
Andrew Guibert
81012a9add Placeholder player status images 2018-04-05 10:36:41 -05:00
Andrew Guibert
33c1b0bc4e Send heartbeat to clients every 100 sec to prevent cloud timeouts. Also fix bugs in requeue flow 2018-03-31 17:13:52 -05:00
Liam Westby
bdba9ca086
Merge pull request #53 from realModusOperandi/landscape-controls
Landscape controls
2018-03-29 14:26:38 -05:00
orcook
c173b5facd Ai framework and basic bot AI 2018-03-29 14:08:41 -05:00
Liam Westby
f5c73f1af2 Improve landscape layout across device sizes 2018-03-29 11:29:01 -05:00
Liam Westby
55078e8b24 Only request animation frames when needed 2018-03-29 11:28:34 -05:00
Liam Westby
11366c662c Always scroll to top when resizing 2018-03-29 09:30:39 -05:00
Liam Westby
7e3d73aa1c Better layout in landscape 2018-03-29 09:30:20 -05:00
Liam Westby
27cb480d48 Change URLs to use the current host rather than hardcoding localhost 2018-03-29 09:24:32 -05:00
Liam Westby
c47c579a17 Allow dragging finger to change direction 2018-03-28 17:32:12 -05:00
Liam Westby
54306a0173 Rework portrait mode layout 2018-03-28 17:31:52 -05:00
Liam Westby
4f913da5ff Draw controller on the canvas manually 2018-03-28 16:23:07 -05:00
Liam Westby
b4c5b16881 Prototype drawing the controller on the canvas 2018-03-28 16:23:07 -05:00
Liam Westby
6f237f3a11 Clean up controls scss 2018-03-28 16:23:07 -05:00
Andrew Guibert
b334454224 Mechanism for prod deployments 2018-03-28 15:54:08 -05:00
Andrew Guibert
abd22c835c Move service URLs to environment variables 2018-03-28 12:51:32 -05:00
Liam Westby
cc3c4e2c86 Prevent player list from becoming so small that PLAYERS overflowed 2018-03-24 08:15:47 -07:00
Andrew Guibert
040d03abdc Countodown to games starting 2018-03-22 11:40:41 -07:00
orcook
122d7feadb 3x3 player 2018-03-21 17:42:55 -05:00
Liam Westby
dd400772f4 Theme and Angularize the game page 2018-03-20 18:05:21 -05:00
Liam Westby
ea24f17366 Fix incorrect game ID not showing error 2018-03-19 17:40:53 -05:00
Liam Westby
64d6fbc992 Convert websocket to rxjs subject
Introduce services to subscribe to this subject and handle converting message formats
2018-03-19 17:26:32 -05:00
Liam Westby
d628a8e848 Convert from jquery to angular httpclient 2018-03-19 17:21:45 -05:00
orcook
ff4e05d583 Don't send game updates to phone players 2018-03-14 15:46:05 -05:00
Olen Cook
f443dc283c
Merge pull request #39 from olendvcook/obstacleDisplay
fix obstacle drawing, improve collisions
2018-03-14 10:19:08 -05:00
orcook
51cdce7f0e fix obstacle drawing, improve collisions 2018-03-13 17:25:09 -05:00
Liam Westby
6068d0e93c Refinements 2018-03-13 17:01:15 -05:00
Liam Westby
5379d248e1 Restyle login page 2018-03-13 17:01:15 -05:00
Liam Westby
6312c67d34 Fix joining game as phone
The name was not changed over to use ID
2018-03-13 16:35:45 -05:00
Andrew Guibert
abbcefb612 Update game-service to operate on player IDs instead of just names 2018-03-09 14:39:15 -06:00
orcook
768acd6382 Make RoundId length 4 and fix auto-requeue 2018-03-09 13:51:07 -06:00
orcook
b693a93853 tests/ minor bugs/ comments/ for Moving Obstacles 2018-03-08 15:36:34 -06:00
orcook
ff904a8c6e basic moving boxes added 2018-03-08 15:31:01 -06:00
Liam Westby
aac082282e Run npm update
github yelled at me about having a vulnerable dependency so I let npm update everything.
2018-03-07 22:36:03 -06:00
Liam Westby
c3168fa794 Use triangular hotspots for controls 2018-03-07 15:55:32 -06:00
Liam Westby
14a3c86fbf Second pass: replace with canvas and do hit detection ourselves 2018-03-07 13:29:35 -06:00
Andrew Guibert
3b0a3ff798 Disable auto-correct on game code input and auto-uppercase letters 2018-03-06 22:10:31 -06:00
Liam Westby
971d6e15d7 First pass of controller layout
This is possibly going to be the hardest page to get right.
2018-03-06 17:16:03 -06:00
Liam Westby
cdd4e94480 Better display of the game page on tablets 2018-03-06 09:40:35 -06:00
Liam Westby
d72e308de3 Enhance game code display.
We may want to revisit only showing the code to spectators in the future.
2018-03-06 09:40:15 -06:00
Liam Westby
fead49a56a Display game code with more contrast 2018-03-05 22:06:28 -06:00
Liam Westby
54ea304e09 Introduce a grid layout to the game page 2018-03-05 20:11:54 -06:00
Liam Westby
238aa2a198 Move to SCSS 2018-02-20 16:55:16 -06:00
Liam Westby
0ba5bac9ea Autofocus first input 2018-02-20 16:55:16 -06:00
Liam Westby
dcdab79b9b A possible login page layout 2018-02-20 16:55:16 -06:00
Liam Westby
13c6b9bdc7 Set fonts for the entire website 2018-02-20 16:55:16 -06:00
Liam Westby
53a9641d52 Use a variable for font styel 2018-02-20 11:57:08 -06:00
Liam Westby
ef33c25cd6 Convert to styles to SASS 2018-02-20 09:11:47 -06:00
Liam Westby
33743d15aa Reduce frontend feature set to just servlet-4.0 2018-02-20 09:02:39 -06:00
Andrew Guibert
8a01ae58e8 Make game ID more readable 2018-02-14 23:30:06 -06:00
Andrew Guibert
15f538e673 Fix eclipse classpath generation 2018-02-14 23:26:52 -06:00
Liam Westby
20e45e3607 Create Controls component 2018-02-14 22:24:25 -06:00
Liam Westby
65ae883ce6 Refactor whiteboard functionality into GameComponent and share WebSocket 2018-02-14 14:37:20 -06:00
Liam Westby
427d5d96c3 Some development environment tweaks 2018-02-14 14:36:40 -06:00
Andrew Guibert
13e01f091d Implement non-moving obstacles 2018-02-14 12:08:48 -06:00
orcook
54ee49c239 use JsonB for join round validation 2018-02-14 10:47:39 -06:00
orcook
47ed3fb16a move validation check to frontend 2018-02-13 18:04:20 -06:00
orcook
914cc65457 don't let players join full/finished/started/invalid games 2018-02-13 15:39:21 -06:00
Liam Westby
6a5c60eff0 Fix spectating games in Safari 2018-02-13 11:04:20 -06:00
Andrew Guibert
9f847f6818 Review comments 2018-02-12 14:07:10 -06:00
Andrew Guibert
8b4ded5fab Don't restrict http endpoints to localhost 2018-02-10 00:37:22 -06:00