Code Monkey home page Code Monkey logo

gizmo's Introduction

lallassu stats Top Langs

gizmo's People

Contributors

lallassu avatar zillani avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

gizmo's Issues

Does gizmo support windows?Crash on win7

d:\go_code\src\github.com\Lallassu\gizmo>gizmo.exe
?[44;1m[17:10:26.351][main.go:31][main.run][DEBUG]?[0;1m W: Rect(0, 0, 800, 600)
?[44;1m[17:10:29.257][sound.go:23][main.(*sound).create][DEBUG]?[0;1m Loading sound jump.wav
?[44;1m[17:10:29.257][sound.go:23][main.(*sound).create][DEBUG]?[0;1m Loading sound shot.mp3
?[44;1m[17:10:29.549][sound.go:23][main.(*sound).create][DEBUG]?[0;1m Loading sound shot2.mp3
panic: oto: NewContext can be called only once

goroutine 20 [running]:
github.com/hajimehoshi/oto.NewContext(0xbb80, 0x2, 0x2, 0x31fc, 0x0, 0x0, 0x0)
D:/go_code/src/github.com/hajimehoshi/oto/context.go:60 +0x2a8
github.com/hajimehoshi/oto.NewPlayer(0xbb80, 0x2, 0x2, 0x31fc, 0x31fc, 0x31fc, 0xc000609ff0)
D:/go_code/src/github.com/hajimehoshi/oto/context.go:89 +0x54
github.com/faiface/beep/speaker.Init(0xbb80, 0xc7f, 0x0, 0x0)
D:/go_code/src/github.com/faiface/beep/speaker/speaker.go:42 +0x16f
main.(*sound).create(0x7c70e0)
D:/go_code/src/github.com/Lallassu/gizmo/sound.go:32 +0x53c
main.setup()
D:/go_code/src/github.com/Lallassu/gizmo/main.go:66 +0x136
main.run()
D:/go_code/src/github.com/Lallassu/gizmo/main.go:43 +0x297
github.com/faiface/mainthread.Run.func1(0x672540, 0xc00003e0c0)
D:/go_code/src/github.com/faiface/mainthread/mainthread.go:37 +0x2e
created by github.com/faiface/mainthread.Run
D:/go_code/src/github.com/faiface/mainthread/mainthread.go:36 +0xb8

unable to run gizmo; panic: oto: NewContext can be called only once

Hi!

I was very excited to read about Gizmo when you posted about it on Reddit a while back! The graphics style reminds me of Liero, a game my friends and I loved to play when we were younger.

So, when I saw you released the code for the game, I felt very excited to take it out for a spin :)

However, after the initial go get -u github.com/Lallassu/gizmo/..., running gizmo (from within $GOPATH/src/github.com/Lallassu/gizmo results in the following error:

u@x1 ~/g/s/g/L/gizmo> gizmo
[23:40:43.204][main.go:31][main.run][DEBUG] W: Rect(0, 0, 800, 600)
[23:40:43.242][sound.go:23][main.(*sound).create][DEBUG] Loading sound jump.wav
[23:40:43.242][sound.go:23][main.(*sound).create][DEBUG] Loading sound shot.mp3
[23:40:43.314][sound.go:23][main.(*sound).create][DEBUG] Loading sound shot2.mp3
panic: oto: NewContext can be called only once

goroutine 6 [running]:
github.com/hajimehoshi/oto.NewContext(0xbb80, 0x2, 0x2, 0x31fc, 0x0, 0x0, 0x0)
	/home/u/goget/src/github.com/hajimehoshi/oto/context.go:60 +0x311
github.com/hajimehoshi/oto.NewPlayer(0xbb80, 0x2, 0x2, 0x31fc, 0xc0004121d8, 0xc000514000, 0xc000475ff0)
	/home/u/goget/src/github.com/hajimehoshi/oto/context.go:89 +0x4d
github.com/faiface/beep/speaker.Init(0xbb80, 0xc7f, 0x0, 0x0)
	/home/u/goget/src/github.com/faiface/beep/speaker/speaker.go:42 +0x154
main.(*sound).create(0x7e2aa8)
	/home/u/goget/src/github.com/Lallassu/gizmo/sound.go:32 +0x56a
main.setup()
	/home/u/goget/src/github.com/Lallassu/gizmo/main.go:66 +0x12f
main.run()
	/home/u/goget/src/github.com/Lallassu/gizmo/main.go:43 +0x313
github.com/faiface/mainthread.Run.func1(0x6622f8, 0xc00001a120)
	/home/u/goget/src/github.com/faiface/mainthread/mainthread.go:37 +0x27
created by github.com/faiface/mainthread.Run
	/home/u/goget/src/github.com/faiface/mainthread/mainthread.go:36 +0xb1

Cheers,
Robin

unable to start the game

Hi, I'm unable to start the game when I select "new game" the screen loads back to the same screen, "the main menu".

go run main.go and go build main.go errors

misakamikoto@RailGun:~/公共的/gizmo$ go run main.go

github.com/go-gl/glfw/v3.2/glfw

In file included from ../../pkg/mod/github.com/go-gl/[email protected]/v3.2/glfw/c_glfw_linbsd.go:24:0:
../../pkg/mod/github.com/go-gl/[email protected]/v3.2/glfw/glfw/src/linux_joystick.c: In function ‘_glfwInitJoysticksLinux’:
../../pkg/mod/github.com/go-gl/[email protected]/v3.2/glfw/glfw/src/linux_joystick.c:224:42: warning: ‘%s’ directive output may be truncated writing up to 255 bytes into a region of size 9 [-Wformat-truncation=]
snprintf(path, sizeof(path), "%s/%s", dirname, entry->d_name);
^~~~~~~
In file included from /usr/include/stdio.h:862:0,
from /usr/include/X11/Xcursor/Xcursor.h:26,
from ../../pkg/mod/github.com/go-gl/[email protected]/v3.2/glfw/glfw/src/x11_platform.h:39,
from ../../pkg/mod/github.com/go-gl/[email protected]/v3.2/glfw/glfw/src/internal.h:169,
from ../../pkg/mod/github.com/go-gl/[email protected]/v3.2/glfw/glfw/src/x11_init.c:28,
from ../../pkg/mod/github.com/go-gl/[email protected]/v3.2/glfw/c_glfw_linbsd.go:19:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:64:10: note: ‘__builtin___snprintf_chk’ output between 12 and 267 bytes into a destination of size 20
return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
__bos (__s), __fmt, __va_arg_pack ());
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

command-line-arguments

./main.go:19:2: undefined: global
./main.go:22:16: undefined: GameTitle
./main.go:23:38: undefined: global
./main.go:24:16: undefined: global
./main.go:25:16: undefined: global
./main.go:27:5: undefined: global
./main.go:31:2: undefined: Debug
./main.go:39:2: undefined: centerWindow
./main.go:40:2: undefined: global
./main.go:45:2: undefined: printMemoryUsage
./main.go:45:2: too many errors

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.