diff --git a/examples/2048/2048/tile.go b/examples/2048/2048/tile.go index 71b0e420d..0ade83bac 100644 --- a/examples/2048/2048/tile.go +++ b/examples/2048/2048/tile.go @@ -40,7 +40,7 @@ var ( ) func init() { - f, err := ebitenutil.OpenFile("_resources/fonts/mplus-1p-regular.ttf") + f, err := ebitenutil.OpenFile(ebitenutil.JoinStringsIntoFilePath("_resources", "fonts", "mplus-1p-regular.ttf")) if err != nil { log.Fatal(err) }