Documentation ¶
Index ¶
- Constants
- func NewPongoGame(width, height int) fwk.Game
- type Arena
- type Ball
- type Pad
- func (p *Pad) GetBottom() gl.Float
- func (p *Pad) GetBoundingVolumes() []fwk.BoundingVolume
- func (p *Pad) GetDirection() int
- func (n *Pad) GetName() string
- func (p *Pad) GetTop() gl.Float
- func (p *Pad) IsDirectionLocked() bool
- func (p *Pad) IsDirectionLockedOn(dir int) bool
- func (n *Pad) IsOver(p fwk.Vector) bool
- func (n *Pad) IsUnder(p fwk.Vector) bool
- func (p *Pad) LockDirection(dir int)
- func (p *Pad) Move(duration time.Duration)
- func (p *Pad) Rotate(deg float32, up fwk.Vector)
- func (p *Pad) SetDirection(dir int)
- func (p *Pad) UnLockDirection()
Constants ¶
View Source
const ( MOVING_UP = iota MOVING_DOWN MOVING_STOP )
Variables ¶
This section is empty.
Functions ¶
func NewPongoGame ¶
Types ¶
type Arena ¶
type Arena struct {
// contains filtered or unexported fields
}
the arena has two bars
func (*Arena) GetBottomBoundingVolume ¶
func (a *Arena) GetBottomBoundingVolume() fwk.BoundingVolume
func (*Arena) GetBoundingVolumes ¶
func (a *Arena) GetBoundingVolumes() []fwk.BoundingVolume
func (*Arena) GetTopBoundingVolume ¶
func (a *Arena) GetTopBoundingVolume() fwk.BoundingVolume
type Ball ¶
type Ball struct {
// contains filtered or unexported fields
}
func (*Ball) GetBoundingVolumes ¶
func (b *Ball) GetBoundingVolumes() []fwk.BoundingVolume
func (*Ball) HandleCollision ¶
type Pad ¶
type Pad struct {
// contains filtered or unexported fields
}
func (*Pad) GetBoundingVolumes ¶
func (p *Pad) GetBoundingVolumes() []fwk.BoundingVolume
func (*Pad) GetDirection ¶
func (*Pad) IsDirectionLocked ¶
func (*Pad) IsDirectionLockedOn ¶
func (*Pad) LockDirection ¶
func (*Pad) SetDirection ¶
func (*Pad) UnLockDirection ¶
func (p *Pad) UnLockDirection()
Click to show internal directories.
Click to hide internal directories.