Noah Petherbridge
1a9706c09f
* Rework the Story Mode UI to display level thumbnails. * Responsive UI: defaults to wide screen mode and shows 3 levels horizontally but on narrow/mobile display, shows 2 levels per page in portrait. * Add "Tiny" screenshot size (224x126) to fit the Story Mode UI. * Make the pager buttons bigger and more touchable. * Maximize the game window on startup unless the -w option with a specific window resolution is provided.
30 lines
496 B
Go
30 lines
496 B
Go
//go:build js && wasm
|
|
// +build js,wasm
|
|
|
|
package native
|
|
|
|
import (
|
|
"errors"
|
|
"image"
|
|
|
|
"git.kirsle.net/go/render"
|
|
)
|
|
|
|
func HasTouchscreen(e render.Engine) bool {
|
|
return false
|
|
}
|
|
|
|
func TextToImage(e render.Engine, text render.Text) (image.Image, error) {
|
|
return nil, errors.New("not supported on WASM")
|
|
}
|
|
|
|
func CopyToClipboard(text string) error {
|
|
return errors.New("not supported on WASM")
|
|
}
|
|
|
|
func CountTextures(e render.Engine) string {
|
|
return "n/a"
|
|
}
|
|
|
|
func MaximizeWindow(e render.Engine) {}
|