{"id":19528193,"url":"https://github.com/pucklaj/gohomeengine","last_synced_at":"2025-04-26T11:32:58.219Z","repository":{"id":57642957,"uuid":"127148557","full_name":"PucklaJ/GoHomeEngine","owner":"PucklaJ","description":"A Game Engine for 2D/3D Games written in go","archived":true,"fork":false,"pushed_at":"2023-11-04T22:04:24.000Z","size":178488,"stargazers_count":12,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-04-21T08:07:50.700Z","etag":null,"topics":["2d-game","3d-game","box2d","game-engine","mp3","physics-2d","tiled","wav"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"zlib","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/PucklaJ.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-03-28T13:58:24.000Z","updated_at":"2025-01-04T07:45:17.000Z","dependencies_parsed_at":"2022-08-27T21:52:48.591Z","dependency_job_id":null,"html_url":"https://github.com/PucklaJ/GoHomeEngine","commit_stats":null,"previous_names":["pucklamotzer09/gohomeengine"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PucklaJ%2FGoHomeEngine","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PucklaJ%2FGoHomeEngine/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PucklaJ%2FGoHomeEngine/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PucklaJ%2FGoHomeEngine/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PucklaJ","download_url":"https://codeload.github.com/PucklaJ/GoHomeEngine/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250980470,"owners_count":21517664,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["2d-game","3d-game","box2d","game-engine","mp3","physics-2d","tiled","wav"],"created_at":"2024-11-11T01:17:55.150Z","updated_at":"2025-04-26T11:32:56.963Z","avatar_url":"https://github.com/PucklaJ.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GoHomeEngine\n[![godoc](https://godoc.org/github.com/PucklaJ/GoHomeEngine/src/gohome?status.svg)](https://godoc.org/github.com/PucklaJ/GoHomeEngine/src/gohome)\n[![License: Zlib](https://img.shields.io/badge/License-Zlib-green.svg)](https://github.com/PucklaJ/GoHomeEngine/blob/master/LICENSE.md)\n[![GitHub last commit](https://img.shields.io/github/last-commit/PucklaJ/GoHomeEngine.svg)](https://github.com/PucklaJ/GoHomeEngine/commits/master)\n\u003cbr\u003e\nA Game Engine for 2D/3D Games written in go\n\n## Features\n\n##### General\n* Multiple Platform support: Windows, Linux, Mac, Android, Browser\n* Loading Shaders\n* Dynamic Shader Generation\n* Multiple Viewports/Cameras\n* Tweens\n* Audio (.wav and .mp3)\n* GUI with [GTK](https://www.gtk.org)\n* Simple OnScreen GUI\n* Instancing\n\n##### 3D\n* Rendering 3D Models\n* Camera\n* Loading 3D Models (.obj)\n* Materials\n* SpecularMaps\n* NormalMaps\n* PointLights\n* DirectionalLights\n* SpotLights\n* Shadows of DirectionalLight and SpotLight\n* Ray Casting\n* [Level Editor](https://github.com/PucklaJ/GoHomeEdit) (in development)\n\n##### 2D\n* Rendering 2D Sprites\n* Camera (Translating, Rotating and Zooming)\n* Sprite Animation\n* Rendering 2D Shapes (Point,Line,Rectangle,Polygon, etc.)\n* [Physics](https://box2d.org)\n* [TiledMaps](https://www.mapeditor.org)\n\n## Platforms\n\n|             | Windows | Linux | Mac | Android | iOS | Browser |\n| ----------- | ------- | ----- | --- | ------- | --- | ------- |\n| Tested      | Yes     | Yes   | No  | Yes     | No  | Yes     |\n| Implemented | Yes     | Yes   | Yes | Yes     | No  | Yes     |\n\n## Dependencies\n\n+ [mathgl](https://github.com/PucklaJ/mathgl) ([Forked from here](https://github.com/go-gl/mathgl))([License](https://github.com/PucklaJ/mathgl/blob/master/LICENSE))\n+ [tga](https://github.com/blezek/tga) ([License](https://github.com/blezek/tga/blob/master/LICENSE.MIT))\n+ [go-openal](https://github.com/PucklaJ/go-openal) ([Forked from here](https://github.com/timshannon/go-openal)) ([License](https://github.com/PucklaJ/go-openal/blob/master/LICENSE))\n+ [go-wav](https://github.com/PucklaJ/go-wav) ([Forked from here](https://github.com/sdobz/go-wav)) ([License](https://github.com/verdverm/go-wav/blob/master/LICENSE.md))\n+ [go-mp3](https://github.com/hajimehoshi/go-mp3) ([License](https://github.com/hajimehoshi/go-mp3/blob/master/LICENSE))\n+ [box2d](https://github.com/ByteArena/box2d) ([License](https://github.com/ByteArena/box2d/blob/master/LICENSE.md))\n+ [tmx](https://github.com/PucklaJ/tmx) ([Forked from here](https://github.com/elliotmr/tmx)) ([License](https://github.com/PucklaJ/tmx/blob/master/LICENSE))\n+ [glfw](https://github.com/glfw/glfw) ([License](https://github.com/glfw/glfw/blob/master/LICENSE.md))\n+ [gtk](https://gtk.org) ([License](http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html))\n+ [go-sdl2](https://github.com/PucklaJ/go-sdl2) ([Forked from here](https://github.com/veandco/go-sdl2)) ([License](https://github.com/PucklaJ/go-sdl2/blob/master/LICENSE))\n+ [gopherjs](https://github.com/gopherjs/gopherjs) ([License](https://github.com/gopherjs/gopherjs/blob/master/LICENSE))\n+ [go-gl/gl](https://github.com/go-gl/gl) ([License](https://github.com/go-gl/gl/blob/master/LICENSE))\n+ [android-go](https://github.com/PucklaJ/android-go) ([Forked from here](https://github.com/xlab/android-go)) ([License](https://github.com/PucklaJ/android-go/blob/master/LICENSE.txt))\n+ [webgl](https://github.com/PucklaJ/webgl) ([Forked from here](https://github.com/gopherjs/webgl)) ([License](https://github.com/PucklaJ/webgl/blob/master/LICENSE))\n\n## Installation\n1. Install the c-Dependencies:\u003cbr\u003e\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\t// For Desktop (Most of them should already be installed)\n\tsudo apt-get install libx11-dev libxrandr-dev libxcursor-dev libxinerama-dev libpthread-stubs0-dev zlib1g-dev libgl1-mesa-dev libxi-dev\n\t// For GTK\n\tsudo apt-get install libgtk-3-dev\n\t// On Windows use msys and execute one of the following commands\n\tpacman -S mingw-w64-x86_64-gtk3 // for 64-Bit\n\tpacman -S mingw-w64-i686-gtk3   // for 32-Bit\n\t// For SDL2\n\tsudo apt-get install libsdl2-dev\n\t// On Windows use msys and execute one of the following commands\n\tpacman -S mingw-w64-x86_64-sdl2 // for 64-Bit\n\tpacman -S mingw-w64-i686-sdl2   // for 32-Bit\n\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n2. Install the go-Dependencies:\u003cbr\u003e\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n    // Desktop\n\t// Default (GLFW,OpenGL) if you only want to build desktop applications only execute this command\n\tgo get -u github.com/PucklaJ/mathgl/mgl32 github.com/PucklaJ/tmx github.com/ByteArena/box2d github.com/PucklaJ/GLSLGenerator github.com/go-gl/glfw/v3.2 github.com/PucklaJ/go-openal/openal github.com/PucklaJ/go-wav github.com/hajimehoshi/go-mp3 github.com/go-gl/gl/all-core/gl\n\n\t// Use some of the following commands to build for a different platform or if you want to use\n\t// a different Framework or Renderer\n\n\t// Always Needed\n\tgo get -u github.com/PucklaJ/mathgl/mgl32 github.com/PucklaJ/tmx github.com/ByteArena/box2d github.com/PucklaJ/GLSLGenerator\n\n\t// For GLFW\n\tgo get -u github.com/go-gl/glfw/v3.2 github.com/PucklaJ/go-openal/openal github.com/PucklaJ/go-wav github.com/hajimehoshi/go-mp3\n\n\t// For SDL2\n\tgo get -u github.com/PucklaJ/go-sdl2/sdl github.com/PucklaJ/go-openal/openal github.com/PucklaJ/go-wav github.com/hajimehoshi/go-mp3\n\n\t// For GTK\n\tgo get -u github.com/PucklaJ/go-openal/openal github.com/PucklaJ/go-wav github.com/hajimehoshi/go-mp3\n\n\t// For OpenGL\n\tgo get -u github.com/go-gl/gl/all-core/gl\n\n\t// Browser\n\tgo get -u github.com/gopherjs/gopherjs github.com/PucklaJ/webgl\n\n\t// Android\n\tgo get -u github.com/PucklaJ/go-sdl2/sdl github.com/PucklaJ/android-go/gles2\n\n\t// For OpenGLES2\n\tgo get -u github.com/PucklaJ/android-go/gles2\n\n\t// For OpenGLES3\n\tgo get -u github.com/PucklaJ/android-go/gles3\n\n\t// For OpenGLES31\n\tgo get -u github.com/PucklaJ/android-go/gles31\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n3. Compile one of the examples to test:\u003cbr\u003e\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\tcd $GOPATH/src/github.com/PucklaJ/GoHomeEngine/src/examples/basic\n\tgo build \u0026\u0026 ./basic\n\t// You should see a gopher in the middle\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\nOptional: Install libraries for audio on android\u003cbr\u003e\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n    // If you want to use audio on android you first have to install SDL_mixer with mp3 and ogg support\n\t// This guide is only for linux ubuntu and debian. For other platforms it should be similiar or the\n\t// default precompiled binaries already include mp3 and ogg support.\n\n\t// go to some directory where you want to store the respositories\n\tcd $GIT_HOME\n\t// clone and install mpg123\n\tgit clone https://github.com/kepstin/mpg123.git\n\tcd mpg123\n\t./configure\n\tmake -j4\n\tsudo make install\n\tcd ..\n\t// install libvorbis\n\tsudo apt-get install libvorbis-dev\n\t// clone and install SDL_mixer\n\tgit clone https://github.com/SDL-mirror/SDL_mixer.git\n\tcd SDL_mixer\n\t./configure --enable-music-mp3 --enable-music-ogg\n\tmake -j4\n\tsudo make install\n\t// Now you are ready to use audio on android\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\n## Tutorial\n\nThe following code describes what is needed to write a game with GoHome\n\n```go\npackage main\n\nimport (\n\t\"github.com/PucklaJ/GoHomeEngine/src/frameworks/GLFW\"\n\t\"github.com/PucklaJ/GoHomeEngine/src/gohome\"\n\t\"github.com/PucklaJ/GoHomeEngine/src/renderers/OpenGL\"\n)\n\ntype StartScene struct {\n\n}\n\nfunc (*StartScene) Init() {\n\n}\n\nfunc (*StartScene) Update(delta_time float32) {\n\n}\n\nfunc (*StartScene) Terminate() {\n\n}\n\nfunc main() {\n\tgohome.MainLop.Run(\u0026framework.GLFWFramework{},\u0026renderer.OpenGLRenderer{},1280,720,\"Example\",\u0026StartScene{})\n}\n```\n\nThis program opens a window with a black background. To learn more you can look at the examples in src/examples\n\n## Build tool\n\nThere is a build tool available with which you can build your games easily for different platforms\nRead more [here](https://github.com/PucklaJ/GoHomeEngine/blob/master/src/cmd/gohome/README.md).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpucklaj%2Fgohomeengine","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpucklaj%2Fgohomeengine","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpucklaj%2Fgohomeengine/lists"}