diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 00000000..347ad6de --- /dev/null +++ b/Dockerfile @@ -0,0 +1,8 @@ +From golang:1.11 + +RUN mkdir -p /go/src/github.com/giongto35/game-online +COPY . /go/src/github.com/giongto35/game-online/ + +# Install server dependencies +RUN go get github.com/pions/webrtc +RUN go get github.com/go-gl/glfw/v3.2/glfw diff --git a/ui/director.go b/ui/director.go index fbbbe0de..a0e12316 100644 --- a/ui/director.go +++ b/ui/director.go @@ -7,7 +7,6 @@ import ( "time" "github.com/giongto35/game-online/nes" - "github.com/go-gl/glfw/v3.0/glfw" ) type View interface { @@ -67,7 +66,7 @@ func (d *Director) Start(paths []string) { func (d *Director) Run() { for { d.Step() - glfw.PollEvents() + //glfw.PollEvents() } d.SetView(nil) }