Documentation ¶
Overview ¶
Package resource is used for scene resources such as walls and enemies.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Enemy ¶
type Enemy struct {
common.CollisionComponent
}
type Goal ¶
type Goal struct { ecs.BasicEntity common.RenderComponent common.SpaceComponent common.CollisionComponent }
Goal is used for switching between rooms. For instance in the final game there should be four of these objects at most on each side of the room.
func (*Goal) Remove ¶
func (g *Goal) Remove(ecs.BasicEntity)
Remove deletes the player and player systems
type Room ¶
type Room struct {
// contains filtered or unexported fields
}
func NewRoom ¶
NewRoom is a debug function for generating a room with obstacles inside of it. This function will not be the same in the final game, but for the sake of testing the ability to switch levels this function will return a choice of three different room types with their own associated obstacles and goal position for the player to progress through the next room.
type Wall ¶
type Wall struct { ecs.BasicEntity common.RenderComponent common.SpaceComponent common.CollisionComponent }
Click to show internal directories.
Click to hide internal directories.