Code Monkey home page Code Monkey logo

amore's Introduction

REDO

IDEAS FOR BETTER WORLD

  • Make more portable with goxjs toolkit. Get games on web
  • Simplify and get rid of extra items like particle generator that isn't needed
  • scripting interface
  • combine keyboard, joystick and touch into a single input, mapping package
  • Somehow enable cross platform deploy easily

TODO:

  • minimize everything, this is for myself I don't need all this extra
  • remove sdl and use goxjs glfw
  • reimlement input with mapping key to event
  • goxjs file loading glfw.Open()
  • use beep to have cross platform audio
  • use goxjs for better cross platform
  • default antialiasing?
  • fix font rendering/sprite batching in web runtime
  • use glua for scripting
  • cross compile on a singple platform

These changes will reduce functionality but make it more portable.

amore's People

Contributors

bruston avatar jubalh avatar tanema 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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

amore's Issues

Gradle or Maven?

Hey Tim,

Is there a Gradle or Maven Repo in the works to plug into an Android App. I'll checkout the endpoints, but that might be a future option.

native float32

github.com/luxengine/math

Figured you would be interrested

cheers

fatal error: unexpected signal during runtime execution

Hey, loving amore so far, however I seem to get random crashes while running that are not reproducible as they do not seem to have any particular cause.

fatal error: unexpected signal during runtime execution
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x7f0e50fa0540]

runtime stack:
runtime.throw(0x55cae1efb72a, 0x2a)
	/usr/local/go/src/runtime/panic.go:566 +0x95
runtime.sigpanic()
	/usr/local/go/src/runtime/sigpanic_unix.go:12 +0x2cc

goroutine 1 [syscall, locked to thread]:
runtime.cgocall(0x55cae1dfed30, 0xc420513848, 0x55ca00000000)
	/usr/local/go/src/runtime/cgocall.go:131 +0x110 fp=0xc4205137f0 sp=0xc4205137b0
github.com/go-gl/gl/v2.1/gl._Cfunc_glowBufferSubData(0x7f0e50454480, 0x8892, 0x0, 0x80, 0xc42728aa00)
	github.com/go-gl/gl/v2.1/gl/_obj/_cgo_gotypes.go:7543 +0x45 fp=0xc420513848 sp=0xc4205137f0
github.com/go-gl/gl/v2.1/gl.BufferSubData(0xc400008892, 0x0, 0x80, 0xc42728aa00)
	/home/conor/thingo/go/src/github.com/go-gl/gl/v2.1/gl/package.go:18284 +0x7c fp=0xc420513880 sp=0xc420513848
github.com/ibrokemypie/game/vendor/github.com/tanema/amore/gfx/gl.BufferSubData(0x55ca00008892, 0x0, 0x80, 0xc42728aa00)
	/home/conor/thingo/go/src/github.com/ibrokemypie/game/vendor/github.com/tanema/amore/gfx/gl/gl_opengl.go:134 +0x47 fp=0xc4205138b0 sp=0xc420513880
github.com/ibrokemypie/game/vendor/github.com/tanema/amore/gfx.(*vertexBuffer).bufferStatic(0xc4263fb780)
	/home/conor/thingo/go/src/github.com/ibrokemypie/game/vendor/github.com/tanema/amore/gfx/vertex_buffer.go:35 +0x8e fp=0xc4205138e0 sp=0xc4205138b0
github.com/ibrokemypie/game/vendor/github.com/tanema/amore/gfx.(*vertexBuffer).bufferData(0xc4263fb780)
	/home/conor/thingo/go/src/github.com/ibrokemypie/game/vendor/github.com/tanema/amore/gfx/vertex_buffer.go:67 +0xcd fp=0xc420513910 sp=0xc4205138e0
github.com/ibrokemypie/game/vendor/github.com/tanema/amore/gfx.(*vertexBuffer).fill(0xc4263fb780, 0x0, 0xc420513978, 0x20, 0x20)
	/home/conor/thingo/go/src/github.com/ibrokemypie/game/vendor/github.com/tanema/amore/gfx/vertex_buffer.go:99 +0x120 fp=0xc420513940 sp=0xc420513910
github.com/ibrokemypie/game/vendor/github.com/tanema/amore/gfx.(*SpriteBatch).addv(0xc4272862d0, 0xc420010740, 0x10, 0x10, 0xc4263fb7c0, 0xffffffffffffffff, 0x41c0000040b20000, 0x40b2000000000000)
	/home/conor/thingo/go/src/github.com/ibrokemypie/game/vendor/github.com/tanema/amore/gfx/sprite_batch.go:150 +0x24e fp=0xc420513a08 sp=0xc420513940
github.com/ibrokemypie/game/vendor/github.com/tanema/amore/gfx.(*SpriteBatch).Addq(0xc4272862d0, 0xc420012900, 0xc420513af8, 0x2, 0x2, 0xc42055ff80, 0x1)
	/home/conor/thingo/go/src/github.com/ibrokemypie/game/vendor/github.com/tanema/amore/gfx/sprite_batch.go:56 +0xa7 fp=0xc420513a70 sp=0xc420513a08
github.com/ibrokemypie/game/vendor/github.com/tanema/amore/gfx.(*Text).generate(0xc42355b140)
	/home/conor/thingo/go/src/github.com/ibrokemypie/game/vendor/github.com/tanema/amore/gfx/text.go:154 +0x3c4 fp=0xc420513c18 sp=0xc420513a70
github.com/ibrokemypie/game/vendor/github.com/tanema/amore/gfx.(*Text).loadVolatile(0xc42355b140, 0xc42661a9f8)
	/home/conor/thingo/go/src/github.com/ibrokemypie/game/vendor/github.com/tanema/amore/gfx/text.go:110 +0x129 fp=0xc420513c90 sp=0xc420513c18
github.com/ibrokemypie/game/vendor/github.com/tanema/amore/gfx.registerVolatile(0x55cae2242860, 0xc42355b140)
	/home/conor/thingo/go/src/github.com/ibrokemypie/game/vendor/github.com/tanema/amore/gfx/volatile.go:22 +0x8e fp=0xc420513ce8 sp=0xc420513c90
github.com/ibrokemypie/game/vendor/github.com/tanema/amore/gfx.NewColorTextExt(0xc420014280, 0xc42661aad0, 0x1, 0x1, 0xc425b75d68, 0x1, 0x1, 0xbf800000, 0x1, 0x3134323200000000, ...)
	/home/conor/thingo/go/src/github.com/ibrokemypie/game/vendor/github.com/tanema/amore/gfx/text.go:100 +0x1d0 fp=0xc420513d40 sp=0xc420513ce8
github.com/ibrokemypie/game/vendor/github.com/tanema/amore/gfx.NewTextExt(0xc420014280, 0xc42661a9f8, 0x4, 0xbf800000, 0x1, 0x0, 0x0, 0x0)
	/home/conor/thingo/go/src/github.com/ibrokemypie/game/vendor/github.com/tanema/amore/gfx/text.go:71 +0x1a2 fp=0xc420513dc8 sp=0xc420513d40
github.com/ibrokemypie/game/vendor/github.com/tanema/amore/gfx.NewText(0xc420014280, 0xc42661a9f8, 0x4, 0xa, 0xc42661a9f8, 0x4)
	/home/conor/thingo/go/src/github.com/ibrokemypie/game/vendor/github.com/tanema/amore/gfx/text.go:62 +0x56 fp=0xc420513e18 sp=0xc420513dc8
github.com/ibrokemypie/game/vendor/github.com/tanema/amore/gfx.Print(0xc42661a9f8, 0x4, 0xc420513e80, 0x2, 0x2)
	/home/conor/thingo/go/src/github.com/ibrokemypie/game/vendor/github.com/tanema/amore/gfx/text.go:24 +0x62 fp=0xc420513e58 sp=0xc420513e18
main.draw()
	/home/conor/thingo/go/src/github.com/ibrokemypie/game/main/game.go:30 +0x72 fp=0xc420513e98 sp=0xc420513e58
github.com/ibrokemypie/game/vendor/github.com/tanema/amore.Start(0x55cae1f15d80, 0x55cae1f15d70, 0x0, 0x0)
	/home/conor/thingo/go/src/github.com/ibrokemypie/game/vendor/github.com/tanema/amore/engine.go:49 +0x1ec fp=0xc420513f18 sp=0xc420513e98
main.main()
	/home/conor/thingo/go/src/github.com/ibrokemypie/game/main/game.go:21 +0x3e fp=0xc420513f48 sp=0xc420513f18
runtime.main()
	/usr/local/go/src/runtime/proc.go:183 +0x1f4 fp=0xc420513fa0 sp=0xc420513f48
runtime.goexit()
	/usr/local/go/src/runtime/asm_amd64.s:2086 +0x1 fp=0xc420513fa8 sp=0xc420513fa0

goroutine 17 [syscall, locked to thread]:
runtime.goexit()
	/usr/local/go/src/runtime/asm_amd64.s:2086 +0x1

Seems like the wrong SDL version is vendored.

Just wanted to play around with your library. However after installing the dependencies with glide and trying to build the examples I see a lot of errors

# github.com/tanema/amore/vendor/github.com/tanema/amore/joystick
../../amore/vendor/github.com/tanema/amore/joystick/joystick.go:36:50: cannot use sdl.JoystickID(joystick.id) (type sdl.JoystickID) as type int in argument to sdl.JoystickOpen
../../amore/vendor/github.com/tanema/amore/joystick/joystick.go:68:48: joystick.stick.GetAttached undefined (type *sdl.Joystick has no field or method GetAttached)
../../amore/vendor/github.com/tanema/amore/joystick/joystick.go:73:49: joystick.stick.GetGUID undefined (type *sdl.Joystick has no field or method GetGUID)
../../amore/vendor/github.com/tanema/amore/joystick/joystick.go:98:23: joystick.stick.GetButton undefined (type *sdl.Joystick has no field or method GetButton)
../../amore/vendor/github.com/tanema/amore/joystick/joystick.go:131:40: joystick.stick.GetAxis undefined (type *sdl.Joystick has no field or method GetAxis)
../../amore/vendor/github.com/tanema/amore/joystick/joystick.go:144:54: joystick.stick.GetAxis undefined (type *sdl.Joystick has no field or method GetAxis)
../../amore/vendor/github.com/tanema/amore/joystick/joystick.go:156:23: joystick.stick.GetHat undefined (type *sdl.Joystick has no field or method GetHat)
../../amore/vendor/github.com/tanema/amore/joystick/joystick.go:165:30: joystick.controller.GetAxis undefined (type *sdl.GameController has no field or method GetAxis)
../../amore/vendor/github.com/tanema/amore/joystick/joystick.go:176:28: joystick.controller.GetButton undefined (type *sdl.GameController has no field or method GetButton)
../../amore/vendor/github.com/tanema/amore/joystick/joystick.go:251:58: cannot use &joystick.vibration.Effect (type *sdl.HapticEffect) as type sdl.iHapticEffect in argument to joystick.haptic.UpdateEffect:
	*sdl.HapticEffect does not implement sdl.iHapticEffect (missing sdl.cHapticEffect method)
../../amore/vendor/github.com/tanema/amore/joystick/joystick.go:251:58: too many errors
# github.com/tanema/amore/vendor/github.com/tanema/amore/window
../../amore/vendor/github.com/tanema/amore/window/window.go:63:28: too many arguments in call to sdl.GetDesktopDisplayMode
	have (int, *sdl.DisplayMode)
	want (int)
../../amore/vendor/github.com/tanema/amore/window/window.go:83:33: too many arguments in call to sdl.GetDisplayMode
	have (int, number, *sdl.DisplayMode)
	want (int, int)
../../amore/vendor/github.com/tanema/amore/window/window.go:83:33: multiple-value sdl.GetDisplayMode() in single-value context
../../amore/vendor/github.com/tanema/amore/window/window.go:108:23: too many arguments in call to sdl.GetDisplayBounds
	have (int, *sdl.Rect)
	want (int)
../../amore/vendor/github.com/tanema/amore/window/window.go:167:18: undefined: sdl.GLCreateContext
../../amore/vendor/github.com/tanema/amore/window/window.go:244:28: too many arguments in call to sdl.GetDesktopDisplayMode
	have (int, *sdl.DisplayMode)
	want (int)
../../amore/vendor/github.com/tanema/amore/window/window.go:261:10: undefined: sdl.GLGetDrawableSize
../../amore/vendor/github.com/tanema/amore/window/window.go:271:21: too many arguments in call to sdl.GetDisplayMode
	have (int, int, *sdl.DisplayMode)
	want (int, int)
../../amore/vendor/github.com/tanema/amore/window/window.go:332:2: undefined: sdl.GLSwapWindow
../../amore/vendor/github.com/tanema/amore/window/window.go:395:23: multiple-value sdl.ShowCursor() in single-value context
../../amore/vendor/github.com/tanema/amore/window/window.go:395:23: too many errors

My guess is that the wrong version of go-sdl2 is vendored?

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.