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" "math"
"time" "time"
"github.com/gopherjs/gopherwasm/js"
"github.com/hajimehoshi/ebiten/audio" "github.com/hajimehoshi/ebiten/audio"
"github.com/hajimehoshi/gopherwasm/js"
) )
// TODO: This just uses decodeAudioData, that can treat audio files other than MP3. // TODO: This just uses decodeAudioData, that can treat audio files other than MP3.

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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