Hajime Hoshi/ebiten: Release v1.8.0
Name: ebiten
Owner: Hajime Hoshi
Release: v1.8.0
Released: 2018-10-18
License: Apache-2.0
Release Assets:
- New features
- WebAssembly Port!
- This is still experimental: Be careful to use this.
- Flappy example
- Chipmunk physics engine example
- Much faster than GopherJS version!
- Polygon support (experimental)
- DrawTriangles function
- Polygons example
- Multi monitors support
- The window starts in the current monitor.
- The fullscreen is done in the current monitor.
- Faster Ogg/Vorbis decoder on browsers
- The decoder is now Wasm and works in a Web Worker.
- TPS (Tick per second)
- Tick is a unit to represent logical time. TPS means how many times the game is updated in a second.
- Automatic mipmap image creation
- More beautiful linear filtering
- WebAssembly Port!
- New APIs
- Polygons
type DrawTrianglesOptions: represents options to render triangles on an image.type Vertex: represents a vertex passed toDrawTriangles.func (i *Image) DrawTriangles(vertices []Vertex, indices []uint16, img *Image, options *DrawTrianglesOptions): draws a triangle with the specified vertices and their indices.
- TPS
func CurrentTPS() float64: eturns the current TPS (ticks per second), that represents how many update function is called in a second.func MaxTPS() int: returns the current maximum TPS.func SetMaxTPS(tps int): sets the maximum TPS (ticks per second), that represents how many updating function is called per second.
- Vsync
func IsVsyncEnabled() bool: returns a boolean value indicating whether the game uses the display's vsync.func SetVsyncEnabled(enabled bool): sets a boolean value indicating whether the game uses the display's vsync.
- Package
audiofunc (c *Context) IsReady() bool: returns a boolean value indicating whether the audio is ready or not.func NewInfiniteLoopWithIntro(src ReadSeekCloser, introLength int64, loopLength int64) *InfiniteLoop: creates a new infinite loop stream with an intro part.
- Package
ebitenutilfunc DebugPrintAt(image *ebiten.Image, str string, x, y int): draws the string str on the image at (x, y) position.
func IsDrawingSkipped: returns true if rendering result is not adopted. Renamed fromIsRunningSlowly.func ScreenSizeInFullscreen() (int, int): returns the size in device-independent pixels when the game is fullscreen.. Renamed fromMonitorSize.func Wheel() (xoff, yoff float64): returns the x and y offset of the mouse wheel or touchpad scroll.func (g *GeoM) Skew(skewX, skewY float64): skews the matrix by (skewX, skewY).
- Polygons
- Deprecated APIs
func IsRunningSlowly() bool: UseIsDrawingSkippedinstead.func MonitorSize() (int, int): UseScreenSizeInFullscreeninstead.
- Bug fix
- Multi monitors issues
- macOS 10.14 Mojave issues