1
0
Fork 0

Refactor into cmd, engine and game packages to make the code more clear

This commit is contained in:
Henrik Hautakoski 2025-08-13 14:55:59 +02:00
parent ebf8e820f1
commit dd37379bc5
9 changed files with 6 additions and 6 deletions

View file

@ -4,4 +4,4 @@ GO = go
.PHONY: build/pacman .PHONY: build/pacman
build/pacman: build/pacman:
$(GO) build -o $@ ./pacman $(GO) build -o $@ ./cmd/main

View file

@ -1,9 +1,9 @@
package main package main
import ( import (
"pacman/assets" "pacman/engine/render"
"pacman/render" "pacman/game/assets"
"pacman/world" "pacman/game/world"
rl "github.com/gen2brain/raylib-go/raylib" rl "github.com/gen2brain/raylib-go/raylib"
) )

View file

@ -1,7 +1,7 @@
package render package render
import ( import (
"pacman/assets" "pacman/game/assets"
rl "github.com/gen2brain/raylib-go/raylib" rl "github.com/gen2brain/raylib-go/raylib"
) )

View file

@ -1,7 +1,7 @@
package world package world
import ( import (
"pacman/assets" "pacman/game/assets"
) )
const ( const (