Documentation ¶
Index ¶
Constants ¶
View Source
const ( NameofGame = "ship shape" PlanetSize = 32 PlanetDistance = 6 // lower numbers are denser WindowW = 1024 WindowH = 768 ArrowKeyMoveSpeed = 4 // larger numbers are faster Buffer = 4 Border = 1 BarHeight = 4 PanelWidth = 200 PanelExternalPadding = 10 IncomeRate = 3 YearLength = 1200 // smaller numbers are faster BaseProductionRate = 3600 // smaller numbers are faster ShipSpeed = 1 // smaller numbers are faster )
View Source
const ( TtfRegular = "fonts/OpenSans_SemiCondensed-Regular.ttf" TtfBold = "fonts/OpenSans_SemiCondensed-Bold.ttf" DPI = 72 )
Variables ¶
View Source
var BackgroundColor = color.RGBA{0x00, 0x00, 0x00, 0xff}
View Source
var FocusedColor = color.RGBA{0x78, 0xcc, 0xe2, 0xff}
View Source
var LevelProgressColor = color.RGBA{0x80, 0x00, 0x20, 0xff}
View Source
var NonFocusColor = color.RGBA{0x7f, 0x7f, 0x7f, 0xff}
View Source
var Shader *ebiten.Shader
View Source
var ShaderOpts *ebiten.DrawRectShaderOptions
Functions ¶
func InitializeShader ¶
func InitializeShader()
func PlayButtonSound ¶
func PlayButtonSound()
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.