MCPcopy
hub / github.com/EngoEngine/engo

github.com/EngoEngine/engo @1.07 sqlite

repository ↗ · DeepWiki ↗ · release 1.07 ↗
1,673 symbols 4,414 edges 138 files 807 documented · 48%
README

Engo

GoDoc Join the chat at https://gitter.im/EngoEngine/engo License Build Status Build status Go Report Card Coverage Status

A cross-platform game engine written in Go following an interpretation of the Entity Component System paradigm. Engo is currently compilable for Mac OSX, Linux and Windows. With the release of Go 1.4, supporting Android and the inception of iOS compatibility, mobile has been be added as a release target. Web support (wasm) is also available.

v1.0 is now available! To celebrate, there will be a game jam coming soon to celebrate the release, start actually building things and hopefully find any issues. Updates for this will come soon.

Getting in touch / Contributing

We have a gitter chat for people to join who want to further discuss engo. We are happy to discuss bugs, feature requests and would love to hear about the projects you are building!

Getting Started

Theory: common vs engo

There are currently two major important packages within this repository: github.com/EngoEngine/engo and github.com/EngoEngine/engo/common.

The top level engo package contains the functionality of creating windows, starting the game, creating an OpenGL context and handling input. It is designed to be used with Systems designed as per github.com/EngoEngine/ecs specifications. The common package contains our ECS implementations of common game development Systems like a RenderSystem or CameraSystem.

Practice: Getting it to Run

  1. First, you have to install some dependencies:
  2. If you're running on Debian/Ubuntu: sudo apt-get install libasound2-dev libglu1-mesa-dev freeglut3-dev mesa-common-dev xorg-dev libgl1-mesa-dev git-all
  3. If you're running on Windows you'll need a gcc compiler that the go tool can use and have gcc.exe in your PATH environmental variable. We recommend Mingw since it has been tested. You'll also need git installed, we recommend getting it from The official Git site
  4. If you're on OSX, you will also need Git. You can find instructions here. You can also use homebrew to install git as well. Open an issue if you have any issues
  5. Then, you can go get it: go get -u github.com/EngoEngine/engo
  6. You may also want to get the dependencies of platform specific builds, so that build tools like godef can use them: go get -u -tags js ./... go get -u -tags android ./...
  7. Now, you have two choices:
  8. Visit our website, which hosts a full-blown tutorial series on how to create your own game, and on top of that, has some conceptual explanations;
  9. Check out some demos in our demos folder.
  10. Finally, if you run into problems, if you've encountered a bug, or want to request a feature, feel free to shoot us a DM or create an issue.

Breaking Changes Since v1.0

Engo is always undergoing a lot of optimizations and constantly gets new features. However, this sometimes means things break. In order to make transitioning easier for you, we have a list of those changes, with the most recent being at the top. If you run into any problems, please contact us at gitter.

  • TMXObject Width and Height is in pixels, and can be fractional. This has changed from an int to a float64.
  • TMXTileset now uses a Spritesheet instead of a Texture. This helps keep track of the guid better and allows the gid to not start at zero and have skips in it, as well as for borders and spacing in the tile sheet.
  • TMX Level's objects have all been rolled into Object rather than have separate things like "PolyLineObject". This is to be consistent with the TMX format.
  • The Shader interface now has a SetCamera(*CameraSystem) method. This method allows shaders to automatically update the camera system as it changes, such as between scenes or when the camera system is added.
  • The domain engo.io has expired. Now use github.com/EngoEngine/engo as the import path, and the site can be located at engoengine.github.io

Roadmap to v1.1

A list of issues for v1.1 can be found here. There's always room for improvement! Feel free to submit proposals, open issues, and let us know how we can improve!

History

Engo, originally known as Engi was written by ajhager as a general purpose Go game engine. With a desire to build it into an "ECS" game engine, it was forked to github.com/paked/engi. After passing through several iterations, it was decided that the project would be rebranded and rereleased as Engo on its own GitHub organization.

Credits

Thank you to everyone who has worked on, or with Engo. None of this would be possible without you, and your help has been truly amazing.

These are 3rd party projects that have made engo possible. - The original engi game engine which engo was based off of (BSD license) - Oto, a low-level cross-platform library to play sound. The AudioSystem uses this and is based on the audio package used in Ebiten.

Extension points exported contracts — how you extend this code

Message (Interface)
A Message is used to send messages within the MessageManager [56 implementers]
message.go
Scene (Interface)
Scene represents a screen ingame. i.e.: main menu, settings, but also the game itself [45 implementers]
scene.go
FileLoader (Interface)
FileLoader implements support for loading and releasing file resources. [7 implementers]
assets.go
Drawable (Interface)
Drawable is that which can be rendered to OpenGL. [11 implementers]
common/render.go
AxisPair (Interface)
An AxisPair is a set of Min/Max values which could possible be used by an Axis. [4 implementers]
axis.go
Shader (Interface)
Shader when implemented can be used in the RenderSystem as an OpenGl Shader. Setup holds the actual OpenGL shader data, [4 …
common/render_shaders.go
Container (Interface)
A Container is a 2D closed shape which contains a set of points. [2 implementers]
math.go
Image (Interface)
Image holds data and properties of an .jpg, .gif, or .png file [1 implementers]
common/render_filetype.go

Core symbols most depended-on inside this repo

Set
called by 161
math.go
setBufferValue
called by 161
common/render_shaders.go
Error
called by 157
common/render_shaders.go
update
called by 123
keys.go
Get
called by 114
keys.go
ID
called by 80
common/interfaces.go
Button
called by 70
input.go
set
called by 61
keys.go

Shape

Method 759
Function 552
Struct 309
Interface 35
TypeAlias 17
FuncType 1

Languages

Go100%

Modules by API surface

math.go52 symbols
common/camera.go49 symbols
common/interfaces.go46 symbols
math/all.go42 symbols
math_test.go36 symbols
demos/pong/pong.go35 symbols
engo_test.go34 symbols
demos/headless/headless.go34 symbols
common/render.go32 symbols
demos/adventure/adventure.go31 symbols
common/render_shapes.go31 symbols
demos/assetbundling/assets/bindata.go28 symbols

Dependencies from manifests, versioned

github.com/EngoEngine/ecsv1.0.5 · 1×
github.com/EngoEngine/glv1.0.13 · 1×
github.com/EngoEngine/mathv1.0.4 · 1×
github.com/Noofbiz/sdlMojaveFixv0.0.1 · 1×
github.com/Noofbiz/tmxv0.2.0 · 1×
github.com/go-bindata/go-bindatav3.1.2+incompatible · 1×
github.com/go-gl/glv0.0.0-2021121017281 · 1×
github.com/go-gl/glfw/v3.3/glfwv0.0.0-2021121306343 · 1×
github.com/go-gl/mathglv1.0.0 · 1×
github.com/golang/freetypev0.0.0-2017060900350 · 1×
github.com/hajimehoshi/go-mp3v0.3.2 · 1×
github.com/hajimehoshi/otov0.7.1 · 1×

For agents

$ claude mcp add engo \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact