replace Ebiten with Ebitengine in comments

This commit is contained in:
Hajime Hoshi 2022-08-29 11:16:39 +09:00
parent c9de6be572
commit f7c44f086f
77 changed files with 83 additions and 83 deletions

View File

@ -62,7 +62,7 @@ func removeAll(path string) error {
}
func runGo(args ...string) error {
// TODO: Remove this after Ebiten drops the support of Go 1.15 and older.
// TODO: Remove this after Ebitengine drops the support of Go 1.15 and older.
// GO111MODULE is on by default as of Go 1.16.
env := []string{
"GO111MODULE=on",

View File

@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
// ebitenmobile is a wrapper of gomobile for Ebiten.
// ebitenmobile is a wrapper of gomobile for Ebitengine.
//
// For the usage, see https://ebiten.org/documents/mobile.html.
//
@ -220,7 +220,7 @@ func doBind(args []string, flagset *flag.FlagSet, buildOS string) error {
}
if buildOS == "darwin" {
// TODO: Use os.ReadDir after Ebiten stops supporting Go 1.15.
// TODO: Use os.ReadDir after Ebitengine stops supporting Go 1.15.
f, err := os.Open(buildO)
if err != nil {
return err

View File

@ -12,5 +12,5 @@
// See the License for the specific language governing permissions and
// limitations under the License.
// Package ebitenutil provides utility functions for Ebiten.
// Package ebitenutil provides utility functions for Ebitengine.
package ebitenutil

View File

@ -30,7 +30,7 @@ func main() {
log.Fatal(err)
}
ebiten.SetWindowSize(twenty48.ScreenWidth, twenty48.ScreenHeight)
ebiten.SetWindowTitle("2048 (Ebiten Demo)")
ebiten.SetWindowTitle("2048 (Ebitengine Demo)")
if err := ebiten.RunGame(game); err != nil {
log.Fatal(err)
}

View File

@ -81,7 +81,7 @@ func main() {
ebitenImage = ebiten.NewImageFromImage(img)
ebiten.SetWindowSize(screenWidth*2, screenHeight*2)
ebiten.SetWindowTitle("Additive Blending (Ebiten Demo)")
ebiten.SetWindowTitle("Additive Blending (Ebitengine Demo)")
if err := ebiten.RunGame(&Game{}); err != nil {
log.Fatal(err)
}

View File

@ -120,7 +120,7 @@ func (g *Game) Layout(outsideWidth, outsideHeight int) (int, int) {
func main() {
ebiten.SetWindowSize(screenWidth, screenHeight)
ebiten.SetWindowTitle("Sampler Address (Ebiten Demo)")
ebiten.SetWindowTitle("Sampler Address (Ebitengine Demo)")
if err := ebiten.RunGame(&Game{}); err != nil {
log.Fatal(err)
}

View File

@ -280,7 +280,7 @@ func (g *Game) Layout(outsideWidth, outsideHeight int) (int, int) {
func main() {
ebiten.SetWindowSize(screenWidth, screenHeight)
ebiten.SetWindowTitle("Air Ship (Ebiten Demo)")
ebiten.SetWindowTitle("Air Ship (Ebitengine Demo)")
if err := ebiten.RunGame(NewGame()); err != nil {
log.Fatal(err)
}

View File

@ -90,7 +90,7 @@ func main() {
ebitenImage = ebiten.NewImageFromImage(img)
ebiten.SetWindowSize(screenWidth*2, screenHeight*2)
ebiten.SetWindowTitle("Alpha Blending (Ebiten Demo)")
ebiten.SetWindowTitle("Alpha Blending (Ebitengine Demo)")
if err := ebiten.RunGame(&Game{}); err != nil {
log.Fatal(err)
}

View File

@ -76,7 +76,7 @@ func main() {
runnerImage = ebiten.NewImageFromImage(img)
ebiten.SetWindowSize(screenWidth*2, screenHeight*2)
ebiten.SetWindowTitle("Animation (Ebiten Demo)")
ebiten.SetWindowTitle("Animation (Ebitengine Demo)")
if err := ebiten.RunGame(&Game{}); err != nil {
log.Fatal(err)
}

View File

@ -453,7 +453,7 @@ func (g *Game) Layout(outsideWidth, outsideHeight int) (int, int) {
func main() {
ebiten.SetWindowSize(screenWidth, screenHeight)
ebiten.SetWindowTitle("Audio (Ebiten Demo)")
ebiten.SetWindowTitle("Audio (Ebitengine Demo)")
g, err := NewGame()
if err != nil {
log.Fatal(err)

View File

@ -96,7 +96,7 @@ func (g *Game) Layout(outsideWidth, outsideHeight int) (int, int) {
func main() {
ebiten.SetWindowSize(screenWidth, screenHeight)
ebiten.SetWindowTitle("Audio Infinite Loop (Ebiten Demo)")
ebiten.SetWindowTitle("Audio Infinite Loop (Ebitengine Demo)")
if err := ebiten.RunGame(&Game{}); err != nil {
log.Fatal(err)
}

View File

@ -133,7 +133,7 @@ func main() {
ebitenImage = ebiten.NewImageFromImage(img)
ebiten.SetWindowSize(screenWidth, screenHeight)
ebiten.SetWindowTitle("Audio Panning Loop (Ebiten Demo)")
ebiten.SetWindowTitle("Audio Panning Loop (Ebitengine Demo)")
g := &Game{}
if err := ebiten.RunGame(g); err != nil {
log.Fatal(err)

View File

@ -43,7 +43,7 @@ func main() {
}
ebiten.SetWindowSize(blocks.ScreenWidth*2, blocks.ScreenHeight*2)
ebiten.SetWindowTitle("Blocks (Ebiten Demo)")
ebiten.SetWindowTitle("Blocks (Ebitengine Demo)")
if err := ebiten.RunGame(&blocks.Game{}); err != nil {
log.Fatal(err)
}

View File

@ -64,7 +64,7 @@ func (g *Game) Draw(screen *ebiten.Image) {
op.GeoM.Translate(float64(i), 244+float64(j))
// This is a blur based on the CompositerModeSourceOver composition mode,
// which is basically (GL_ONE, GL_ONE_MINUS_SRC_ALPHA). ColorM acts
// on unpremultiplied colors, but all Ebiten internal colors are
// on unpremultiplied colors, but all Ebitengine internal colors are
// premultiplied, meaning this mode is regular alpha blending,
// computing each destination pixel as srcPix * alpha + dstPix * (1 - alpha).
//
@ -103,7 +103,7 @@ func main() {
gophersImage = ebiten.NewImageFromImage(img)
ebiten.SetWindowSize(screenWidth, screenHeight)
ebiten.SetWindowTitle("Blur (Ebiten Demo)")
ebiten.SetWindowTitle("Blur (Ebitengine Demo)")
if err := ebiten.RunGame(&Game{}); err != nil {
log.Fatal(err)
}

View File

@ -260,7 +260,7 @@ func main() {
g.world = ebiten.NewImage(worldWidth, worldHeight)
ebiten.SetWindowSize(screenWidth, screenHeight)
ebiten.SetWindowTitle("Tiles (Ebiten Demo)")
ebiten.SetWindowTitle("Tiles (Ebitengine Demo)")
if err := ebiten.RunGame(g); err != nil {
log.Fatal(err)
}

View File

@ -84,7 +84,7 @@ func main() {
gophersImage = ebiten.NewImageFromImage(img)
ebiten.SetWindowSize(screenWidth, screenHeight)
ebiten.SetWindowTitle("Clip (Ebiten Demo)")
ebiten.SetWindowTitle("Clip (Ebitengine Demo)")
if err := ebiten.RunGame(&Game{}); err != nil {
log.Fatal(err)
}

View File

@ -106,7 +106,7 @@ func main() {
}
ebiten.SetWindowSize(screenWidth, screenHeight)
ebiten.SetWindowTitle("Context Lost (Ebiten Demo)")
ebiten.SetWindowTitle("Context Lost (Ebitengine Demo)")
if err := ebiten.RunGame(&Game{}); err != nil {
log.Fatal(err)
}

View File

@ -96,7 +96,7 @@ func main() {
}
ebiten.SetWindowSize(screenWidth, screenHeight)
ebiten.SetWindowTitle("Cursor (Ebiten Demo)")
ebiten.SetWindowTitle("Cursor (Ebitengine Demo)")
if err := ebiten.RunGame(g); err != nil {
log.Fatal(err)
}

View File

@ -145,7 +145,7 @@ func main() {
rand.Seed(time.Now().UnixNano())
ebiten.SetWindowSize(screenWidth*6, screenHeight*6)
ebiten.SetWindowTitle("Doom Fire (Ebiten Demo)")
ebiten.SetWindowTitle("Doom Fire (Ebitengine Demo)")
if err := ebiten.RunGame(NewGame()); err != nil {
log.Fatal(err)
}

View File

@ -315,7 +315,7 @@ func (g *Game) Layout(outsideWidth, outsideHeight int) (int, int) {
func main() {
ebiten.SetWindowSize(screenWidth, screenHeight)
ebiten.SetWindowTitle("Drag & Drop (Ebiten Demo)")
ebiten.SetWindowTitle("Drag & Drop (Ebitengine Demo)")
if err := ebiten.RunGame(NewGame()); err != nil {
log.Fatal(err)
}

View File

@ -78,7 +78,7 @@ func main() {
ebitenImage = ebiten.NewImageFromImage(img)
ebiten.SetWindowSize(screenWidth, screenHeight)
ebiten.SetWindowTitle("Filter (Ebiten Demo)")
ebiten.SetWindowTitle("Filter (Ebitengine Demo)")
if err := ebiten.RunGame(&Game{}); err != nil {
log.Fatal(err)
}

View File

@ -437,7 +437,7 @@ func (g *Game) drawGopher(screen *ebiten.Image) {
func main() {
ebiten.SetWindowSize(screenWidth, screenHeight)
ebiten.SetWindowTitle("Flappy Gopher (Ebiten Demo)")
ebiten.SetWindowTitle("Flappy Gopher (Ebitengine Demo)")
if err := ebiten.RunGame(NewGame()); err != nil {
panic(err)
}

View File

@ -102,7 +102,7 @@ func main() {
ebitenImage = ebiten.NewImageFromImage(img)
ebiten.SetWindowSize(screenWidth*2, screenHeight*2)
ebiten.SetWindowTitle("Flood fill with solid colors (Ebiten Demo)")
ebiten.SetWindowTitle("Flood fill with solid colors (Ebitengine Demo)")
if err := ebiten.RunGame(&Game{}); err != nil {
log.Fatal(err)
}

View File

@ -167,7 +167,7 @@ func (g *Game) Layout(outsideWidth, outsideHeight int) (int, int) {
func main() {
ebiten.SetWindowSize(screenWidth, screenHeight)
ebiten.SetWindowTitle("Font (Ebiten Demo)")
ebiten.SetWindowTitle("Font (Ebitengine Demo)")
if err := ebiten.RunGame(&Game{}); err != nil {
log.Fatal(err)
}

View File

@ -127,7 +127,7 @@ func main() {
initFont()
ebiten.SetFullscreen(true)
ebiten.SetWindowTitle("Fullscreen (Ebiten Demo)")
ebiten.SetWindowTitle("Fullscreen (Ebitengine Demo)")
if err := ebiten.RunGame(&Game{}); err != nil {
log.Fatal(err)
}

View File

@ -211,7 +211,7 @@ func (g *Game) Layout(outsideWidth, outsideHeight int) (int, int) {
func main() {
ebiten.SetWindowSize(screenWidth, screenHeight)
ebiten.SetWindowTitle("Gamepad (Ebiten Demo)")
ebiten.SetWindowTitle("Gamepad (Ebitengine Demo)")
if err := ebiten.RunGame(&Game{}); err != nil {
log.Fatal(err)
}

View File

@ -108,7 +108,7 @@ func (g *Game) Layout(outsideWidth, outsideHeight int) (int, int) {
func main() {
ebiten.SetWindowSize(640, 480)
ebiten.SetWindowTitle("High DPI (Ebiten Demo)")
ebiten.SetWindowTitle("High DPI (Ebitengine Demo)")
if err := ebiten.RunGame(NewGame()); err != nil {
log.Fatal(err)
}

View File

@ -150,7 +150,7 @@ func main() {
gophersImage = ebiten.NewImageFromImage(img)
ebiten.SetWindowSize(screenWidth, screenHeight)
ebiten.SetWindowTitle("HSV (Ebiten Demo)")
ebiten.SetWindowTitle("HSV (Ebitengine Demo)")
if err := ebiten.RunGame(NewGame()); err != nil {
log.Fatal(err)
}

View File

@ -76,7 +76,7 @@ func main() {
gophersImage = ebiten.NewImageFromImage(img)
ebiten.SetWindowSize(screenWidth, screenHeight)
ebiten.SetWindowTitle("Hue (Ebiten Demo)")
ebiten.SetWindowTitle("Hue (Ebitengine Demo)")
if err := ebiten.RunGame(&Game{}); err != nil {
log.Fatal(err)
}

View File

@ -104,7 +104,7 @@ func (g *Game) Layout(outsideWidth, outsideHeight int) (int, int) {
func main() {
ebiten.SetWindowSize(screenWidth*2, screenHeight*2)
ebiten.SetWindowTitle("Infinite Scroll (Ebiten Demo)")
ebiten.SetWindowTitle("Infinite Scroll (Ebitengine Demo)")
if err := ebiten.RunGame(&Game{}); err != nil {
log.Fatal(err)
}

View File

@ -24,7 +24,7 @@ import (
)
func main() {
ebiten.SetWindowTitle("Isometric (Ebiten Demo)")
ebiten.SetWindowTitle("Isometric (Ebitengine Demo)")
ebiten.SetWindowSize(640, 480)
ebiten.SetWindowResizable(true)

View File

@ -94,7 +94,7 @@ func (g *Game) Layout(outsideWidth, outsideHeight int) (int, int) {
func main() {
ebiten.SetWindowSize(screenWidth*2, screenHeight*2)
ebiten.SetWindowTitle("Keyboard (Ebiten Demo)")
ebiten.SetWindowTitle("Keyboard (Ebitengine Demo)")
if err := ebiten.RunGame(&Game{}); err != nil {
log.Fatal(err)
}

View File

@ -80,7 +80,7 @@ func (g *Game) Layout(outsideWidth, outsideHeight int) (int, int) {
func main() {
ebiten.SetWindowSize(screenWidth, screenHeight)
ebiten.SetWindowTitle("Last Touch Positions (Ebiten Demo)")
ebiten.SetWindowTitle("Last Touch Positions (Ebitengine Demo)")
if err := ebiten.RunGame(&Game{}); err != nil {
log.Fatal(err)
}

View File

@ -184,7 +184,7 @@ func main() {
}
ebiten.SetWindowSize(screenWidth*2, screenHeight*2)
ebiten.SetWindowTitle("Game of Life (Ebiten Demo)")
ebiten.SetWindowTitle("Game of Life (Ebitengine Demo)")
if err := ebiten.RunGame(g); err != nil {
log.Fatal(err)
}

View File

@ -102,7 +102,7 @@ func (g *Game) Layout(outsideWidth, outsideHeight int) (int, int) {
func main() {
ebiten.SetWindowSize(screenWidth, screenHeight)
ebiten.SetWindowTitle("Mandelbrot (Ebiten Demo)")
ebiten.SetWindowTitle("Mandelbrot (Ebitengine Demo)")
if err := ebiten.RunGame(NewGame()); err != nil {
log.Fatal(err)
}

View File

@ -167,7 +167,7 @@ func min(a, b int) int {
func main() {
ebiten.SetWindowSize(screenWidth*2, screenHeight*2)
ebiten.SetWindowTitle("Masking (Ebiten Demo)")
ebiten.SetWindowTitle("Masking (Ebitengine Demo)")
if err := ebiten.RunGame(&Game{}); err != nil {
log.Fatal(err)
}

View File

@ -111,7 +111,7 @@ func main() {
gophersImage = ebiten.NewImageFromImage(img)
ebiten.SetWindowSize(screenWidth, screenHeight)
ebiten.SetWindowTitle("Minify (Ebiten Demo)")
ebiten.SetWindowTitle("Minify (Ebitengine Demo)")
if err := ebiten.RunGame(&Game{}); err != nil {
log.Fatal(err)
}

View File

@ -15,7 +15,7 @@
//go:build example
// +build example
// This example is just to check if Ebiten can draw fine checker pattern evenly.
// This example is just to check if Ebitengine can draw fine checker pattern evenly.
// If there is something wrong in the implementation, the result might include
// uneven patterns (#459).
package main
@ -101,7 +101,7 @@ func main() {
scale: initScreenScale,
}
ebiten.SetWindowSize(screenWidth*initScreenScale, screenHeight*initScreenScale)
ebiten.SetWindowTitle("Moire (Ebiten Demo)")
ebiten.SetWindowTitle("Moire (Ebitengine Demo)")
ebiten.SetWindowResizable(true)
if err := ebiten.RunGame(g); err != nil {
log.Fatal(err)

View File

@ -81,7 +81,7 @@ func main() {
gophersRenderTarget: ebiten.NewImage(w/mosaicRatio, h/mosaicRatio),
}
ebiten.SetWindowSize(screenWidth*2, screenHeight*2)
ebiten.SetWindowTitle("Mosaic (Ebiten Demo)")
ebiten.SetWindowTitle("Mosaic (Ebitengine Demo)")
if err := ebiten.RunGame(g); err != nil {
log.Fatal(err)
}

View File

@ -74,7 +74,7 @@ func (g *Game) Layout(outsideWidth, outsideHeight int) (int, int) {
func main() {
ebiten.SetWindowSize(screenWidth*2, screenHeight*2)
ebiten.SetWindowTitle("Noise (Ebiten Demo)")
ebiten.SetWindowTitle("Noise (Ebitengine Demo)")
g := &Game{
noiseImage: image.NewRGBA(image.Rect(0, 0, screenWidth, screenHeight)),
}

View File

@ -144,7 +144,7 @@ func (g *Game) Layout(outsideWidth, outsideHeight int) (int, int) {
func main() {
ebiten.SetWindowSize(screenWidth, screenHeight)
ebiten.SetWindowTitle("Paint (Ebiten Demo)")
ebiten.SetWindowTitle("Paint (Ebitengine Demo)")
if err := ebiten.RunGame(NewGame()); err != nil {
log.Fatal(err)
}

View File

@ -173,7 +173,7 @@ func (g *Game) Layout(outsideWidth, outsideHeight int) (int, int) {
func main() {
ebiten.SetWindowSize(screenWidth, screenHeight)
ebiten.SetWindowTitle("Particles (Ebiten demo)")
ebiten.SetWindowTitle("Particles (Ebitengine Demo)")
if err := ebiten.RunGame(&Game{}); err != nil {
log.Fatal(err)
}

View File

@ -166,7 +166,7 @@ func (g *Game) Layout(outsideWidth, outsideHeight int) (int, int) {
func main() {
ebiten.SetWindowSize(screenWidth, screenHeight)
ebiten.SetWindowTitle("PCM (Ebiten Demo)")
ebiten.SetWindowTitle("PCM (Ebitengine Demo)")
if err := ebiten.RunGame(NewGame()); err != nil {
log.Fatal(err)
}

View File

@ -81,7 +81,7 @@ func main() {
gophersImage = ebiten.NewImageFromImage(img)
ebiten.SetWindowSize(screenWidth, screenHeight)
ebiten.SetWindowTitle("Perspective (Ebiten Demo)")
ebiten.SetWindowTitle("Perspective (Ebitengine Demo)")
if err := ebiten.RunGame(&Game{}); err != nil {
log.Fatal(err)
}

View File

@ -238,7 +238,7 @@ func (g *Game) Layout(outsideWidth, outsideHeight int) (int, int) {
func main() {
ebiten.SetWindowSize(screenWidth*2, screenHeight*2)
ebiten.SetWindowTitle("Piano (Ebiten Demo)")
ebiten.SetWindowTitle("Piano (Ebitengine Demo)")
if err := ebiten.RunGame(NewGame()); err != nil {
log.Fatal(err)
}

View File

@ -163,7 +163,7 @@ func (g *Game) Layout(outsideWidth, outsideHeight int) (int, int) {
func main() {
ebiten.SetWindowSize(screenWidth, screenHeight)
ebiten.SetWindowTitle("Platformer (Ebiten Demo)")
ebiten.SetWindowTitle("Platformer (Ebitengine Demo)")
if err := ebiten.RunGame(&Game{}); err != nil {
panic(err)
}

View File

@ -140,7 +140,7 @@ func (g *Game) Layout(outsideWidth, outsideHeight int) (int, int) {
func main() {
ebiten.SetWindowSize(screenWidth, screenHeight)
ebiten.SetWindowTitle("Polygons (Ebiten Demo)")
ebiten.SetWindowTitle("Polygons (Ebitengine Demo)")
if err := ebiten.RunGame(&Game{ngon: 10}); err != nil {
log.Fatal(err)
}

View File

@ -313,7 +313,7 @@ func main() {
g.objects = append(g.objects, object{rect(150, 50, 30, 60)})
ebiten.SetWindowSize(screenWidth*2, screenHeight*2)
ebiten.SetWindowTitle("Ray casting and shadows (Ebiten demo)")
ebiten.SetWindowTitle("Ray casting and shadows (Ebitengine Demo)")
if err := ebiten.RunGame(g); err != nil {
log.Fatal(err)
}

View File

@ -135,7 +135,7 @@ func (g *Game) Update() error {
g.player.Play()
// Adjust the buffer size to reflect the audio source changes in real time.
// Note that Ebiten doesn't guarantee the audio quality when the buffer size is modified.
// Note that Ebitengine doesn't guarantee the audio quality when the buffer size is modified.
// 1/20[s] should work in most cases, but this might cause glitches in some environments.
g.player.SetBufferSize(time.Second / 20)
}
@ -153,7 +153,7 @@ func (g *Game) Layout(outsideWidth, outsideHeight int) (int, int) {
func main() {
ebiten.SetWindowSize(screenWidth, screenHeight)
ebiten.SetWindowTitle("Real Time PCM (Ebiten Demo)")
ebiten.SetWindowTitle("Real Time PCM (Ebitengine Demo)")
if err := ebiten.RunGame(NewGame()); err != nil {
log.Fatal(err)
}

View File

@ -81,7 +81,7 @@ func main() {
gophersImage = ebiten.NewImageFromImage(img)
ebiten.SetWindowSize(screenWidth, screenHeight)
ebiten.SetWindowTitle("Rotate (Ebiten Demo)")
ebiten.SetWindowTitle("Rotate (Ebitengine Demo)")
if err := ebiten.RunGame(&Game{}); err != nil {
log.Fatal(err)
}

View File

@ -72,7 +72,7 @@ func (g *Game) Layout(outsideWidth, outsideHeight int) (int, int) {
func main() {
ebiten.SetWindowSize(screenWidth*2, screenHeight*2)
ebiten.SetWindowTitle("Set (Ebiten Demo)")
ebiten.SetWindowTitle("Set (Ebitengine Demo)")
if err := ebiten.RunGame(NewGame()); err != nil {
log.Fatal(err)
}

View File

@ -149,7 +149,7 @@ func (g *Game) Layout(outsideWidth, outsideHeight int) (int, int) {
func main() {
ebiten.SetWindowSize(screenWidth, screenHeight)
ebiten.SetWindowTitle("Shader (Ebiten Demo)")
ebiten.SetWindowTitle("Shader (Ebitengine Demo)")
if err := ebiten.RunGame(&Game{}); err != nil {
log.Fatal(err)
}

View File

@ -187,7 +187,7 @@ func (g *Game) Layout(outsideWidth, outsideHeight int) (int, int) {
func main() {
ebiten.SetWindowSize(screenWidth, screenHeight)
ebiten.SetWindowTitle("Shapes (Ebiten Demo)")
ebiten.SetWindowTitle("Shapes (Ebitengine Demo)")
if err := ebiten.RunGame(&Game{}); err != nil {
log.Fatal(err)
}

View File

@ -117,7 +117,7 @@ func (g *Game) Layout(outsideWidth, outsideHeight int) (int, int) {
func main() {
ebiten.SetWindowSize(screenWidth, screenHeight)
ebiten.SetWindowTitle("Sine Wave (Ebiten Demo)")
ebiten.SetWindowTitle("Sine Wave (Ebitengine Demo)")
if err := ebiten.RunGame(&Game{}); err != nil {
log.Fatal(err)
}

View File

@ -202,7 +202,7 @@ func newGame() *Game {
func main() {
ebiten.SetWindowSize(screenWidth, screenHeight)
ebiten.SetWindowTitle("Snake (Ebiten Demo)")
ebiten.SetWindowTitle("Snake (Ebitengine Demo)")
if err := ebiten.RunGame(newGame()); err != nil {
log.Fatal(err)
}

View File

@ -216,7 +216,7 @@ func (g *Game) Layout(outsideWidth, outsideHeight int) (int, int) {
func main() {
ebiten.SetWindowSize(screenWidth*2, screenHeight*2)
ebiten.SetWindowTitle("Sprites (Ebiten Demo)")
ebiten.SetWindowTitle("Sprites (Ebitengine Demo)")
ebiten.SetWindowResizable(true)
if err := ebiten.RunGame(&Game{}); err != nil {
log.Fatal(err)

View File

@ -198,7 +198,7 @@ func (g *Game) Layout(outsideWidth, outsideHeight int) (int, int) {
func main() {
ebiten.SetFullscreen(true)
ebiten.SetWindowTitle("Sprites HD (Ebiten Demo)")
ebiten.SetWindowTitle("Sprites HD (Ebitengine Demo)")
if err := ebiten.RunGame(&Game{}); err != nil {
log.Fatal(err)
}

View File

@ -353,7 +353,7 @@ func (g *Game) Layout(outsideWidth, outsideHeight int) (int, int) {
func main() {
ebiten.SetTPS(250)
ebiten.SetWindowSize(width*scale, height*scale)
ebiten.SetWindowTitle("Squirals (Ebiten Demo)")
ebiten.SetWindowTitle("Squirals (Ebitengine Demo)")
if err := ebiten.RunGame(NewGame()); err != nil {
log.Fatal(err)
}

View File

@ -101,7 +101,7 @@ func (g *Game) Layout(outsideWidth, outsideHeight int) (int, int) {
func main() {
rand.Seed(time.Now().UnixNano())
ebiten.SetWindowSize(screenWidth, screenHeight)
ebiten.SetWindowTitle("Stars (Ebiten Demo)")
ebiten.SetWindowTitle("Stars (Ebitengine Demo)")
if err := ebiten.RunGame(NewGame()); err != nil {
log.Fatal(err)
}

View File

@ -155,7 +155,7 @@ func (g *Game) Layout(outsideWidth, outsideHeight int) (int, int) {
func main() {
ebiten.SetWindowSize(screenWidth, screenHeight)
ebiten.SetWindowTitle("Text (Ebiten Demo)")
ebiten.SetWindowTitle("Text (Ebitengine Demo)")
if err := ebiten.RunGame(&Game{}); err != nil {
log.Fatal(err)
}

View File

@ -134,7 +134,7 @@ func main() {
}
ebiten.SetWindowSize(screenWidth*2, screenHeight*2)
ebiten.SetWindowTitle("Tiles (Ebiten Demo)")
ebiten.SetWindowTitle("Tiles (Ebitengine Demo)")
if err := ebiten.RunGame(g); err != nil {
log.Fatal(err)
}

View File

@ -248,7 +248,7 @@ func main() {
}
ebiten.SetWindowSize(screenWidth, screenHeight)
ebiten.SetWindowTitle("Touch (Ebiten Demo)")
ebiten.SetWindowTitle("Touch (Ebitengine Demo)")
if err := ebiten.RunGame(g); err != nil {
log.Fatal(err)
}

View File

@ -102,7 +102,7 @@ func main() {
}
ebiten.SetWindowSize(screenWidth, screenHeight)
ebiten.SetWindowTitle("TypeWriter (Ebiten Demo)")
ebiten.SetWindowTitle("TypeWriter (Ebitengine Demo)")
if err := ebiten.RunGame(g); err != nil {
log.Fatal(err)
}

View File

@ -508,7 +508,7 @@ func (g *Game) Layout(outsideWidth, outsideHeight int) (int, int) {
func main() {
ebiten.SetWindowSize(screenWidth, screenHeight)
ebiten.SetWindowTitle("UI (Ebiten Demo)")
ebiten.SetWindowTitle("UI (Ebitengine Demo)")
if err := ebiten.RunGame(NewGame()); err != nil {
log.Fatal(err)
}

View File

@ -264,7 +264,7 @@ func main() {
g := &Game{counter: 0}
ebiten.SetWindowSize(screenWidth, screenHeight)
ebiten.SetWindowTitle("Vector (Ebiten Demo)")
ebiten.SetWindowTitle("Vector (Ebitengine Demo)")
if err := ebiten.RunGame(g); err != nil {
log.Fatal(err)
}

View File

@ -82,7 +82,7 @@ func (g *Game) Layout(outsideWidth, outsideHeight int) (int, int) {
}
func main() {
ebiten.SetWindowTitle("Vibrate (Ebiten Demo)")
ebiten.SetWindowTitle("Vibrate (Ebitengine Demo)")
if err := ebiten.RunGame(&Game{}); err != nil {
log.Fatal(err)
}

View File

@ -104,7 +104,7 @@ func main() {
log.Fatal(err)
}
ebiten.SetWindowSize(screenWidth, screenHeight)
ebiten.SetWindowTitle("WAV (Ebiten Demo)")
ebiten.SetWindowTitle("WAV (Ebitengine Demo)")
if err := ebiten.RunGame(g); err != nil {
log.Fatal(err)
}

View File

@ -67,7 +67,7 @@ func main() {
g := &Game{x: 0.0, y: 0.0}
ebiten.SetWindowSize(screenWidth, screenHeight)
ebiten.SetWindowTitle("Wheel (Ebiten Demo)")
ebiten.SetWindowTitle("Wheel (Ebitengine Demo)")
if err := ebiten.RunGame(g); err != nil {
log.Fatal(err)
}

View File

@ -58,7 +58,7 @@ func (g *Game) Layout(outsideWidth, outsideHeight int) (int, int) {
func main() {
ebiten.SetWindowClosingHandled(true)
ebiten.SetWindowTitle("Window Closing (Ebiten Demo)")
ebiten.SetWindowTitle("Window Closing (Ebitengine Demo)")
if err := ebiten.RunGame(&Game{}); err != nil {
log.Fatal(err)
}

View File

@ -450,7 +450,7 @@ func main() {
ebiten.SetWindowResizingMode(ebiten.WindowResizingModeEnabled)
}
const title = "Window Size (Ebiten Demo)"
const title = "Window Size (Ebitengine Demo)"
ww := int(float64(g.width) * initScreenScale)
wh := int(float64(g.height) * initScreenScale)
ebiten.SetWindowSize(ww, wh)

View File

@ -333,7 +333,7 @@ func IsStandardGamepadButtonAvailable(id GamepadID, button StandardGamepadButton
//
// One or more input definitions can be provided separated by newlines.
// In particular, it is valid to pass an entire gamecontrollerdb.txt file.
// Note though that Ebiten already includes its own copy of this file,
// Note though that Ebitengine already includes its own copy of this file,
// so this call should only be necessary to add mappings for hardware not supported yet;
// ideally games using the StandardGamepad* functions should allow the user to provide mappings and
// then call this function if provided.
@ -349,7 +349,7 @@ func IsStandardGamepadButtonAvailable(id GamepadID, button StandardGamepadButton
// "iOS": GOOS=ios
// "": Any GOOS
//
// On platforms where gamepad mappings are not managed by Ebiten, this always returns false and nil.
// On platforms where gamepad mappings are not managed by Ebitengine, this always returns false and nil.
//
// UpdateStandardGamepadLayoutMappings is concurrent-safe.
//

View File

@ -22,7 +22,7 @@ const (
ShaderImageCount = 4
// PreservedUniformVariablesCount represents the number of preserved uniform variables.
// Any shaders in Ebiten must have these uniform variables.
// Any shaders in Ebitengine must have these uniform variables.
PreservedUniformVariablesCount = 1 + // the destination texture size
1 + // the texture sizes array
1 + // the texture destination region's origin

View File

@ -88,7 +88,7 @@ func (a *arrayBufferLayout) disable(context *context) {
}
}
// theArrayBufferLayout is the array buffer layout for Ebiten.
// theArrayBufferLayout is the array buffer layout for Ebitengine.
var theArrayBufferLayout = arrayBufferLayout{
// Note that GL_MAX_VERTEX_ATTRIBS is at least 16.
parts: []arrayBufferLayoutPart{

View File

@ -297,7 +297,7 @@ func OnContextLost() {
theImages.contextLost = true
}
// canDetectContextLostExplicitly reports whether Ebiten can detect a context lost in an explicit way.
// canDetectContextLostExplicitly reports whether Ebitengine can detect a context lost in an explicit way.
// On Android, a context lost can be detected via GLSurfaceView.Renderer.onSurfaceCreated.
// On iOS w/ OpenGL ES, this can be detected only when gomobile-build is used.
var canDetectContextLostExplicitly = runtime.GOOS == "android"

View File

@ -14,7 +14,7 @@
package thread
// Thread defines threading behavior in Ebiten.
// Thread defines threading behavior in Ebitengine.
type Thread interface {
Call(func())
Loop()

View File

@ -24,7 +24,7 @@ import (
// RunGameWithoutMainLoop runs the game, but doesn't call the loop on the main (UI) thread.
// RunGameWithoutMainLoop returns immediately unlike Run.
//
// Ebiten users should NOT call RunGameWithoutMainLoop.
// Ebitengine users should NOT call RunGameWithoutMainLoop.
// Instead, functions in github.com/hajimehoshi/ebiten/v2/mobile package calls this.
//
// TODO: Remove this. In order to remove this, the gameForUI should be in another package.

View File

@ -23,8 +23,8 @@ import (
// WindowResizingModeType represents a mode in which a user resizes the window.
//
// Regardless of the resizing mode, an Ebiten application can still change the window size or make
// the window fullscreen by calling Ebiten functions.
// Regardless of the resizing mode, an Ebitengine application can still change the window size or make
// the window fullscreen by calling Ebitengine functions.
type WindowResizingModeType = ui.WindowResizingMode
// WindowResizingModeTypes