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
|
||||
|
||||
build/pacman:
|
||||
$(GO) build -o $@ ./pacman
|
||||
$(GO) build -o $@ ./cmd/main
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
package main
|
||||
|
||||
import (
|
||||
"pacman/assets"
|
||||
"pacman/render"
|
||||
"pacman/world"
|
||||
"pacman/engine/render"
|
||||
"pacman/game/assets"
|
||||
"pacman/game/world"
|
||||
|
||||
rl "github.com/gen2brain/raylib-go/raylib"
|
||||
)
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
package render
|
||||
|
||||
import (
|
||||
"pacman/assets"
|
||||
"pacman/game/assets"
|
||||
|
||||
rl "github.com/gen2brain/raylib-go/raylib"
|
||||
)
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
package world
|
||||
|
||||
import (
|
||||
"pacman/assets"
|
||||
"pacman/game/assets"
|
||||
)
|
||||
|
||||
const (
|
||||
Loading…
Add table
Add a link
Reference in a new issue