A dead simple 2D game engine for Go
This report summarizes scanner evidence for hajimehoshi/ebiten, a Go project with 13,547 GitHub stars. SynthScan examined 242,180 lines of code across 981 source files, recording 1129 pattern matches distributed across 4 syntactic categories. The legacy adjusted pattern signal is 4.6 (Low pattern signal); it is not an authorship estimate.
Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.
Use each vector to guide manual verification of the underlying findings.
Can maintainers explain intent, assumptions, and trade-offs? 1129 finding(s).
Are imports declared and package/API names verified? 0 finding(s).
Are wrappers, guards, and repeated structures necessary? 0 finding(s).
Which changes need focused human review? 1129 finding(s).
This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.
Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.
This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.
The scanner identified 1129 distinct pattern matches across 4 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | geom_test.go | 1 | // Copyright 2014 Hajime Hoshi | COMMENT |
| LOW | generate.go | 1 | // Copyright 2015 Hajime Hoshi | COMMENT |
| LOW | generate.go | 21 | // | COMMENT |
| LOW | window.go | 1 | // Copyright 2019 The Ebiten Authors | COMMENT |
| LOW | window.go | 41 | WindowResizingModeOnlyFullscreenEnabled WindowResizingModeType = WindowResizingModeType(ui.WindowResizingModeOnlyFullsc | COMMENT |
| LOW | window.go | 61 | // SetWindowDecorated does nothing if the platform is not a desktop. | COMMENT |
| LOW | window.go | 81 | // | COMMENT |
| LOW | window.go | 121 | mode = ui.WindowResizingModeEnabled | COMMENT |
| LOW | window.go | 141 | // | COMMENT |
| LOW | window.go | 161 | // | COMMENT |
| LOW | window.go | 201 | // WindowSize returns the window size on desktops. | COMMENT |
| LOW | window.go | 261 | func IsWindowFloating() bool { | COMMENT |
| LOW | window.go | 281 | func MaximizeWindow() { | COMMENT |
| LOW | window.go | 301 | // | COMMENT |
| LOW | window.go | 321 | // | COMMENT |
| LOW | window.go | 341 | // the game can know whether the window is being closed or not by IsWindowBeingClosed. | COMMENT |
| LOW | window.go | 361 | COMMENT | |
| LOW | colorm.go | 1 | // Copyright 2014 Hajime Hoshi | COMMENT |
| LOW | colorm.go | 21 | ) | COMMENT |
| LOW | colorm.go | 121 | } | COMMENT |
| LOW | colorm.go | 141 | } | COMMENT |
| LOW | shader_test.go | 1 | // Copyright 2020 The Ebiten Authors | COMMENT |
| LOW | mousebuttons.go | 1 | // Copyright 2015 Hajime Hoshi | COMMENT |
| LOW | gameforui.go | 1 | // Copyright 2014 Hajime Hoshi | COMMENT |
| LOW | monitor.go | 1 | // Copyright 2023 The Ebitengine Authors | COMMENT |
| LOW | monitor.go | 21 | // MonitorType represents a monitor available to the system. | COMMENT |
| LOW | monitor.go | 41 | // | COMMENT |
| LOW | shader.go | 1 | // Copyright 2020 The Ebiten Authors | COMMENT |
| LOW | ebiten_test.go | 1 | // Copyright 2024 The Ebitengine Authors | COMMENT |
| LOW | stencilbuffer_test.go | 1 | // Copyright 2026 The Ebitengine Authors | COMMENT |
| LOW | imagetobytes_test.go | 1 | // Copyright 2016 The Ebiten Authors | COMMENT |
| LOW | colormode.go | 1 | // Copyright 2026 The Ebitengine Authors | COMMENT |
| LOW | colormode.go | 41 | // | COMMENT |
| LOW | run.go | 1 | // Copyright 2014 Hajime Hoshi | COMMENT |
| LOW | run.go | 41 | // An actual TPS is available by ActualTPS(), and the result might slightly differ from your expected TPS, | COMMENT |
| LOW | run.go | 61 | // Draw draws the game screen by one frame. | COMMENT |
| LOW | run.go | 81 | // It is ensured that Layout is invoked before Update is called in the first frame. | COMMENT |
| LOW | run.go | 121 | // private prevents other packages from implementing this interface. | COMMENT |
| LOW | run.go | 141 | const DefaultTPS = clock.DefaultTPS | COMMENT |
| LOW | run.go | 181 | } | COMMENT |
| LOW | run.go | 201 | // | COMMENT |
| LOW | run.go | 221 | // On browsers, it is strongly recommended to use iframe if you embed an Ebitengine application in your website. | COMMENT |
| LOW | run.go | 241 | func RunGame(game Game) error { | COMMENT |
| LOW | run.go | 261 | // The default (zero) value is false, which means that the window is not transparent. | COMMENT |
| LOW | run.go | 281 | // The default (zero) value is false, which means that the single thread mode is disabled. | COMMENT |
| LOW | run.go | 301 | // ApplePressAndHoldEnabled indicates whether the press-and-hold feature is enabled or not. | COMMENT |
| LOW | run.go | 321 | // `ebitenginevmguest` build tag, the environment variable EBITENGINE_VM_ENDPOINT is used instead. | COMMENT |
| LOW | run.go | 341 | // If game implements FinalScreenDrawer, its DrawFinalScreen is called after Draw. | COMMENT |
| LOW | run.go | 401 | if s == nil { | COMMENT |
| LOW | run.go | 421 | // ScreenSizeInFullscreen must be called on the main thread before ebiten.RunGame, and is concurrent-safe after | COMMENT |
| LOW | run.go | 441 | // CursorModeCaptured hides the system cursor and locks it to the window. | COMMENT |
| LOW | run.go | 461 | // | COMMENT |
| LOW | run.go | 481 | // SetFullscreen does nothing on mobiles. | COMMENT |
| LOW | run.go | 501 | // | COMMENT |
| LOW | run.go | 521 | func SetRunnableOnUnfocused(runnableOnUnfocused bool) { | COMMENT |
| LOW | run.go | 561 | } | COMMENT |
| LOW | run.go | 581 | // The game's Update is called based on the specified TPS. | COMMENT |
| LOW | run.go | 601 | // | COMMENT |
| LOW | run.go | 661 | // SyncWithFPS is a special TPS value that means TPS syncs with FPS. | COMMENT |
| LOW | run.go | 701 | // SetScreenTransparent sets the state if the window is transparent. | COMMENT |
| 1066 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | exp/vmhost/guestsession.go | 1419 | // The guest releases a session before starting the next one, but be robust to a missing end: a new | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | internal/atlas/image_test.go | 918 | // TODO: Add tests to extend image on an atlas out of the main loop | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | internal/glfw/glx_context_linbsd.go | 334 | // NOTE: This function must not call any X11 functions, as it is called | COMMENT |