Add new map and tileset files for Windows release
- Created test.tmj and test.tsj files in the maps directory. - Added tileset.tsj with configuration for the MainTileset including image path and dimensions.
This commit is contained in:
11
main.go
11
main.go
@@ -3,11 +3,22 @@ package main
|
||||
import (
|
||||
"log"
|
||||
"mountain/internal/game"
|
||||
"os"
|
||||
|
||||
"github.com/hajimehoshi/ebiten/v2"
|
||||
)
|
||||
|
||||
func main() {
|
||||
// Sätt upp loggning till fil
|
||||
f, err := os.OpenFile("game.log", os.O_RDWR|os.O_CREATE|os.O_APPEND, 0666)
|
||||
if err != nil {
|
||||
log.Fatalf("Kunde inte skapa logfil: %v", err)
|
||||
}
|
||||
defer f.Close()
|
||||
log.SetOutput(f)
|
||||
|
||||
log.Println("--- Spelet startar ---")
|
||||
|
||||
ebiten.SetWindowSize(800, 600)
|
||||
ebiten.SetWindowTitle("Regin: Mountain of Treasures")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user