mirror of
https://github.com/clockworkpi/LauncherGoDev.git
synced 2025-12-13 08:28:51 +01:00
test.go
This commit is contained in:
parent
5d8ebc7834
commit
cdc0673db7
6
test.go
6
test.go
@ -18,6 +18,9 @@ import (
|
|||||||
"github.com/cuu/gogame/time"
|
"github.com/cuu/gogame/time"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
const (
|
||||||
|
RUNEVT=1
|
||||||
|
)
|
||||||
func run() int {
|
func run() int {
|
||||||
|
|
||||||
width := 320
|
width := 320
|
||||||
@ -82,6 +85,7 @@ func run() int {
|
|||||||
|
|
||||||
display.Flip()
|
display.Flip()
|
||||||
|
|
||||||
|
event.AddCustomEvent(RUNEVT)
|
||||||
|
|
||||||
running := true
|
running := true
|
||||||
for running {
|
for running {
|
||||||
@ -106,7 +110,7 @@ func run() int {
|
|||||||
time.Delay(1000)
|
time.Delay(1000)
|
||||||
}
|
}
|
||||||
if ev.Data["Key"] == "P" {
|
if ev.Data["Key"] == "P" {
|
||||||
event.Post(event.RUNEVT,"GODEBUG=cgocheck=0 sucks") // just id and string, simplify the stuff
|
event.Post(RUNEVT,"GODEBUG=cgocheck=0 sucks") // just id and string, simplify the stuff
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user