Skip to content

Commit

Permalink
a bit of cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Grafne23 committed Jun 8, 2018
1 parent 2b07dd3 commit 83a4788
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 8 deletions.
7 changes: 0 additions & 7 deletions client/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -300,13 +300,6 @@ export default class App extends React.Component {
}
});
ctx.closePath();

// Test Firebase connection
// console.log(firebase);
// console.log(firebase.database());

// const ref = firebase.database().ref('leaderboard');
// console.log(ref);
}

drawHoles() {
Expand Down
1 change: 0 additions & 1 deletion server/arena/arena.go
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,6 @@ func (a *Arena) holeCollisions() {
Data: name,
}
MessageChannel <- deathMsg

} else if areCirclesColliding(player.Position, models.PlayerRadius, hole.Position, hole.GravityRadius) {
player.ApplyGravity(hole)
}
Expand Down
1 change: 1 addition & 0 deletions server/firebasedb/database.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ func (DBC *DBClient) ConnectDB(credentialsPath string) {
}

// UpdatePlayerScore updates the score for the given player in the database
// Use as a goroutine to make it non-blocking. (Not fully thread safe yet)
func UpdatePlayerScore(p *models.Player) {

scoreData := LeaderboardEntry{
Expand Down

0 comments on commit 83a4788

Please sign in to comment.