|
@@ -19,10 +19,10 @@ func gameinit() {
|
|
|
// Quit the screen
|
|
// Quit the screen
|
|
|
quit(&game)
|
|
quit(&game)
|
|
|
|
|
|
|
|
- fmt.Println("\nDebug time: Trash")
|
|
|
|
|
- for i, t := range game.trash {
|
|
|
|
|
- fmt.Println("Trash: ", i, t)
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ // fmt.Println("\nDebug time: Trash")
|
|
|
|
|
+ // for i, t := range game.trash {
|
|
|
|
|
+ // fmt.Println("Trash: ", i, t)
|
|
|
|
|
+ // }
|
|
|
|
|
|
|
|
// Give closure
|
|
// Give closure
|
|
|
if game.gameover == 1 {
|
|
if game.gameover == 1 {
|
|
@@ -165,7 +165,7 @@ func (game *Game) keyboardProcessor() {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
func quit(game *Game) {
|
|
func quit(game *Game) {
|
|
|
- game.screen.Clear()
|
|
|
|
|
|
|
+ // game.screen.Clear()
|
|
|
maybePanic := recover()
|
|
maybePanic := recover()
|
|
|
game.screen.Fini()
|
|
game.screen.Fini()
|
|
|
if maybePanic != nil {
|
|
if maybePanic != nil {
|