示例#1
0
func SetFrameRate(fps int) {
	if fps == 0 {
		codingame.SetDelay(0)
	} else {
		codingame.SetDelay(1000 / fps)
	}
}
示例#2
0
func SetDelay(ms int) {
	codingame.SetDelay(ms)
}