diff --git a/examples/splashmenu/fonts/splashfonts.go b/examples/splashmenu/fonts/splashfonts.go index 6808511..3c4129a 100644 --- a/examples/splashmenu/fonts/splashfonts.go +++ b/examples/splashmenu/fonts/splashfonts.go @@ -9,10 +9,11 @@ import ( ) type FontBase struct { - Title font.Face - Menu font.Face - Splash font.Face - BigTitle font.Face + Title font.Face + Menu font.Face + Splash font.Face + BigTitle font.Face + MegaTitle font.Face } var ( @@ -69,4 +70,13 @@ func init() { log.Fatal(err) } + SplashFont.MegaTitle, err = opentype.NewFace(tt, &opentype.FaceOptions{ + Size: 70, + DPI: dpi, + Hinting: font.HintingVertical, + }) + if err != nil { + log.Fatal(err) + } + } diff --git a/examples/splashmenu/scenes/bsoft.go b/examples/splashmenu/scenes/bsoft.go index c9550cd..8aa47e3 100644 --- a/examples/splashmenu/scenes/bsoft.go +++ b/examples/splashmenu/scenes/bsoft.go @@ -145,6 +145,8 @@ func (b *Bsoft) Update() error { if b.curtain.IsComplete() { if b.events[groovy.COMPLETED] != nil { b.events[groovy.COMPLETED]() + b.curtain.Clear() + } } b.curtain.Update() @@ -152,6 +154,11 @@ func (b *Bsoft) Update() error { return nil } +func (f *Fader) Clear() { + f.alpha = 0 //reset fader + f.counter = 0 +} + func (b *Bsoft) Draw(screen *ebiten.Image) { b.DrawGlitchLogo(screen) b.DrawGlitchLogoText(screen)