This commit is contained in:
Andrey Parhomenko 2023-12-26 21:39:22 +03:00
parent e7cb2fdb58
commit e66882f9d5

View file

@ -2,7 +2,7 @@ package main
import ( import (
//"math/rand" //"math/rand"
"fmt" //"fmt"
) )
import "github.com/di4f/gg" import "github.com/di4f/gg"
@ -32,7 +32,6 @@ func NewPlayer() *Player {
} }
func (p *Player) Start(c *Context) { func (p *Player) Start(c *Context) {
fmt.Println("library:", c.GraphicsLibrary())
} }
// Custom drawing function. // Custom drawing function.
@ -117,7 +116,6 @@ func (p *Player) Update(c *Context) {
} }
func (p *Player) Event(c *gg.Context) { func (p *Player) Event(c *gg.Context) {
fmt.Println("event:", c.Event)
switch ec := c.Event.(type) { switch ec := c.Event.(type) {
case *gg.KeyDown: case *gg.KeyDown:
switch { switch {