examples: Move resource files
@ -45,7 +45,7 @@ var (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
f, err := os.Open(filepath.Join("..", "..", "_resources", "fonts", "arcade_n.ttf"))
|
f, err := os.Open(filepath.Join("..", "..", "resources", "fonts", "arcade_n.ttf"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatal(err)
|
log.Fatal(err)
|
||||||
}
|
}
|
||||||
|
@ -12,25 +12,25 @@
|
|||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
//go:generate file2byteslice -package=audio -input=../_resources/audio/classic.mp3 -output=./audio/classic.go -var=Classic_mp3
|
//go:generate file2byteslice -package=audio -input=./audio/classic.mp3 -output=./audio/classic.go -var=Classic_mp3
|
||||||
//go:generate file2byteslice -package=audio -input=../_resources/audio/jab.wav -output=./audio/jab.go -var=Jab_wav
|
//go:generate file2byteslice -package=audio -input=./audio/jab.wav -output=./audio/jab.go -var=Jab_wav
|
||||||
//go:generate file2byteslice -package=audio -input=../_resources/audio/jump.ogg -output=./audio/jump.go -var=Jump_ogg
|
//go:generate file2byteslice -package=audio -input=./audio/jump.ogg -output=./audio/jump.go -var=Jump_ogg
|
||||||
//go:generate file2byteslice -package=fonts -input=../_resources/fonts/arcade_n.ttf -output=./fonts/arcaden.go -var=ArcadeN_ttf
|
//go:generate file2byteslice -package=fonts -input=./fonts/arcade_n.ttf -output=./fonts/arcaden.go -var=ArcadeN_ttf
|
||||||
//go:generate file2byteslice -package=fonts -input=../_resources/fonts/mplus-1p-regular.ttf -output=./fonts/mplus1pregular.go -var=MPlus1pRegular_ttf
|
//go:generate file2byteslice -package=fonts -input=./fonts/mplus-1p-regular.ttf -output=./fonts/mplus1pregular.go -var=MPlus1pRegular_ttf
|
||||||
//go:generate file2byteslice -package=images -input=../_resources/images/ebiten.png -output=./images/ebiten.go -var=Ebiten_png
|
//go:generate file2byteslice -package=images -input=./images/ebiten.png -output=./images/ebiten.go -var=Ebiten_png
|
||||||
//go:generate file2byteslice -package=images -input=../_resources/images/fiveyears.jpg -output=./images/fiveyears.go -var=FiveYears_jpg
|
//go:generate file2byteslice -package=images -input=./images/fiveyears.jpg -output=./images/fiveyears.go -var=FiveYears_jpg
|
||||||
//go:generate file2byteslice -package=images -input=../_resources/images/gophers.jpg -output=./images/gophers.go -var=Gophers_jpg
|
//go:generate file2byteslice -package=images -input=./images/gophers.jpg -output=./images/gophers.go -var=Gophers_jpg
|
||||||
//go:generate file2byteslice -package=images -input=../_resources/images/tile.png -output=./images/tile.go -var=Tile_png
|
//go:generate file2byteslice -package=images -input=./images/tile.png -output=./images/tile.go -var=Tile_png
|
||||||
//go:generate file2byteslice -package=images -input=../_resources/images/tiles.png -output=./images/tiles.go -var=Tiles_png
|
//go:generate file2byteslice -package=images -input=./images/tiles.png -output=./images/tiles.go -var=Tiles_png
|
||||||
//go:generate file2byteslice -package=images -input=../_resources/images/ui.png -output=./images/ui.go -var=UI_png
|
//go:generate file2byteslice -package=images -input=./images/ui.png -output=./images/ui.go -var=UI_png
|
||||||
//go:generate file2byteslice -package=blocks -input=../_resources/images/blocks/background.png -output=./images/blocks/background.go -var=Background_png
|
//go:generate file2byteslice -package=blocks -input=./images/blocks/background.png -output=./images/blocks/background.go -var=Background_png
|
||||||
//go:generate file2byteslice -package=blocks -input=../_resources/images/blocks/blocks.png -output=./images/blocks/blocks.go -var=Blocks_png
|
//go:generate file2byteslice -package=blocks -input=./images/blocks/blocks.png -output=./images/blocks/blocks.go -var=Blocks_png
|
||||||
//go:generate file2byteslice -package=flappy -input=../_resources/images/flappy/gopher.png -output=./images/flappy/gopher.go -var=Gopher_png
|
//go:generate file2byteslice -package=flappy -input=./images/flappy/gopher.png -output=./images/flappy/gopher.go -var=Gopher_png
|
||||||
//go:generate file2byteslice -package=flappy -input=../_resources/images/flappy/tiles.png -output=./images/flappy/tiles.go -var=Tiles_png
|
//go:generate file2byteslice -package=flappy -input=./images/flappy/tiles.png -output=./images/flappy/tiles.go -var=Tiles_png
|
||||||
//go:generate file2byteslice -package=platformer -input=../_resources/images/platformer/background.png -output=./images/platformer/background.go -var=Background_png
|
//go:generate file2byteslice -package=platformer -input=./images/platformer/background.png -output=./images/platformer/background.go -var=Background_png
|
||||||
//go:generate file2byteslice -package=platformer -input=../_resources/images/platformer/left.png -output=./images/platformer/left.go -var=Left_png
|
//go:generate file2byteslice -package=platformer -input=./images/platformer/left.png -output=./images/platformer/left.go -var=Left_png
|
||||||
//go:generate file2byteslice -package=platformer -input=../_resources/images/platformer/mainchar.png -output=./images/platformer/mainchar.go -var=MainChar_png
|
//go:generate file2byteslice -package=platformer -input=./images/platformer/mainchar.png -output=./images/platformer/mainchar.go -var=MainChar_png
|
||||||
//go:generate file2byteslice -package=platformer -input=../_resources/images/platformer/right.png -output=./images/platformer/right.go -var=Right_png
|
//go:generate file2byteslice -package=platformer -input=./images/platformer/right.png -output=./images/platformer/right.go -var=Right_png
|
||||||
//go:generate gofmt -s -w .
|
//go:generate gofmt -s -w .
|
||||||
|
|
||||||
package resources
|
package resources
|
||||||
|
Before Width: | Height: | Size: 138 B After Width: | Height: | Size: 138 B |
Before Width: | Height: | Size: 165 B After Width: | Height: | Size: 165 B |
Before Width: | Height: | Size: 3.3 KiB After Width: | Height: | Size: 3.3 KiB |
Before Width: | Height: | Size: 31 KiB After Width: | Height: | Size: 31 KiB |
Before Width: | Height: | Size: 8.8 KiB After Width: | Height: | Size: 8.8 KiB |
Before Width: | Height: | Size: 67 KiB After Width: | Height: | Size: 67 KiB |
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
Before Width: | Height: | Size: 3.6 KiB After Width: | Height: | Size: 3.6 KiB |
Before Width: | Height: | Size: 96 KiB After Width: | Height: | Size: 96 KiB |
Before Width: | Height: | Size: 45 KiB After Width: | Height: | Size: 45 KiB |
Before Width: | Height: | Size: 40 KiB After Width: | Height: | Size: 40 KiB |
Before Width: | Height: | Size: 38 KiB After Width: | Height: | Size: 38 KiB |
Before Width: | Height: | Size: 146 KiB After Width: | Height: | Size: 146 KiB |
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 18 KiB |
Before Width: | Height: | Size: 599 B After Width: | Height: | Size: 599 B |