Skip to content

Commit

Permalink
Updated to allow access to actual game instance instead of only offer…
Browse files Browse the repository at this point in the history
…ing access to gameproxy.
  • Loading branch information
damntourists committed May 6, 2024
1 parent 2b57898 commit aca3f73
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions gameproxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit aca3f73

Please sign in to comment.