2017-06-25 04:45:03 +00:00
|
|
|
module Views.PlayArea exposing (..)
|
|
|
|
|
|
|
|
import Html exposing (Html)
|
|
|
|
import Svg exposing (svg)
|
|
|
|
import Svg.Attributes exposing (width, height, viewBox)
|
|
|
|
import Types exposing (Model)
|
|
|
|
import Views.Player
|
2017-06-28 22:02:51 +00:00
|
|
|
import Views.Map
|
2017-06-25 04:45:03 +00:00
|
|
|
|
|
|
|
|
|
|
|
render : String -> String -> Model -> Html msg
|
|
|
|
render w h model =
|
|
|
|
svg
|
|
|
|
[ width w, height h, viewBox ("0 0 " ++ w ++ " " ++ h) ]
|
2017-06-28 22:02:51 +00:00
|
|
|
[ Views.Map.render
|
|
|
|
, Views.Player.render model
|
|
|
|
]
|