mirror of
https://github.com/giongto35/cloud-game.git
synced 2026-07-25 11:03:56 +00:00
remove poll events
This commit is contained in:
parent
d6a95d9b55
commit
8c52af89f9
2 changed files with 9 additions and 2 deletions
8
Dockerfile
Normal file
8
Dockerfile
Normal file
|
|
@ -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
|
||||
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue