Exemplo n.º 1
0
func drawInfoBar() {
	cx, cy := C.int(0), C.int(level.YWidth)
	C.mvaddstr(cy, cx, C.CString("T: "))
	C.addstr(C.CString(fmt.Sprint(currentLevel.Turn())))
}
Exemplo n.º 2
0
func Mvaddstr(y, x int, str ...interface{}) {
	res := (*C.char)(C.CString(fmt.Sprint(str...)))
	defer C.free(unsafe.Pointer(res))
	C.mvaddstr(C.int(y), C.int(x), res)
}