diff --git a/main.go b/main.go index a121cc5..cf71cc8 100644 --- a/main.go +++ b/main.go @@ -64,6 +64,10 @@ func (ui *UI) Run() { } func (ui *UI) Update() error { + if ebiten.IsKeyPressed(ebiten.KeyEscape) { + ui.Emulator.Reset() + } + switch ui.State { case LoadingState: go ui.Run()