Update import paths in the documents

This commit is contained in:
Hajime Hoshi 2020-10-04 05:07:08 +09:00
parent 8b8179518d
commit e90b5ff277
4 changed files with 16 additions and 24 deletions

View File

@ -39,7 +39,7 @@ You don't have to update existing files' license comments.
// +build example jsgo
```
`example` is to prevent from installing executions by `go get github.com/hajimehoshi/ebiten/...`.
`example` is to prevent from installing executions by `go get github.com/hajimehoshi/ebiten/v2/...`.
`jsgo` is to make the examples work on [jsgo.io](https://jsgo.io/).

View File

@ -1,6 +1,6 @@
# Ebiten
[![PkgGoDev](https://pkg.go.dev/badge/github.com/hajimehoshi/ebiten)](https://pkg.go.dev/github.com/hajimehoshi/ebiten)
[![PkgGoDev](https://pkg.go.dev/badge/github.com/hajimehoshi/ebiten/v2)](https://pkg.go.dev/github.com/hajimehoshi/ebiten)
[![Build Status](https://github.com/hajimehoshi/ebiten/workflows/test/badge.svg)](https://github.com/hajimehoshi/ebiten/actions?query=workflow%3Atest)
[![Build Status](https://travis-ci.org/hajimehoshi/ebiten.svg?branch=master)](https://travis-ci.org/hajimehoshi/ebiten)
[![Go Report Card](https://goreportcard.com/badge/github.com/hajimehoshi/ebiten)](https://goreportcard.com/report/github.com/hajimehoshi/ebiten)
@ -10,7 +10,7 @@
Ebiten is an open source game library for the Go programming language. Ebiten's simple API allows you to quickly and easily develop 2D games that can be deployed across multiple platforms.
* [Website (ebiten.org)](https://ebiten.org)
* [API Reference](https://pkg.go.dev/github.com/hajimehoshi/ebiten)
* [API Reference](https://pkg.go.dev/github.com/hajimehoshi/ebiten/v2)
* [Cheat Sheet](https://ebiten.org/documents/cheatsheet.html)
![Overview](https://ebiten.org/images/overview1.12.png)
@ -39,15 +39,15 @@ For installation on desktops, see [the installation instruction](https://ebiten.
## Packages
* [ebiten](https://pkg.go.dev/github.com/hajimehoshi/ebiten)
* [audio](https://pkg.go.dev/github.com/hajimehoshi/ebiten/audio)
* [mp3](https://pkg.go.dev/github.com/hajimehoshi/ebiten/audio/mp3)
* [vorbis](https://pkg.go.dev/github.com/hajimehoshi/ebiten/audio/vorbis)
* [wav](https://pkg.go.dev/github.com/hajimehoshi/ebiten/audio/wav)
* [ebitenutil](https://pkg.go.dev/github.com/hajimehoshi/ebiten/ebitenutil)
* [inpututil](https://pkg.go.dev/github.com/hajimehoshi/ebiten/inpututil)
* [mobile](https://pkg.go.dev/github.com/hajimehoshi/ebiten/mobile)
* [text](https://pkg.go.dev/github.com/hajimehoshi/ebiten/text)
* [ebiten](https://pkg.go.dev/github.com/hajimehoshi/ebiten/v2)
* [audio](https://pkg.go.dev/github.com/hajimehoshi/ebiten/v2/audio)
* [mp3](https://pkg.go.dev/github.com/hajimehoshi/ebiten/v2/audio/mp3)
* [vorbis](https://pkg.go.dev/github.com/hajimehoshi/ebiten/v2/audio/vorbis)
* [wav](https://pkg.go.dev/github.com/hajimehoshi/ebiten/v2/audio/wav)
* [ebitenutil](https://pkg.go.dev/github.com/hajimehoshi/ebiten/v2/ebitenutil)
* [inpututil](https://pkg.go.dev/github.com/hajimehoshi/ebiten/v2/inpututil)
* [mobile](https://pkg.go.dev/github.com/hajimehoshi/ebiten/v2/mobile)
* [text](https://pkg.go.dev/github.com/hajimehoshi/ebiten/v2/text)
## Community

View File

@ -3,17 +3,9 @@
## Desktops
```sh
go run -tags=example $GOPATH/src/github.com/hajimehoshi/ebiten/examples/rotate/main.go
go run -tags=example github.com/hajimehoshi/ebiten/examples/rotate
```
## Web Browsers
```sh
gopherjs serve --tags=example
```
and access `http://127.0.0.1:8080/github.com/hajimehoshi/ebiten/examples`.
## Android
Install [gomobile](https://pkg.go.dev/golang.org/x/mobile/cmd/gomobile) first.

View File

@ -1,5 +1,5 @@
These packages are copied from Dmitri Shuralyov's mtl packages and edited with Dmitri's permission:
* `github.com/hajimehoshi/ebiten/internal/graphicsdriver/metal/ca` (copied from `dmitri.shuralyov.com/gpu/mtl/example/movingtriangle/internal/ca`)
* `github.com/hajimehoshi/ebiten/internal/graphicsdriver/metal/mtl` (copied from `dmitri.shuralyov.com/gpu/mtl`)
* `github.com/hajimehoshi/ebiten/internal/graphicsdriver/metal/ns` (copied from `dmitri.shuralyov.com/gpu/mtl/example/movingtriangle/internal/ns`)
* `github.com/hajimehoshi/ebiten/v2/internal/graphicsdriver/metal/ca` (copied from `dmitri.shuralyov.com/gpu/mtl/example/movingtriangle/internal/ca`)
* `github.com/hajimehoshi/ebiten/v2/internal/graphicsdriver/metal/mtl` (copied from `dmitri.shuralyov.com/gpu/mtl`)
* `github.com/hajimehoshi/ebiten/v2/internal/graphicsdriver/metal/ns` (copied from `dmitri.shuralyov.com/gpu/mtl/example/movingtriangle/internal/ns`)