Skip to content

Commit 3dfeb7c

Browse files
author
duysqubix
committed
updated references to gopxl
1 parent 93f9cd5 commit 3dfeb7c

File tree

61 files changed

+362
-207
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+362
-207
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
## Pixel Examples
1+
## Pixel 2 Examples
22

3-
This repository contains a few examples demonstrating [Pixel](https://github.com/faiface/pixel)'s functionality.
3+
This repository contains a few examples demonstrating [GoPxl's Pixel](https://github.com/gopxl/pixel/v2)'s functionality.
44

55
**To run an example**, navigate to its directory, then `go run` the `main.go` file. For example:
66

community/amidakuji/README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,12 @@
4040
#### Windows
4141

4242
```
43-
$ go get -v github.com/faiface/pixel-examples/community/amidakuji/...
43+
$ go get -v github.com/gopxl/pixel-examples/community/amidakuji/...
4444
$ go get -v -u github.com/go-bindata/go-bindata/...
4545
```
4646

4747
```
48-
$ cd $GOPATH/src/github.com/faiface/pixel-examples/community/amidakuji/
48+
$ cd $GOPATH/src/github.com/gopxl/pixel-examples/community/amidakuji/
4949
$ make
5050
```
5151

@@ -62,12 +62,12 @@ $ sudo apt install libglib2.0-dev libpango1.0-dev libasound2-dev libgdk-pixbuf2.
6262
```
6363

6464
```
65-
$ go get -v github.com/faiface/pixel-examples/community/amidakuji/...
65+
$ go get -v github.com/gopxl/pixel-examples/community/amidakuji/...
6666
$ go get -v -u github.com/go-bindata/go-bindata/...
6767
```
6868

6969
```
70-
$ cd $GOPATH/src/github.com/faiface/pixel-examples/community/amidakuji/
70+
$ cd $GOPATH/src/github.com/gopxl/pixel-examples/community/amidakuji/
7171
$ make
7272
```
7373

@@ -76,8 +76,8 @@ $ make
7676
## External sources
7777

7878
#### Library
79-
- [Pixel](https://github.com/faiface/pixel/tree/7cff3ce3aed80129b7b1dd57e63439426e11b6ee)
80-
- [Beep](https://github.com/faiface/beep/tree/63cc6fbbac46dba1a03e55f0ebc965d6c82ca8e1)
79+
- [Pixel](https://github.com/gopxl/pixel/v2/tree/7cff3ce3aed80129b7b1dd57e63439426e11b6ee)
80+
- [Beep](https://github.com/gopxl/beep/tree/63cc6fbbac46dba1a03e55f0ebc965d6c82ca8e1)
8181
- [GLFW 3.2](https://github.com/go-gl/glfw/tree/513e4f2bf85c31fba0fc4907abd7895242ccbe50/v3.2/glfw)
8282
- [dialog](https://github.com/sqweek/dialog/tree/2f9d9e5dd848a3bad4bdd0210c73bb90c13a3791)
8383

community/amidakuji/game.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@ import (
1515
"time"
1616
"unsafe"
1717

18-
gg "github.com/faiface/pixel-examples/community/amidakuji/glossary"
19-
"github.com/faiface/pixel-examples/community/amidakuji/glossary/jukebox"
18+
gg "github.com/gopxl/pixel-examples/community/amidakuji/glossary"
19+
"github.com/gopxl/pixel-examples/community/amidakuji/glossary/jukebox"
2020
glfw "github.com/go-gl/glfw/v3.2/glfw"
2121

22-
"github.com/faiface/pixel"
23-
"github.com/faiface/pixel/pixelgl"
24-
"github.com/faiface/pixel/text"
22+
"github.com/gopxl/pixel/v2"
23+
"github.com/gopxl/pixel/v2/pixelgl"
24+
"github.com/gopxl/pixel/v2/text"
2525
"github.com/sqweek/dialog"
2626
"golang.org/x/image/colornames"
2727
)

community/amidakuji/glossary/cam.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ package glossary
33
import (
44
"math"
55

6-
"github.com/faiface/pixel"
7-
"github.com/faiface/pixel/imdraw"
6+
"github.com/gopxl/pixel/v2"
7+
"github.com/gopxl/pixel/v2/imdraw"
88
"golang.org/x/image/colornames"
99
)
1010

community/amidakuji/glossary/explosive.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ import (
55
"math/rand"
66
"sync"
77

8-
"github.com/faiface/pixel"
9-
"github.com/faiface/pixel/imdraw"
8+
"github.com/gopxl/pixel/v2"
9+
"github.com/gopxl/pixel/v2/imdraw"
1010
)
1111

1212
// -------------------------------------------------------------------------
1313
// explosive.go
14-
// - Original idea: "github.com/faiface/pixel-examples/community/bouncing"
14+
// - Original idea: "github.com/gopxl/pixel-examples/community/bouncing"
1515

1616
// --------------------------------------------------------------------
1717

community/amidakuji/glossary/fpschk.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ import (
66
"sync"
77
"time"
88

9-
"github.com/faiface/pixel"
10-
"github.com/faiface/pixel/imdraw"
11-
"github.com/faiface/pixel/text"
9+
"github.com/gopxl/pixel/v2"
10+
"github.com/gopxl/pixel/v2/imdraw"
11+
"github.com/gopxl/pixel/v2/text"
1212
"golang.org/x/image/colornames"
1313
)
1414

community/amidakuji/glossary/jukebox/music.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ import (
77
"sync"
88
"time"
99

10-
gg "github.com/faiface/pixel-examples/community/amidakuji/glossary"
10+
gg "github.com/gopxl/pixel-examples/community/amidakuji/glossary"
1111

12-
"github.com/faiface/beep"
13-
"github.com/faiface/beep/speaker"
14-
"github.com/faiface/beep/vorbis"
12+
"github.com/gopxl/beep"
13+
"github.com/gopxl/beep/speaker"
14+
"github.com/gopxl/beep/vorbis"
1515
)
1616

1717
// -------------------------------------------------------------------------

community/amidakuji/glossary/starfield.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ import (
55
"math/rand"
66
"sync"
77

8-
"github.com/faiface/pixel"
9-
"github.com/faiface/pixel/imdraw"
8+
"github.com/gopxl/pixel/v2"
9+
"github.com/gopxl/pixel/v2/imdraw"
1010
)
1111

1212
// -------------------------------------------------------------------------
1313
// Reusable modified starfiled
14-
// - Original: "github.com/faiface/pixel-examples/community/starfield"
14+
// - Original: "github.com/gopxl/pixel-examples/community/starfield"
1515
// - Encapsulated by nanitefactory
1616

1717
// -------------------------------------------------------------------------

community/amidakuji/glossary/util.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ import (
1313
_ "image/gif"
1414
_ "image/png"
1515

16-
"github.com/faiface/pixel"
17-
"github.com/faiface/pixel/text"
16+
"github.com/gopxl/pixel/v2"
17+
"github.com/gopxl/pixel/v2/text"
1818
"github.com/golang/freetype/truetype"
1919
"golang.org/x/image/font"
2020
"golang.org/x/image/font/basicfont"

community/amidakuji/ladder.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ import (
44
"math/rand"
55
"sync"
66

7-
gg "github.com/faiface/pixel-examples/community/amidakuji/glossary"
7+
gg "github.com/gopxl/pixel-examples/community/amidakuji/glossary"
88

9-
"github.com/faiface/pixel"
10-
"github.com/faiface/pixel/imdraw"
9+
"github.com/gopxl/pixel/v2"
10+
"github.com/gopxl/pixel/v2/imdraw"
1111
"golang.org/x/image/colornames"
1212
)
1313

0 commit comments

Comments
 (0)