Documentation ¶
Overview ¶
package play takes a map and turns it into a playable scenario
Index ¶
- type CartPt
- type CellPoint
- type IsoPt
- type Scenario
- func (s *Scenario) CellAtCursor() (*maps.Cell, CellPoint)
- func (s *Scenario) ChangeZIdx(by int)
- func (s *Scenario) Draw(screen *ebiten.Image) error
- func (s *Scenario) HighlightedCharacter() *maps.Character
- func (s *Scenario) SelectHighlightedCharacter()
- func (s *Scenario) SelectedCharacter() *maps.Character
- func (s *Scenario) Update(screenX, screenY int) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Scenario ¶
type Scenario struct { // All these must be modified by user actions somehow. // TODO: extract into the idea of a viewport passed to Update / Draw somehow? // Or have a separater Drawer for the Scenario? Viewpoint image.Point // Top-left of the screen ZIdx int // Currently-viewed Z index Zoom float64 // Zoom level to set // contains filtered or unexported fields }
func NewScenario ¶
func NewScenario(assets *assetstore.AssetStore, name string) (*Scenario, error)
func (*Scenario) ChangeZIdx ¶
func (*Scenario) HighlightedCharacter ¶
func (*Scenario) SelectHighlightedCharacter ¶
func (s *Scenario) SelectHighlightedCharacter()
func (*Scenario) SelectedCharacter ¶
Click to show internal directories.
Click to hide internal directories.