client

package
v0.0.0-...-bd01111 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 23, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TrailLength  = uint64(16)
	ScreenWidth  = 640
	ScreenHeight = 720
	PixelSize    = 25
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	*client.Client
	// contains filtered or unexported fields
}

func NewClient

func NewClient(
	kv lib.KeyValueStore,
	io *rpc.IO,
) *Client

func (*Client) AddBody

func (c *Client) AddBody(x, y, r int32)

func (*Client) Core

func (c *Client) Core() *physics.Core

func (*Client) Draw

func (c *Client) Draw(screen *ebiten.Image)

func (*Client) GetBody

func (c *Client) GetBody(bodyId uint8) *datamod.BodiesRow

func (*Client) GetBodyCount

func (c *Client) GetBodyCount() uint8

func (*Client) GetMeta

func (c *Client) GetMeta() *datamod.MetaRow

func (*Client) Layout

func (c *Client) Layout(outsideWidth, outsideHeight int) (screenWidth, screenHeight int)

func (*Client) Update

func (c *Client) Update() error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL