This repository manages the old website ebiten.org. All the pages redirect to the new sites ebitengine.org.
Edit HTML files under contents
and run:
go run gen.go
go run server.go ./_site
Validate your changes by opening http://127.0.0.1:8000.
https://ebiten.org (the old website to redirect to ebitengine.org)
This repository manages the old website ebiten.org. All the pages redirect to the new sites ebitengine.org.
Edit HTML files under contents
and run:
go run gen.go
go run server.go ./_site
Validate your changes by opening http://127.0.0.1:8000.
Hi there!
This is very trivial, however the code example provided at https://ebiten.org/documents/cheatsheet.html#ebiten.RunGame is outdated as the signature of Update
now takes an argument of type *ebiten.Image
.
Thanks for the great documentation!
Example to compile Go compiler itself: https://github.com/ccbrown/wasm-go-playground
Hm, we will be able to offer the playground part as custom elements.
On page https://ebiten.org/blog/resizable.html
Link in text: "Actually the mobile environments already has the same interface." leads to http://localhost:8000/documents/mobile.html
Some FPS drops were pointed out:
https://dstoiko.github.io/posts/go-pong-wasm/
So I checked the examples on the website and noticed the same frame drops especially when maintaining a key pressed on the keyboard. It’s not a critical issue but needs to be investigated further… Maybe in another post when I get some time to debug!
but hajimehoshi/ebiten#1175 should improve the situation.
https://ebiten.org/documents/webassembly.html
$env:GOOS="js"; $env:GOARCH="wasm"; go build -o yourgame.wasm
Note that Wikipedia's license is CC BY-SA.
https://ebiten.org/tour/geom.html
The link to Matrix in Ebiten should be https://ebiten.org/documents/matrix.html instead of https://ebiten.org/tour/matrix.html, thanks.
https://ebiten.org/documents/webassembly.html
Having followed the steps in the page above to embed my ebiten game into a web page with wasm, I find that the games does not have focus until clicked on. This behavior occurs on both firefox and chromium. Perhaps you could add another step in the directions to make game the focus upon load?
When you're running an app produced on windows when you have 2 different scaling options the game resizes based on what the active window is rather than what desktop it's on.
See video.. All I'm doing is switching window (not ebiten related either). Between display 1 and 2.
It seems it's basing it's internal scaling based on what the active window is. I don't often program using windows api so I can't tell you what the solution is. But some testing with another app shows that: https://docs.microsoft.com/en-us/windows/win32/winmsg/wm-windowposchanged is triggered with SWP_NOSIZE when I move a window between the two. (But not my field.)
https://ebiten.org/install.html
In Option 1: With Go modules
go run -tags=example github.com/hajimehoshi/ebiten/rotate must be
go run -tags=example github.com/hajimehoshi/ebiten/examples/rotate
GitHub pages is slow.
"Go Gopher by Renee French is lincensed under .."
I tried to draw a border. But the left line doesn't want to be drawn:) I think it's a bug.
package main
import (
"github.com/hajimehoshi/ebiten/v2"
"github.com/hajimehoshi/ebiten/v2/ebitenutil"
"image/color"
"log"
)
const screenWidth = 1024
const screenHeight = 768
type Game struct {
}
func (g *Game) Update() error {
return nil
}
func (g *Game) Draw(screen *ebiten.Image) {
leftX := float64(screen.Bounds().Min.X)
rightX := float64(screen.Bounds().Max.X)
topY := float64(screen.Bounds().Min.Y)
bottomY := float64(screen.Bounds().Max.Y)
ebitenutil.DrawLine(screen, leftX, topY, leftX, bottomY, color.White) //Left - is not drawn
ebitenutil.DrawLine(screen, leftX, topY, rightX, topY, color.White) //Top
ebitenutil.DrawLine(screen, rightX, topY, rightX, bottomY, color.White) //Right
ebitenutil.DrawLine(screen, rightX, bottomY, leftX, bottomY, color.White) //Bottom
}
func (g *Game) Layout(outsideWidth, outsideHeight int) (int, int) {
return screenWidth, screenHeight
}
func main() {
ebiten.SetWindowSize(screenWidth, screenHeight)
ebiten.SetWindowTitle("Hello, World!")
if err := ebiten.RunGame(&Game{}); err != nil {
log.Fatal(err)
}
}
https://ebiten.org/helloworld.html
sigunature must be signature
Now, if you double-click, an unexpected area is selected.
display: inline-block
is to blame
Maybe due to too much memory?
From the installation page:
go run -tags=example ./examples/rotate
The command is very long and at start i though there was some problem because nothing happened. Maybe we can add a warning about this, something like "As the first compiling takes a little long time, you may wait a while." or similar.
https://ebiten.org/install.html
Following the instructions didn't work (gcc
missing), but I found this issue suggesting TDM GCC.
After installing TDM GCC (tdm64-gcc-5.1.0-2.exe
), and opening a fresh terminal window, it ran fine.
IPA symbols are not rendered.
A lot of documents were moved to 'documents' now...
https://ebiten.org/documents/install.html
Following the instructions on this page using go1.16 windows/amd64 to install Ebiten doesn't work.
Trying to execute the following command
go run -tags=example github.com/hajimehoshi/ebiten/v2/examples/rotate
Yields the following result:
no required module provides package github.com/hajimehoshi/ebiten/v2/examples/rotate; to add it:
go get github.com/hajimehoshi/ebiten/v2/examples/rotate
Attempting to perform the command as instructed then yields this result:
go get github.com/hajimehoshi/ebiten/v2/examples/rotate
go: downloading github.com/hajimehoshi/ebiten v1.12.9
go: downloading github.com/hajimehoshi/ebiten/v2 v2.0.6
go: downloading golang.org/x/sys v0.0.0-20201009025420-dfb3f7c4e634
go: downloading golang.org/x/mobile v0.0.0-20210208171126-f462b3930c8f
go: downloading github.com/go-gl/glfw/v3.3/glfw v0.0.0-20200707082815-5321531c36a2
go: downloading golang.org/x/exp v0.0.0-20190731235908-ec7cb31e5a56
go: downloading golang.org/x/image v0.0.0-20200927104501-e162460cd6b5
github.com/hajimehoshi/ebiten/v2/examples/rotate: no Go source files
package github.com/hajimehoshi/ebiten/v2/examples/rotate: build constraints exclude all Go files in C:\Users\someo\go\pkg\mod\github.com\hajimehoshi\ebiten\[email protected]\examples\rotate
See the 2nd https://ebiten.org/install.html#Option_2:_Without_Go_modules
%HOME%
is not an official Windows environment variable (you likely meant %USERPROFILE%
).
However, using %GOPATH%
is more foolproof, since not everyone has their Go workspace in their user's home directory (like me). Strangely enough, %GOPATH%
was automatically created after (clean) installing go1.12.3. I just had to need to change its value to point to the right directory after installation.
Oh, and the id
-attributes of the page's h3
aren't unique, which is kinda sad when someone wants to link to a separate section of the page.
https://ebiten.org/documents/1.12.html
Regarding the page above, I understand that rotation can affect the borders between tiles when using SubImage(). However, I am importing PNGs directly to use in tiling, with no spaces around each tile's pixels on each PNG.
Before updating to 1.12, the tiles are flush against one another (I have a simple function set that places them adjacently). After updating, the tiles in my scene appear to have small gaps, making the (black) background visible between them.
I can continue to debug what's going on here, but believe that the back-end updates to 1.12 before they're sent to the GPU are causing this behavior change.
This problem may well be PEBKAC, and I could be misunderstanding some element of vector math etc. However, to reproduce this, all I have to do is change the import from 1.11.x to 1.12.x.
If there is any advice/a particular place for me to look in order to update my code and therefore be able to update the version number, I'd love to hear any and all advice! Thank you very much :)
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.