Quantum Pulse is a learning project looking into building an entity component system based game engine using go
- Go 1.8+
- OpenGL 4.1+
- go-gl/glfw
The hex map example
// Create the engine
e := engine.Engine{}
// Initialize the engine. This will create the window.
err := e.Init(screenWidth, screenHeight, windowTitle)
if err != nil {
panic(err)
}
// Now load a json scene file.
sceneID, err := e.LoadSceneFile("scene1.json")
if err != nil {
panic(err)
}
// Make the scene file that was just loaded the active scene.
e.LoadScene(sceneID)
// Start the main game loop.
e.Run()