Refactor into cmd, engine and game packages to make the code more clear
This commit is contained in:
parent
ebf8e820f1
commit
dd37379bc5
9 changed files with 6 additions and 6 deletions
2
Makefile
2
Makefile
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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"
|
||||||
)
|
)
|
||||||
|
|
@ -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"
|
||||||
)
|
)
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
package world
|
package world
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"pacman/assets"
|
"pacman/game/assets"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
Loading…
Add table
Add a link
Reference in a new issue