Documentation ¶
Index ¶
- func AnthenaSizeFromKey(c uint8) int
- func AnthenasFromKey(c uint8) int
- func ArmSizeFromKey(c uint8) int
- func ArmsFromKey(c uint8) int
- func EyesFromKey(c uint8) int
- func HasArmsUpFromKey(c uint8) bool
- func HasFootFromKey(c uint8) bool
- func HeightFromKey(c uint8) int
- func LegsFromKey(c uint8) int
- func LengthFromKey(c uint8) int
- func SpaceInvaders(w io.Writer, key string, colors []color.RGBA, size int)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AnthenaSizeFromKey ¶
AnthenaSizeFromKey returns the size of the anthenas that the invader should have, with respect to the character passed as argument. If it fails to parse the character it return the value of 2.
func AnthenasFromKey ¶
AnthenasFromKey returns the number of anthenas that the invader should have, with respect to the character passed as argument. If it fails to parse the character it return the value of 2.
func ArmSizeFromKey ¶
ArmSizeFromKey returns the size of the arms that the invader should have, with respect to the character passed as argument. If it fails to parse the character it return the value of 2.
func ArmsFromKey ¶
ArmsFromKey returns the number of arms that the invader should have, with respect to the character passed as argument. If it fails to parse the character it return the value of 2.
func EyesFromKey ¶
EyesFromKey returns the number of eyes that the invader should have, with respect to the character passed as argument. If it fails to parse the character it return the value of 2.
func HasArmsUpFromKey ¶
HasArmsUpFromKey tells you if the invader should it's arms up or not, with respect to the character passed as argument. If it fails to parse the character it return true.
func HasFootFromKey ¶
HasFootFromKey tells you if the invader should have feets or not, with respect to the character passed as argument. If it fails to parse the character it return true.
func HeightFromKey ¶
HeightFromKey returns the height that the invader should have, with respect to the character passed as argument. If it fails to parse the character it return the value of 6.
func LegsFromKey ¶
LegsFromKey returns the number of legs that the invader should have, with respect to the character passed as argument. If it fails to parse the character it return the value of 3.
func LengthFromKey ¶
LengthFromKey returns the number of anthenas that the invader should have, with respect to the character passed as argument. If it fails to parse the character it return the value of 7.
Types ¶
This section is empty.