Sander Schobers
9641719579
Refactored event handling to be able to "handle" events so no other controls will handle the same event again.
28 lines
1.1 KiB
Go
28 lines
1.1 KiB
Go
package tins2020
|
|
|
|
type Intro struct {
|
|
LargeDialog
|
|
|
|
welcome Paragraph
|
|
}
|
|
|
|
func (i *Intro) Init(ctx *Context) error {
|
|
i.welcome.Text =
|
|
"Welcome to Botanim!\n\n" +
|
|
"In Botanim you play the role of botanist and your goal is to cultivate flowers in an open landscape.\n\n" +
|
|
"Flowers can only grow (well) in certain climates based on two properties: humidity and temperature. Watch out for existing vegetation to get an idea how humid the land is and check the appearance of the tile to see how hot it is. When well placed your planted flower will spread soon but an odd choice might kill your flower almost instantly. So choose carefully. When the flower spread significantly you can dig up flowers again to collect more money.\n\n" +
|
|
"Controls:\n" +
|
|
" - D: Selects shovel\n" +
|
|
" - R: Selects research\n" +
|
|
" - Spacebar: pauses game\n" +
|
|
" - 1: runs game at normal speed\n" +
|
|
" - 2: runs game extra fast\n" +
|
|
" - Mouse wheel or plus/minus: zooms landscape\n" +
|
|
" - CTRL + left mouse button or middle mouse button: pans landscape\n" +
|
|
"\n" +
|
|
"Have fun playing!"
|
|
i.SetContent(&i.welcome)
|
|
|
|
return i.LargeDialog.Init(ctx)
|
|
}
|