Skip to content

Instantly share code, notes, and snippets.

@neslinesli93
Created January 2, 2020 21:05
Show Gist options
  • Save neslinesli93/c2288e851e3f9a88e9d5aac3ba2db869 to your computer and use it in GitHub Desktop.
Save neslinesli93/c2288e851e3f9a88e9d5aac3ba2db869 to your computer and use it in GitHub Desktop.
Make game loop handle paddle advance
@spec game_loop(Socket.t()) :: Socket.t()
defp game_loop(socket) do
socket
|> advance_paddle()
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment