EngoEngine / engo

Engo is an open-source 2D game engine written in Go.
https://engoengine.github.io
MIT License
1.74k stars 136 forks source link

undefined: oto.newPlayer #724

Closed LsHallo closed 4 years ago

LsHallo commented 4 years ago
# github.com/EngoEngine/engo/common
..\..\EngoEngine\engo\common\audio.go:90:22: undefined: oto.NewPlayer

I'm new to the whole go thing and I was just installing engo and testing the pong sample. For that I created src in $GOPATH and hello.go (just fmt.printLn('Hello')) works fine. Then I went on to test the pong demo and I got a whole bunch of missing x. Then I used go get in the dir of the pong demo and now I have the above error.

Platform: Windows 10 mingw64

Also made sure to run git checkout v1.0.4 in engo and v1.0.3 in ecs

Noofbiz commented 4 years ago

Try go get github.com/EngoEngine/engo@master in your project repo to fix it. The previous versions use an earlier version of oto, hence the issues. Not sure why go mod doesn't just use the right version of oto like it's supposed to though xD.

LsHallo commented 4 years ago

That seems to have fixed it. Thanks!