did stuff

This commit is contained in:
David Alasow 2017-12-23 22:25:41 +01:00
parent 2a02224aad
commit 12eccc3fae
1 changed files with 6 additions and 6 deletions

View File

@ -44,12 +44,12 @@ var (
s = character{`Sylvie`, color.RGBA{200, 255, 200, 255}}
d = character{``, color.RGBA{0, 255, 0, 0}}
messages = []dialogue{
{d, `playSong ../../Resources/Hisoku.mp3`},
{d, `playSong ../../resources/Hisoku.mp3`},
{s, `Hi there! How was class?`},
{m, `Good...`},
{d, `I can't bring myself to admit that it all went in one ear and out the other.`},
{d, "I can't bring myself to admit that it all\n went in one ear and out the other."},
{s, `Are you going home now? Wanna walk back with me?`},
{d, `playSong ../../Resources/Departures.mp3`},
{d, `playSong ../../resources/Departures.mp3`},
{m, `Sure!`},
}
mplusNormalFont font.Face
@ -81,7 +81,7 @@ func playSong(path string) {
func init() {
f, err := ebitenutil.OpenFile("../../Resources/mplus-1p-regular.ttf")
f, err := ebitenutil.OpenFile("../../resources/mplus-1p-regular.ttf")
check(err)
defer f.Close()
@ -145,9 +145,9 @@ func update(screen *ebiten.Image) error {
func main() {
var err error
bg, _, err = ebitenutil.NewImageFromFile("../../Resources/bg.jpg", ebiten.FilterNearest)
bg, _, err = ebitenutil.NewImageFromFile("../../resources/bg.jpg", ebiten.FilterNearest)
check(err)
if err := ebiten.Run(update, screenWidth, screenHeight, 1, "Font (Ebiten Demo)"); err != nil {
if err := ebiten.Run(update, screenWidth, screenHeight, 1, "Visual novel (Testing ebiten)"); err != nil {
log.Fatal(err)
}
}