Skip to content
This repository was archived by the owner on Apr 16, 2025. It is now read-only.
Dima Marhitych edited this page Oct 17, 2023 · 3 revisions

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)

Clone this wiki locally