Documentation ¶
Index ¶
- func DrawCircle(r *sdl.Renderer, cx, cy, radius int32)
- func FillCircle(r *sdl.Renderer, cx, cy, radius int32)
- func Run() error
- type Bounds
- type BoxCollider
- type Circle
- type CircleCollider
- type CollectSystem
- type Collectable
- type CollideEvent
- type CollideSystem
- type InputEvent
- type InputSystem
- type MoveSystem
- type Player
- type Position
- type Rect
- type RenderBox
- type RenderCircle
- type RenderSystem
- type Size
- type Vector2
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DrawCircle ¶
func FillCircle ¶
FillCircle https://gist.github.com/derofim/912cfc9161269336f722
Types ¶
type BoxCollider ¶
func (*BoxCollider) ToRect ¶
func (a *BoxCollider) ToRect(p *Position) *Rect
type Circle ¶
func (*Circle) HasIntersectionWithRect ¶
HasIntersectionWithRect https://stackoverflow.com/questions/401847/circle-rectangle-collision-detection-intersection
type CircleCollider ¶
func (*CircleCollider) ToCircle ¶
func (c *CircleCollider) ToCircle(p *Position) *Circle
type CollectSystem ¶
type CollectSystem struct{}
func (*CollectSystem) GetFilters ¶
func (s *CollectSystem) GetFilters() []gecs.SystemFilter
type Collectable ¶
type Collectable struct{}
type CollideEvent ¶
type CollideSystem ¶
type CollideSystem struct{}
func (*CollideSystem) GetFilters ¶
func (s *CollideSystem) GetFilters() []gecs.SystemFilter
type InputEvent ¶
type InputEvent struct {
Vector2
}
type InputSystem ¶
type InputSystem struct {
// contains filtered or unexported fields
}
func (*InputSystem) GetFilters ¶
func (s *InputSystem) GetFilters() []gecs.SystemFilter
type MoveSystem ¶
func (*MoveSystem) GetFilters ¶
func (s *MoveSystem) GetFilters() []gecs.SystemFilter
type RenderCircle ¶
type RenderSystem ¶
func (*RenderSystem) Destroy ¶
func (s *RenderSystem) Destroy()
func (*RenderSystem) GetFilters ¶
func (s *RenderSystem) GetFilters() []gecs.SystemFilter
func (*RenderSystem) Init ¶
func (s *RenderSystem) Init() error
Click to show internal directories.
Click to hide internal directories.