Skip to content

Instantly share code, notes, and snippets.

@inciteco
Created August 30, 2017 05:32
Show Gist options
  • Save inciteco/ee1ceea2bbce28af7671f29db7d6fa7c to your computer and use it in GitHub Desktop.
Save inciteco/ee1ceea2bbce28af7671f29db7d6fa7c to your computer and use it in GitHub Desktop.
[Log] [GameService] – "init" (GameService.js, line 354)
[Log] Phaser v2.8.3 | Pixi.js | Canvas | WebAudio | http://phaser.io (phaser.min.js, line 3)
[Error] Failed to load resource: the server responded with a status of 404 (HTTP/2.0 404) (lodash.min.js.map, line 0)
[Error] Failed to load resource: the server responded with a status of 404 (HTTP/2.0 404) (firebase.js.map, line 0)
[Error] Failed to load resource: the server responded with a status of 404 (HTTP/2.0 404) (phaser.map, line 0)
[Log] [GameService] (2) (GameService.js, line 354)
"setPlayer"
{key: "V1jSrs3FCXgIw3SOnQ8kMhj2WNA2", image: "https://scontent.xx.fbcdn.net/v/t1.0-1/p100x100/10…g?oh=e8ab0b446a54cd35d4962f54d29f533e&oe=5A1DC633", name: "Jennifer Zakur"}
[Log] [GameService] (2) (GameService.js, line 354)
"player ready:"
{key: "V1jSrs3FCXgIw3SOnQ8kMhj2WNA2", image: "https://scontent.xx.fbcdn.net/v/t1.0-1/p100x100/10…g?oh=e8ab0b446a54cd35d4962f54d29f533e&oe=5A1DC633", name: "Jennifer Zakur"}
[Log] [GameService] – "findOpponent" (GameService.js, line 354)
[Log] [GameService] – "findExistingGame" (GameService.js, line 354)
[Log] [GameService] – "most recent game already has a player!" (GameService.js, line 354)
[Log] [GameService] – "starting a new new game instead..." (GameService.js, line 354)
[Log] [GameService] – "createNewGame" (GameService.js, line 354)
[Log] [GameService] (2) (GameService.js, line 354)
"startGameSession"
e {repo: t, path: t, ee: t, ne: false, then: function, …}
[Log] [GameService] (2) (GameService.js, line 354)
"gameUpdate"
{player_1: {image: "https://scontent.xx.fbcdn.net/v/t1.0-1/p100x100/10…g?oh=e8ab0b446a54cd35d4962f54d29f533e&oe=5A1DC633", key: "V1jSrs3FCXgIw3SOnQ8kMhj2WNA2", name: "Jennifer Zakur"}, player_1_joined_at: "2017-08-30T04:19:46.156Z", player_1_score: 0}
[Warning] FIREBASE WARNING: Using an unspecified index. Consider adding ".indexOn": "player_2" at /games/2017-08-30 to your security rules for better performance (firebase.js, line 320)
[Log] [GameService] (2) (GameService.js, line 354)
"createNewGame done! game.key:"
"-KslMS80WoRtPry_xIlF"
[Log] [GameService] (2) (GameService.js, line 354)
"gameUpdate"
{player_1: {image: "https://scontent.xx.fbcdn.net/v/t1.0-1/p100x100/10…g?oh=e8ab0b446a54cd35d4962f54d29f533e&oe=5A1DC633", key: "V1jSrs3FCXgIw3SOnQ8kMhj2WNA2", name: "Jennifer Zakur"}, player_1_joined_at: "2017-08-30T04:19:46.156Z", player_1_score: 0, player_2: {image: "https://scontent.xx.fbcdn.net/v/t1.0-1/p100x100/12…g?oh=6b8748c37951edbdf80edb81c0e7b51a&oe=5A1BB843", key: "DFTyGatne0cL8tlLYLYMHGPwB1j1", name: "Keith Elliott"}, player_2_joined_at: "2017-08-30T04:19:51.503Z", …}
[Log] [GameService] (2) (GameService.js, line 354)
"setOpponent"
{image: "https://scontent.xx.fbcdn.net/v/t1.0-1/p100x100/12…g?oh=6b8748c37951edbdf80edb81c0e7b51a&oe=5A1BB843", key: "DFTyGatne0cL8tlLYLYMHGPwB1j1", name: "Keith Elliott"}
[Log] [GameService] (2) (GameService.js, line 354)
"remote player arrived:"
{image: "https://scontent.xx.fbcdn.net/v/t1.0-1/p100x100/12…g?oh=6b8748c37951edbdf80edb81c0e7b51a&oe=5A1BB843", key: "DFTyGatne0cL8tlLYLYMHGPwB1j1", name: "Keith Elliott"}
[Log] Opponent has arrived: – {image: "https://scontent.xx.fbcdn.net/v/t1.0-1/p100x100/12…g?oh=6b8748c37951edbdf80edb81c0e7b51a&oe=5A1BB843", key: "DFTyGatne0cL8tlLYLYMHGPwB1j1", name: "Keith Elliott"} (waitforplayer.js, line 159)
{image: "https://scontent.xx.fbcdn.net/v/t1.0-1/p100x100/12…g?oh=6b8748c37951edbdf80edb81c0e7b51a&oe=5A1BB843", key: "DFTyGatne0cL8tlLYLYMHGPwB1j1", name: "Keith Elliott"}Object
[Log] [GameService] (2) (GameService.js, line 354)
"gameUpdate"
{game_end_time: "2017-08-30T04:19:46.837Z", game_start_time: "2017-08-30T04:20:01.837Z", player_1: {image: "https://scontent.xx.fbcdn.net/v/t1.0-1/p100x100/10…g?oh=e8ab0b446a54cd35d4962f54d29f533e&oe=5A1DC633", key: "V1jSrs3FCXgIw3SOnQ8kMhj2WNA2", name: "Jennifer Zakur"}, player_1_joined_at: "2017-08-30T04:19:46.156Z", player_1_score: 0, …}
[Log] [GameService] – "schedule found!" (GameService.js, line 354)
[Log] [GameService] (2) (GameService.js, line 354)
"starting countdown as"
"host"
[Log] [GameService] (2) (GameService.js, line 354)
"countdown started, seconds remaining:"
9.991
[Log] [GameService] – "no score found yet" (GameService.js, line 354)
[Log] [GameService] – "no score found yet" (GameService.js, line 354)
[Log] [GameService] – "start scheduled" (GameService.js, line 354)
[Log] Player 2 pic load completed (waitforplayer.js, line 171)
[Log] done waiting for a live player (GameService.js, line 467)
[Log] [GameService] (2) (GameService.js, line 354)
"sending my move to the server:"
-15
[Log] [GameService] – "move aborted, game should be over" (GameService.js, line 354)
[Log] [GameService] (2) (GameService.js, line 354)
"sending my move to the server:"
5
[Log] [GameService] – "move aborted, game should be over" (GameService.js, line 354)
[Log] [GameService] (2) (GameService.js, line 354)
"sending my move to the server:"
5
[Log] [GameService] – "move aborted, game should be over" (GameService.js, line 354)
[Log] [GameService] (2) (GameService.js, line 354)
"sending my move to the server:"
15
[Log] [GameService] – "move aborted, game should be over" (GameService.js, line 354)
[Log] [GameService] (2) (GameService.js, line 354)
"sending my move to the server:"
10
[Log] [GameService] – "move aborted, game should be over" (GameService.js, line 354)
[Log] [GameService] (2) (GameService.js, line 354)
"sending my move to the server:"
-5
[Log] [GameService] – "move aborted, game should be over" (GameService.js, line 354)
[Log] [GameService] – "onGameplayStart › user should start calling game.makeMove(<Number>) now" (GameService.js, line 354)
[Log] [WaitForPlayerState]: leaving waitforplayer state (waitforplayer.js, line 119)
[Log] [GameService] (3) (GameService.js, line 354)
"game end scheduled for"
-15.012
"seconds from now"
[Log] [PlayState]: onGameplayStart (play.js, line 158)
[Log] [GameService] – "endGame called" (GameService.js, line 354)
[Log] [GameService] (2) (GameService.js, line 354)
"gameUpdate"
{finalScore: 0, game_end_time: "2017-08-30T04:19:46.837Z", game_ended: true, game_ended_at: "2017-08-30T04:20:01.862Z", game_start_time: "2017-08-30T04:20:01.837Z", …}
[Log] [GameService] (2) (GameService.js, line 354)
"game has ended! playerWon:"
false
[Log] [GameService] (2) (GameService.js, line 354)
"onGameplayEnd, user won?"
false
[Log] [WaitForPlayerState]: leaving waitforplayer state (waitforplayer.js, line 119)
[Log] [GameService] – "resetting..." (GameService.js, line 354)
[Log] [GameService] – "init" (GameService.js, line 354)
[Log] [GameService] (2) (GameService.js, line 354)
"setPlayer"
{key: "V1jSrs3FCXgIw3SOnQ8kMhj2WNA2", image: "https://scontent.xx.fbcdn.net/v/t1.0-1/p100x100/10…g?oh=e8ab0b446a54cd35d4962f54d29f533e&oe=5A1DC633", name: "Jennifer Zakur"}
[Log] [GameService] (2) (GameService.js, line 354)
"player ready:"
{key: "V1jSrs3FCXgIw3SOnQ8kMhj2WNA2", image: "https://scontent.xx.fbcdn.net/v/t1.0-1/p100x100/10…g?oh=e8ab0b446a54cd35d4962f54d29f533e&oe=5A1DC633", name: "Jennifer Zakur"}
[Log] [GameService] – "reset complete!" (GameService.js, line 354)
[Log] [GameService] – "user should be taken to results screen" (GameService.js, line 354)
[Log] [PlayState]: onGameplayEnd, user won? (2) (play.js, line 201)
false
false
[Log] [GameService] – "game has ended!" (GameService.js, line 354)
[Log] [GameService] – "game conclusion saved!" (GameService.js, line 354)
[Log] [GameService] (2) (GameService.js, line 354)
"gameUpdate"
{finalScore: 0, game_end_time: "2017-08-30T04:19:46.837Z", game_ended: true, game_ended_at: "2017-08-30T04:20:01.850Z", game_start_time: "2017-08-30T04:20:01.837Z", …}
[Log] [GameService] (2) (GameService.js, line 354)
"game has ended! playerWon:"
true
[Log] [GameService] (2) (GameService.js, line 354)
"onGameplayEnd, user won?"
true
[Log] [WaitForPlayerState]: leaving waitforplayer state (waitforplayer.js, line 119)
[Log] [WinState]: leaving win state (win.js, line 120)
[Log] [GameService] – "resetting..." (GameService.js, line 354)
[Log] [GameService] – "init" (GameService.js, line 354)
[Log] [GameService] (2) (GameService.js, line 354)
"setPlayer"
{key: "V1jSrs3FCXgIw3SOnQ8kMhj2WNA2", image: "https://scontent.xx.fbcdn.net/v/t1.0-1/p100x100/10…g?oh=e8ab0b446a54cd35d4962f54d29f533e&oe=5A1DC633", name: "Jennifer Zakur"}
[Log] [GameService] (2) (GameService.js, line 354)
"player ready:"
{key: "V1jSrs3FCXgIw3SOnQ8kMhj2WNA2", image: "https://scontent.xx.fbcdn.net/v/t1.0-1/p100x100/10…g?oh=e8ab0b446a54cd35d4962f54d29f533e&oe=5A1DC633", name: "Jennifer Zakur"}
[Log] [GameService] – "reset complete!" (GameService.js, line 354)
[Log] [GameService] – "user should be taken to results screen" (GameService.js, line 354)
[Log] [PlayState]: onGameplayEnd, user won? (2) (play.js, line 201)
true
true
[Log] [GameService] – "game has ended!" (GameService.js, line 354)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment