maxfish / gojira2d Goto Github PK
View Code? Open in Web Editor NEWSimple 2D game library written in Go and based on modern OpenGL
License: MIT License
Simple 2D game library written in Go and based on modern OpenGL
License: MIT License
Drawing primitive directly doesn't cause any problems, it could be a state that doesn't get reset
It looks like that the last vertex is missing.
I've tested it on MacOSX 10.11.6, here are the details of the GPU
VIDIA GeForce GTX 970:
Chipset Model: NVIDIA GeForce GTX 970
Type: GPU
Bus: PCIe
PCIe Lane Width: x16
VRAM (Total): 4095 MB
Vendor: NVIDIA (0x10de)
Device ID: 0x13c2
Revision ID: 0x00a1
ROM Revision: VBIOS 84.04.36.00.5e
Displays:
PHL 234E5:
Resolution: 1920 x 1080 @ 60Hz (1080p)
Pixel Depth: 32-Bit Color (ARGB8888)
Display Serial Number: UHB1424006540
Main Display: Yes
Mirror: Off
Online: Yes
Rotation: Supported
Television: Yes
Right now is a testing app for joysticks, theirs hot-plugging and the keyboard.
It should be a simple example like the other ones
deps is becoming the canonical dependency manager.
We are currently not using a camera to control the view matrix.
To be able to scroll over a bigger level we need to implement something that will contain the projection matrix as well, since the zoom is done by that matrix.
Right now it's possible to use the keyboard only as a joystick replacement.
There should be a way of getting lower level access to the key events.
Currently, the library uses float32. It does so to pass data easily to OpenGL.
Go's math libraries use float64, Box2D uses float64, MathGL uses float64...
I think it would be easier to switch to float64 and avoid a lot of conversions and to cast to float32 only before passing data to OpenGL
Right now, drawing a quad with a single color via shader uniform doesn't work
Would be nice to start adding some simple tests and to have TravisCI run them
I've tried running the snake demo via:
go run demos/snake/main.go
but it gives this error:
# command-line-arguments demos/snake/main.go:24:10: undefined: newSnakeGame
golang has fairly good tooling to pull external libraries from github, all we need to do is:
go get -u github.com/ByteArena/box2d
import "ByteArena/box2d"
Proper joystick mapping (from sdl2) is coming with glfw 3.3 which is 95% complete.
Instead of building something complex I am going to add support at least for the xbox360 and ps4 controllers, then we'll see
GLFW has not and will never have support for audio, we need a multiplatform library. It looks like the bindings for OpenAL are very old.
Another alternative is: https://github.com/gordonklaus/portaudio
Context should be renamed to something different, e.g., Renderer
As part of this change, some of the GL code we have spread around should be moving into Renderer
takes more than a second to just a.InitApp()
:
2018-04-09 20:02:57.909825167 +0200 CEST m=+0.000573251
2018/04/09 20:02:59 OpenGL version 4.1 ATI-1.66.31
2018-04-09 20:02:59.019127262 +0200 CEST m=+1.109872546
'Tiled' editor can create tiled maps but also maps composed by free form images. It can place triggers and entities.
It could be a good candidate to support a wide range of possible games
While adding support for framebuffers and postprocessing, I've found out that the following method call crashes the app:
gl.GenFramebuffers(1, &fb.fbo)
It looks like it's an issue of glfw, I am going to check their page to see if it's known
It looks like a problem of the Box2D implementation I'm using...
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.