ebiten-playground / ebiten-playground.github.io Goto Github PK
View Code? Open in Web Editor NEWEbiten playground
License: Apache License 2.0
Ebiten playground
License: Apache License 2.0
Hello, I am wondering what the process is for generating the Javascript for jsplayground.js / jsplayground.js.map and the pkg directory. Is it just from building the gopherjs playground, or is there another way?
Editor controls belong with editor, not in navbar.
Now the content is too big (> 10K), POST fails, but I've not tested that yet.
Minimized test case:
package main
import (
"github.com/hajimehoshi/ebiten"
)
var ebitenImage *ebiten.Image
func main() {
if 0 > 320-ebitenImage.Bounds().Dx() {
}
}
If you don't have a strong opinion, I'd like to change the indentation from 4 space chars to 2 space chars. (EDIT: I'm talking about *.html and *.js files)
@j7b, what do you think?
It look like this doesn't have any license. What license do you plan to have?
As pkg is too big and its history doesn't have to be managed, I suggest moving pkg directory to another git repository or storage like GCS or AWS.
Actually, go get -u github.com/gopherjs/gopherjs.github.io
that has a similar pkg directory unnecessarily takes very long.
At least, the default script should use Ebiten.
@j7b do you have an idea?
Thank you for inviting!
I was wondering what the .a files in pkg directory are. Is this necessary to compile something?
As GopherJS and its playground is often updated and it'd be hard to follow that, I suggest to manage only the diff part (IIUC they are exposing Go.Compile or other functions as promises) instead of managing a full set of https://github.com/j7b/jsplayground . What do you think?
This is just an idea. UI would not be blocked by compiling.
Only compile if js null or editor dirty.
Now the snippet can use localStorage or Workers, that can be shared in the same origin pages. This can be a security risk, I don't have a strong opinion so far though.
https://gopherjs.github.io/playground/#/YRCwGe-2ZO
In GopherJS playground, panic is shown on the browser
Would like to add assets from ebiten examples and kenney.nl spritesheets like
package images
var Tile *ebiten.Image // from _resources/images/tile.png
package tanks // assets/kenny.nl/tanks
var Image *ebiten.Image
var Map map[string]*image.Rectangle
I think only 12 is enough. If we could remove this, the UI would be simpler.
We need to consider naming rule to specify the location of the snippet.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.