mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-24 02:38:53 +01:00
Use GopherJS/GopherWasm
This commit is contained in:
parent
a8c27b4eb1
commit
a9359e4ef8
@ -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.
|
||||
|
@ -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 {
|
||||
|
@ -21,7 +21,7 @@ import (
|
||||
"errors"
|
||||
"fmt"
|
||||
|
||||
"github.com/hajimehoshi/gopherwasm/js"
|
||||
"github.com/gopherjs/gopherwasm/js"
|
||||
)
|
||||
|
||||
type file struct {
|
||||
|
@ -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"
|
||||
|
@ -19,7 +19,7 @@ package clock
|
||||
import (
|
||||
"time"
|
||||
|
||||
"github.com/hajimehoshi/gopherwasm/js"
|
||||
"github.com/gopherjs/gopherwasm/js"
|
||||
)
|
||||
|
||||
func now() int64 {
|
||||
|
@ -17,7 +17,7 @@
|
||||
package devicescale
|
||||
|
||||
import (
|
||||
"github.com/hajimehoshi/gopherwasm/js"
|
||||
"github.com/gopherjs/gopherwasm/js"
|
||||
)
|
||||
|
||||
func impl() float64 {
|
||||
|
@ -19,7 +19,7 @@ package input
|
||||
import (
|
||||
"unicode"
|
||||
|
||||
"github.com/hajimehoshi/gopherwasm/js"
|
||||
"github.com/gopherjs/gopherwasm/js"
|
||||
)
|
||||
|
||||
type mockRWLock struct{}
|
||||
|
@ -20,7 +20,7 @@ import (
|
||||
"errors"
|
||||
"fmt"
|
||||
|
||||
"github.com/hajimehoshi/gopherwasm/js"
|
||||
"github.com/gopherjs/gopherwasm/js"
|
||||
|
||||
"github.com/hajimehoshi/ebiten/internal/web"
|
||||
)
|
||||
|
@ -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"
|
||||
|
@ -20,7 +20,7 @@ import (
|
||||
"strings"
|
||||
"sync"
|
||||
|
||||
"github.com/hajimehoshi/gopherwasm/js"
|
||||
"github.com/gopherjs/gopherwasm/js"
|
||||
)
|
||||
|
||||
var (
|
||||
|
Loading…
Reference in New Issue
Block a user