 defmodule Elixoids.Server do
 
-  @fps        60 # Game frame rate
-  @asteroids   8 # Initial and minimum number of asteroids
+  @fps         60 # Game frame rate
+  @asteroids    8 # Initial and minimum number of asteroids
+  @port      8065 # HTTP + 'A'
 
   @moduledoc """
   Asteroids Server. Starts a game and opens websocket.

    #      http://ninenines.eu/docs/en/cowboy/HEAD/guide/routing/
    dispatch = :cowboy_router.compile([

      # :_ causes a match on all hostnames.  Access this example with localhost:8065.
      {:_, 
        
        # The following list specifies all the routes for hosts matching the
        # previous specification.  The list takes the form of tuples, each one 
        # being { PathMatch, Handler, Options}
        [

          
          # Serve a single static file on the route "/".
          # PathMatch is "/" 

    ])
    { :ok, _ } = :cowboy.start_http(:http, 
                                    100,
                                   [{:port, @port}],  
                                   [{ :env, [{:dispatch, dispatch}]}]
                                   ) 

