integrate snake game into lazygit

This commit is contained in:
Jesse Duffield 2022-12-30 11:34:01 +11:00
parent 81281a49b2
commit af5b3be286
14 changed files with 341 additions and 162 deletions

View file

@ -33,6 +33,7 @@ import (
"github.com/jesseduffield/lazygit/pkg/gui/types"
"github.com/jesseduffield/lazygit/pkg/integration/components"
integrationTypes "github.com/jesseduffield/lazygit/pkg/integration/types"
"github.com/jesseduffield/lazygit/pkg/snake"
"github.com/jesseduffield/lazygit/pkg/tasks"
"github.com/jesseduffield/lazygit/pkg/theme"
"github.com/jesseduffield/lazygit/pkg/updates"
@ -154,6 +155,8 @@ type Gui struct {
c *types.HelperCommon
helpers *helpers.Helpers
snakeGame *snake.Game
}
// we keep track of some stuff from one render to the next to see if certain