Fix misspelling

This commit is contained in:
Hajime Hoshi 2018-12-03 18:23:25 +01:00
parent 968e137cc5
commit 155ee828b8
6 changed files with 7 additions and 7 deletions

View File

@ -85,7 +85,7 @@ func update(screen *ebiten.Image) error {
op.GeoM.Scale(0.25, 0.25)
// Scale the image by the device ratio so that the rendering result can be same
// on various (diffrent-DPI) environments.
// on various (different-DPI) environments.
op.GeoM.Scale(scale, scale)
// Move the image's center to the screen's center.

View File

@ -46,7 +46,7 @@ func update(screen *ebiten.Image) error {
op := &ebiten.DrawImageOptions{}
// Move the image's center to the screen's upper-left corner.
// This is a prepartion for rotating. When geometry matrices are applied,
// This is a preparation for rotating. When geometry matrices are applied,
// the origin point is the upper-left corner.
op.GeoM.Translate(-float64(w)/2, -float64(h)/2)

View File

@ -45,7 +45,7 @@ func init() {
log.Fatal(err)
}
// In this example, embeded resource "Jab_wav" is used.
// In this example, embedded resource "Jab_wav" is used.
//
// If you want to use a wav file, open this and pass the file stream to wav.Decode.
// Note that file's Close() should not be closed here

View File

@ -76,7 +76,7 @@ func QuadVertices(width, height int, sx0, sy0, sx1, sy1 int, a, b, c, d, tx, ty
func quadVerticesImpl(x, y, u0, v0, u1, v1, a, b, c, d, tx, ty, cr, cg, cb, ca float32) []float32 {
// Specifying a range explicitly here is redundant but this helps optimization
// to eliminate boundry checks.
// to eliminate boundary checks.
//
// 4*VertexFloatNum is better than 40, but in GopherJS, optimization might not work.
vs := theVerticesBackend.slice(4)[0:40]

View File

@ -34,7 +34,7 @@ type backend struct {
}
func (b *backend) TryAlloc(width, height int) (*packing.Node, bool) {
// If the region is allocated without any extention, it's fine.
// If the region is allocated without any extension, it's fine.
if n := b.page.Alloc(width, height); n != nil {
return n, true
}

4
run.go
View File

@ -180,7 +180,7 @@ func RunWithoutMainLoop(f func(*Image) error, width, height int, scale float64,
//
// On browsers, ScreenSizeInFullscreen returns the 'window' (global object) size, not 'screen' size since an Ebiten game
// should not know the outside of the window object.
// For more detials, see SetFullscreen API comment.
// For more details, see SetFullscreen API comment.
//
// On mobiles, ScreenSizeInFullscreen returns (0, 0) so far.
//
@ -409,7 +409,7 @@ func IsVsyncEnabled() bool {
// The initial value is true.
// By disabling vsync, the game works more efficiently but consumes more CPU.
//
// Note that the state doesn't affect TPS (ticks per second, i.e. how many the run funciton is
// Note that the state doesn't affect TPS (ticks per second, i.e. how many the run function is
// updated per second).
//
// SetVsyncEnabled does nothing on mobiles so far.