Commit Graph

8 Commits

Author SHA1 Message Date
theKidOfArcrania
01b0b5833c Have the leaderboard bars roll animate up and down 2017-03-02 22:38:29 +00:00
theKidOfArcrania
fab29a8f75 UI impls and bug fixes.
* Implement leaderboard (shows top five players).
* Make color be decided on server side (make sure we reuse the correct colors)
* Better cache frames during 'requestFrames' mechanism
* Make sure we die when we disconnect.
* Make sure that new client doesn't consider all players as new clients (remove newPlayerFrames, and use Player.waitLag instead)
* Have default player name be empty (or "Unnamed")
* Fix refresh issue when new player joins game.
2017-03-02 06:49:46 +00:00
theKidOfArcrania
8352433fa5 Optimize flood-fill and fix OBOB + player bug
The flood-fill had allocated a good amount of memory ~1MB each time we visit a square. This is reduced to the grid size squared, only allocated if the square we are on now is valid.

The OBOB error occured when server was updating one time too few when a player is initialized.

The player bug occurs when a new player joins the game. Normally each new player gets about 60ish frames of lag to start up. However, the new player client incorrectly assumes all other players are new as well.
2017-03-01 00:56:56 +00:00
theKidOfArcrania
e8fd5d1f7c Fix some bugs, start up screen 2017-02-28 07:21:27 +00:00
theKidOfArcrania
134d4e4cc0 Fix OBOE error :( And tidy up code 2017-02-26 23:01:57 +00:00
Henry Wang
6bc7ef86cc Server now works! (Fix two bugs) 2017-02-26 01:31:45 -06:00
theKidOfArcrania
88a6195fe8 Server and client code completed (with bugs). 2017-02-26 02:36:44 +00:00
theKidOfArcrania
916c50e162 Server logic for each game 2017-02-25 23:52:52 +00:00