Entity - dimkauzh/webzen GitHub Wiki

Api to entity

Import it like this:

import (
    "github.com/dimkauzh/webzen/src/entity"
)

Structs

type Entity struct {
  x      int
  y      int
  width  int
  height int
  image  image.Image
  rect   rect.Rect
}

Functions

func NewEntity(x int, y int, width int, height int) -> Entity 
func (e *Entity) SetImage(image image.Image)
func (e *Entity) SetRect(rect rect.Rect)