package coreobjects import rl "github.com/gen2brain/raylib-go/raylib" // An object loaded from the package. Impmiments GameObject interface type DynamicObject struct { Position rl.Vector2 Textures []*TextureBlock } // The dynamic objects can contain multiple textures. This struct // represents one of those parts type TextureBlock struct { Texture *rl.Texture2D Offset rl.Vector2 } func (base *DynamicObject) Create(SceneManager) { } func (base *DynamicObject) Destroy() { } func (base *DynamicObject) Update() { } func (base *DynamicObject) Draw() { for _, v := range base.Textures { rl.DrawTexture(*v.Texture, int32(base.Position.X + v.Offset.X), int32(base.Position.Y + v.Offset.Y), rl.White) } }