mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-24 10:48:53 +01:00
Use GopherJS/GopherWasm
This commit is contained in:
parent
a8c27b4eb1
commit
a9359e4ef8
@ -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.
|
||||||
|
@ -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 {
|
||||||
|
@ -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 {
|
||||||
|
@ -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"
|
||||||
|
@ -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 {
|
||||||
|
@ -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 {
|
||||||
|
@ -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{}
|
||||||
|
@ -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"
|
||||||
)
|
)
|
||||||
|
@ -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"
|
||||||
|
@ -20,7 +20,7 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"sync"
|
"sync"
|
||||||
|
|
||||||
"github.com/hajimehoshi/gopherwasm/js"
|
"github.com/gopherjs/gopherwasm/js"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
Loading…
Reference in New Issue
Block a user