...
This commit is contained in:
parent
e7cb2fdb58
commit
e66882f9d5
1 changed files with 1 additions and 3 deletions
|
@ -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 {
|
||||||
|
|
Loading…
Reference in a new issue