resource

package
v0.0.0-...-d471c43 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 26, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

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

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 NewGoal

func NewGoal(pos engo.Point) *Goal

func (*Goal) Remove

func (g *Goal) Remove(ecs.BasicEntity)

Remove deletes the player and player systems

func (*Goal) Update

func (g *Goal) Update(dt float32)

type Room

type Room struct {
	// contains filtered or unexported fields
}

func NewRoom

func NewRoom(w *ecs.World, num int) *Room

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL