Skip to content

nycrat/duck-simulator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

duck simulator

duck simulator

messages

client sends:

  • "join_game" (name, variety, color)
  • "vote_start_game" ()
  • binary_update (DuckProto)

game actor sends to client websocket:

  • "re:join_game" (id)
  • "cast:start_game" (start_time, game_duration)
  • "cast:end_game" ()
  • "cast:join_game" (id, name, variety, color)
  • "cast:leave_game" (id)
  • cast:binary_update_world (UpdateSyncProto)

player actor sends to game server actor:

  • JoinGame (name, variety, color)
  • VoteStartGame ()
  • Update (DuckProto)
  • LeaveGame

game server actor sends to player actor:

  • re:JoinGame (id)
  • CastJoinGame
  • CastLeaveGame
  • StartGame (start_time, game_duration)
  • UpdateWorld (UpdateSyncProto)
  • EndGame ()

Contributors 2

  •  
  •