Use GopherJS/GopherWasm

This commit is contained in:
Hajime Hoshi 2018-06-24 16:10:24 +09:00
parent a8c27b4eb1
commit a9359e4ef8
10 changed files with 10 additions and 10 deletions

View File

@ -24,8 +24,8 @@ import (
"math"
"time"
"github.com/gopherjs/gopherwasm/js"
"github.com/hajimehoshi/ebiten/audio"
"github.com/hajimehoshi/gopherwasm/js"
)
// TODO: This just uses decodeAudioData, that can treat audio files other than MP3.

View File

@ -18,7 +18,7 @@ package mp3
import (
gjs "github.com/gopherjs/gopherjs/js"
"github.com/hajimehoshi/gopherwasm/js"
"github.com/gopherjs/gopherwasm/js"
)
func float32ArrayToSlice(arr js.Value) []float32 {

View File

@ -21,7 +21,7 @@ import (
"errors"
"fmt"
"github.com/hajimehoshi/gopherwasm/js"
"github.com/gopherjs/gopherwasm/js"
)
type file struct {

View File

@ -24,7 +24,7 @@ import (
"log"
"math"
"github.com/hajimehoshi/gopherwasm/js"
"github.com/gopherjs/gopherwasm/js"
"github.com/hajimehoshi/ebiten"
"github.com/hajimehoshi/ebiten/ebitenutil"

View File

@ -19,7 +19,7 @@ package clock
import (
"time"
"github.com/hajimehoshi/gopherwasm/js"
"github.com/gopherjs/gopherwasm/js"
)
func now() int64 {

View File

@ -17,7 +17,7 @@
package devicescale
import (
"github.com/hajimehoshi/gopherwasm/js"
"github.com/gopherjs/gopherwasm/js"
)
func impl() float64 {

View File

@ -19,7 +19,7 @@ package input
import (
"unicode"
"github.com/hajimehoshi/gopherwasm/js"
"github.com/gopherjs/gopherwasm/js"
)
type mockRWLock struct{}

View File

@ -20,7 +20,7 @@ import (
"errors"
"fmt"
"github.com/hajimehoshi/gopherwasm/js"
"github.com/gopherjs/gopherwasm/js"
"github.com/hajimehoshi/ebiten/internal/web"
)

View File

@ -20,7 +20,7 @@ import (
"image"
"strconv"
"github.com/hajimehoshi/gopherwasm/js"
"github.com/gopherjs/gopherwasm/js"
"github.com/hajimehoshi/ebiten/internal/devicescale"
"github.com/hajimehoshi/ebiten/internal/hooks"

View File

@ -20,7 +20,7 @@ import (
"strings"
"sync"
"github.com/hajimehoshi/gopherwasm/js"
"github.com/gopherjs/gopherwasm/js"
)
var (