Package main
import "exp/4s"
This is a simple demo of Go running under Native Client. It is a tetris clone built on top of the exp/nacl/av and exp/draw packages.
See ../nacl/README for how to run it.
Package files
4s.go 5s.go data.go xs.goConstants
const (
CNone = 0
CBounds = 1
CPiece = 2
NX = 10
NY = 20
NCOL = 10
MAXN = 5
)
Variables
var (
N int
DY int
DMOUSE int
)
func Play
func Play(pp []Piece, ctxt draw.Context)
func PlaySound
func PlaySound(b []uint16)
type Piece
type Piece struct {
// contains unexported fields
}
