Fixed import paths
This commit is contained in:
parent
8a772c3de1
commit
c1b6305dba
|
@ -1,9 +0,0 @@
|
|||
run:
|
||||
./build_assets.sh
|
||||
go run main.go
|
||||
|
||||
build_mac:
|
||||
./build_mac.sh
|
||||
|
||||
build_assets:
|
||||
./build_assets.sh
|
|
@ -1,7 +1,7 @@
|
|||
# ASharedJourney
|
||||
|
||||
This is a fork of a project originally developed during the SFR game jam along side Pierre, Gabriel, Aurore & Fabio.
|
||||
|
||||
Original repo can be found [here](https://github.com/gandrin/ASharedJourney).
|
||||
This project uses the go [pixel](https://github.com/faiface/pixel) package for sound management and sprites, go check them out.
|
||||
|
||||
|
||||
|
@ -19,27 +19,13 @@ This project uses the go [pixel](https://github.com/faiface/pixel) package for s
|
|||
|
||||
## Building and running
|
||||
|
||||
### Installation
|
||||
|
||||
- First, install the game and its dependencies
|
||||
|
||||
```bash
|
||||
go get -u github.com/gandrin/ASharedJourney
|
||||
```
|
||||
|
||||
- You will also need the `go-bindata` program to build the assets into the binary file
|
||||
- You will need the `go-bindata` program to build the assets into the binary file
|
||||
|
||||
```bash
|
||||
go get -u github.com/jteeuwen/go-bindata/...
|
||||
```
|
||||
|
||||
> Make sure your `$GOPATH` is set :wink:
|
||||
|
||||
### Run
|
||||
|
||||
```
|
||||
make run
|
||||
```
|
||||
> Make sure your `$GOPATH` is set to the root of pixel :wink:
|
||||
|
||||
### Releasing
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@ import (
|
|||
|
||||
"log"
|
||||
|
||||
"github.com/gandrin/ASharedJourney/shared"
|
||||
"github.com/faiface/pixel/examples/community/ASharedJourney/shared"
|
||||
)
|
||||
|
||||
//placeholder
|
||||
|
|
|
@ -6,8 +6,8 @@ import (
|
|||
"log"
|
||||
"time"
|
||||
|
||||
"github.com/gandrin/ASharedJourney/mechanics"
|
||||
"github.com/gandrin/ASharedJourney/shared"
|
||||
"github.com/faiface/pixel/examples/community/ASharedJourneymechanics"
|
||||
"github.com/faiface/pixel/examples/community/ASharedJourney/shared"
|
||||
)
|
||||
|
||||
type Animator struct {
|
||||
|
|
|
@ -3,17 +3,16 @@ package main
|
|||
import (
|
||||
"time"
|
||||
|
||||
"github.com/gandrin/ASharedJourney/supervisor"
|
||||
|
||||
"github.com/faiface/pixel"
|
||||
"github.com/faiface/pixel/pixelgl"
|
||||
"github.com/gandrin/ASharedJourney/tiles"
|
||||
"github.com/faiface/pixel/examples/community/ASharedJourney/tiles"
|
||||
"golang.org/x/image/colornames"
|
||||
|
||||
"github.com/gandrin/ASharedJourney/mechanics"
|
||||
"github.com/gandrin/ASharedJourney/menu"
|
||||
"github.com/gandrin/ASharedJourney/music"
|
||||
"github.com/gandrin/ASharedJourney/shared"
|
||||
"github.com/faiface/pixel/examples/community/ASharedJourney/mechanics"
|
||||
"github.com/faiface/pixel/examples/community/ASharedJourney/music"
|
||||
"github.com/faiface/pixel/examples/community/ASharedJourney/shared"
|
||||
"github.com/faiface/pixel/examples/community/ASharedJourney/menu"
|
||||
"github.com/faiface/pixel/examples/community/ASharedJourney/supervisor"
|
||||
)
|
||||
|
||||
const frameRate = 60
|
||||
|
|
|
@ -6,12 +6,12 @@ import (
|
|||
"log"
|
||||
"time"
|
||||
|
||||
"github.com/gandrin/ASharedJourney/shared"
|
||||
"github.com/gandrin/ASharedJourney/supervisor"
|
||||
"github.com/gandrin/ASharedJourney/tiles"
|
||||
"github.com/gandrin/ASharedJourney/menu"
|
||||
"github.com/faiface/pixel/examples/community/ASharedJourney/shared"
|
||||
"github.com/faiface/pixel/examples/community/ASharedJourney/supervisor"
|
||||
"github.com/faiface/pixel/examples/community/ASharedJourney/tiles"
|
||||
"github.com/faiface/pixel/examples/community/ASharedJourney/menu"
|
||||
"github.com/faiface/pixel"
|
||||
"github.com/gandrin/ASharedJourney/music"
|
||||
"github.com/faiface/pixel/examples/community/ASharedJourney/music"
|
||||
"image/color"
|
||||
)
|
||||
|
||||
|
|
|
@ -4,10 +4,10 @@ import (
|
|||
"reflect"
|
||||
|
||||
"github.com/faiface/pixel"
|
||||
"github.com/gandrin/ASharedJourney/menu"
|
||||
"github.com/gandrin/ASharedJourney/music"
|
||||
"github.com/gandrin/ASharedJourney/supervisor"
|
||||
"github.com/gandrin/ASharedJourney/tiles"
|
||||
"github.com/faiface/pixel/examples/community/ASharedJourney/menu"
|
||||
"github.com/faiface/pixel/examples/community/ASharedJourney/music"
|
||||
"github.com/faiface/pixel/examples/community/ASharedJourney/supervisor"
|
||||
"github.com/faiface/pixel/examples/community/ASharedJourney/tiles"
|
||||
)
|
||||
|
||||
//move function receives as input the data from a player direction channel
|
||||
|
|
|
@ -7,13 +7,13 @@ import (
|
|||
"log"
|
||||
"time"
|
||||
|
||||
"github.com/gandrin/ASharedJourney/assets_manager"
|
||||
"github.com/faiface/pixel/examples/community/ASharedJourney/assets_manager"
|
||||
|
||||
"github.com/faiface/pixel"
|
||||
"github.com/faiface/pixel/pixelgl"
|
||||
"github.com/faiface/pixel/text"
|
||||
"github.com/gandrin/ASharedJourney/music"
|
||||
"github.com/gandrin/ASharedJourney/shared"
|
||||
"github.com/faiface/pixel/examples/community/ASharedJourney/music"
|
||||
"github.com/faiface/pixel/examples/community/ASharedJourney/shared"
|
||||
"golang.org/x/image/colornames"
|
||||
"golang.org/x/image/font/basicfont"
|
||||
)
|
||||
|
|
|
@ -7,7 +7,7 @@ import (
|
|||
"path/filepath"
|
||||
"time"
|
||||
|
||||
"github.com/gandrin/ASharedJourney/assets_manager"
|
||||
"github.com/faiface/pixel/examples/community/ASharedJourney/assets_manager"
|
||||
|
||||
"github.com/faiface/beep"
|
||||
"github.com/faiface/beep/mp3"
|
||||
|
|
|
@ -2,7 +2,7 @@ package supervisor
|
|||
|
||||
import (
|
||||
"github.com/faiface/pixel"
|
||||
"github.com/gandrin/ASharedJourney/tiles"
|
||||
"github.com/faiface/pixel/examples/community/ASharedJourney/tiles"
|
||||
)
|
||||
|
||||
//call motion
|
||||
|
|
|
@ -4,7 +4,7 @@ import (
|
|||
"log"
|
||||
|
||||
"github.com/faiface/pixel/pixelgl"
|
||||
"github.com/gandrin/ASharedJourney/shared"
|
||||
"github.com/faiface/pixel/examples/community/ASharedJourney/shared"
|
||||
)
|
||||
|
||||
type Event string
|
||||
|
|
|
@ -4,7 +4,7 @@ package supervisor
|
|||
import (
|
||||
"time"
|
||||
|
||||
"github.com/gandrin/ASharedJourney/shared"
|
||||
"github.com/faiface/pixel/examples/community/ASharedJourney/shared"
|
||||
)
|
||||
|
||||
type PlayerDirections struct {
|
||||
|
|
|
@ -2,7 +2,7 @@ package supervisor
|
|||
|
||||
import (
|
||||
"github.com/faiface/pixel/pixelgl"
|
||||
"github.com/gandrin/ASharedJourney/shared"
|
||||
"github.com/faiface/pixel/examples/community/ASharedJourney/shared"
|
||||
)
|
||||
|
||||
//transition Direction in x , y coordinates
|
||||
|
|
|
@ -7,11 +7,9 @@ import (
|
|||
"image"
|
||||
"os"
|
||||
|
||||
"github.com/gandrin/ASharedJourney/assets_manager"
|
||||
"github.com/faiface/pixel/examples/community/ASharedJourney/assets_manager"
|
||||
tiled "github.com/lafriks/go-tiled"
|
||||
|
||||
"github.com/gandrin/ASharedJourney/shared"
|
||||
|
||||
_ "image/png"
|
||||
|
||||
"log"
|
||||
|
@ -20,8 +18,9 @@ import (
|
|||
|
||||
"github.com/faiface/pixel"
|
||||
"github.com/faiface/pixel/pixelgl"
|
||||
"github.com/gandrin/ASharedJourney/menu"
|
||||
"github.com/gandrin/ASharedJourney/music"
|
||||
"github.com/faiface/pixel/examples/community/ASharedJourney/menu"
|
||||
"github.com/faiface/pixel/examples/community/ASharedJourney/music"
|
||||
"github.com/faiface/pixel/examples/community/ASharedJourney/shared"
|
||||
)
|
||||
|
||||
// Level names
|
||||
|
|
Loading…
Reference in New Issue