From aca3f73877fd6fc2edaefc1483530267c66f2443 Mon Sep 17 00:00:00 2001 From: Brett Bronson Date: Sun, 5 May 2024 21:02:42 -0700 Subject: [PATCH] Updated to allow access to actual game instance instead of only offering access to gameproxy. --- gameproxy.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gameproxy.go b/gameproxy.go index 8f1bb45..a38cdbf 100644 --- a/gameproxy.go +++ b/gameproxy.go @@ -24,6 +24,10 @@ type GameProxy struct { Resizeable bool } +func (g *GameProxy) Game() ebiten.Game { + return g.game +} + // Update - Update UI and game in tandem. Handle inputs func (g *GameProxy) Update() error { if g.game == nil {