   @ms_between_frames div(1000, @fps)
   @pause_ms 1000
   @opts %{idle_timeout: 60 * 60 * 1000, compress: false}
-  @explosions_per_frame 5
+  @explosions_per_frame 7
 
   @behaviour :cowboy_handler
 

  end

  # Keep a bounded FIFO list of the recent explosion
  def websocket_info({:explosion, x}, state = %{explosions: explosions}) do
    {:ok, %{state | explosions: Enum.take([x | explosions], @explosions_per_frame)}}
  end

defmodule Elixoids.Server.WebsocketGameHandler do
  @moduledoc """
  Websocket Handler for the graphics engine. Queries the game state at 30fps
  and publishes it to subscriber.

  1 hour idle timeout.
