package
Version:
v0.0.0-...-56193ee
Opens a new window with list of versions in this module.
Published: Nov 30, 2020
License: MIT
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package view contains all of the code that is concerned with communicating
game information to the players, other than that which is in the main loop.
type View struct {
SelectedY, SelectedX int
}
Represents the UI of the game; contains all UI state.
Used to create new View structs.
Given a game.Game structure, turns the state of the game described
in that structure into its UI representation.
Implements the logic of what happens when the user presses a key.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.