Skip to content

Commit

Permalink
go generate ./... with Go 1.19 (hajimehoshi#2228)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattn authored Aug 3, 2022
1 parent 5bf1934 commit 3cd0daa
Show file tree
Hide file tree
Showing 50 changed files with 148 additions and 145 deletions.
7 changes: 4 additions & 3 deletions audio/audio.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,10 @@
// Package audio provides audio players.
//
// The stream format must be 16-bit little endian and 2 channels. The format is as follows:
// [data] = [sample 1] [sample 2] [sample 3] ...
// [sample *] = [channel 1] ...
// [channel *] = [byte 1] [byte 2] ...
//
// [data] = [sample 1] [sample 2] [sample 3] ...
// [sample *] = [channel 1] ...
// [channel *] = [byte 1] [byte 2] ...
//
// An audio context (audio.Context object) has a sample rate you can specify and all streams you want to play must have the same
// sample rate. However, decoders in e.g. audio/mp3 package adjust sample rate automatically,
Expand Down
2 changes: 1 addition & 1 deletion audio/vorbis/testmonoogg_test.go

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion audio/vorbis/testtooshortogg_test.go

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion cmd/ebitenmobile/gobind.src.go

Large diffs are not rendered by default.

80 changes: 40 additions & 40 deletions doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,45 +16,45 @@
//
// You can start the game by calling the function RunGame.
//
// // Game implements ebiten.Game interface.
// type Game struct{}
//
// // Update proceeds the game state.
// // Update is called every tick (1/60 [s] by default).
// func (g *Game) Update() error {
// // Write your game's logical update.
// return nil
// }
//
// // Draw draws the game screen.
// // Draw is called every frame (typically 1/60[s] for 60Hz display).
// func (g *Game) Draw(screen *ebiten.Image) {
// // Write your game's rendering.
// }
//
// // Layout takes the outside size (e.g., the window size) and returns the (logical) screen size.
// // If you don't have to adjust the screen size with the outside size, just return a fixed size.
// func (g *Game) Layout(outsideWidth, outsideHeight int) (screenWidth, screenHeight int) {
// return 320, 240
// }
//
// func main() {
// game := &Game{}
// // Specify the window size as you like. Here, a doubled size is specified.
// ebiten.SetWindowSize(640, 480)
// ebiten.SetWindowTitle("Your game's title")
// // Call ebiten.RunGame to start your game loop.
// if err := ebiten.RunGame(game); err != nil {
// log.Fatal(err)
// }
// }
// // Game implements ebiten.Game interface.
// type Game struct{}
//
// // Update proceeds the game state.
// // Update is called every tick (1/60 [s] by default).
// func (g *Game) Update() error {
// // Write your game's logical update.
// return nil
// }
//
// // Draw draws the game screen.
// // Draw is called every frame (typically 1/60[s] for 60Hz display).
// func (g *Game) Draw(screen *ebiten.Image) {
// // Write your game's rendering.
// }
//
// // Layout takes the outside size (e.g., the window size) and returns the (logical) screen size.
// // If you don't have to adjust the screen size with the outside size, just return a fixed size.
// func (g *Game) Layout(outsideWidth, outsideHeight int) (screenWidth, screenHeight int) {
// return 320, 240
// }
//
// func main() {
// game := &Game{}
// // Specify the window size as you like. Here, a doubled size is specified.
// ebiten.SetWindowSize(640, 480)
// ebiten.SetWindowTitle("Your game's title")
// // Call ebiten.RunGame to start your game loop.
// if err := ebiten.RunGame(game); err != nil {
// log.Fatal(err)
// }
// }
//
// In the API document, 'the main thread' means the goroutine in init(), main() and their callees without 'go'
// statement. It is assured that 'the main thread' runs on the OS main thread. There are some Ebitengine functions (e.g.,
// DeviceScaleFactor) that must be called on the main thread under some conditions (typically, before ebiten.RunGame
// is called).
//
// Environment variables
// # Environment variables
//
// `EBITENGINE_SCREENSHOT_KEY` environment variable specifies the key
// to take a screenshot. For example, if you run your game with
Expand All @@ -70,18 +70,18 @@
// This environment variable can also be set programmatically through os.Setenv before RunGame is called.
// This can take one of the following value:
//
// "auto": Ebitengine chooses the graphics library automatically. This is the default value.
// "opengl": OpenGL, OpenGL ES, or WebGL.
// "directx": DirectX. This works only on Windows.
// "metal": Metal. This works only on macOS or iOS.
// "auto": Ebitengine chooses the graphics library automatically. This is the default value.
// "opengl": OpenGL, OpenGL ES, or WebGL.
// "directx": DirectX. This works only on Windows.
// "metal": Metal. This works only on macOS or iOS.
//
// `EBITENGINE_DIRECTX` environment variable specifies various parameters for DirectX.
// You can specify multiple values separated by a comma. The default value is empty (i.e. no parameters).
//
// "warp": Use WARP (i.e. software rendering).
// "debug": Use a debug layer.
// "warp": Use WARP (i.e. software rendering).
// "debug": Use a debug layer.
//
// Build tags
// # Build tags
//
// `ebitenginedebug` outputs a log of graphics commands. This is useful to know what happens in Ebitengine. In general, the
// number of graphics commands affects the performance of your game.
Expand Down
2 changes: 1 addition & 1 deletion ebitenutil/text.png.go

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion examples/resources/audio/jab.go

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion examples/resources/audio/jump.go

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion examples/resources/audio/ragtime.mp3.go

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion examples/resources/audio/ragtime.ogg.go

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion examples/resources/fonts/mplus1pregular.go

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion examples/resources/fonts/pressstart2p.go

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion examples/resources/images/audio/alert.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion examples/resources/images/audio/pause.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion examples/resources/images/audio/play.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion examples/resources/images/blocks/background.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion examples/resources/images/blocks/blocks.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion examples/resources/images/ebiten.go

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion examples/resources/images/fiveyears.go

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion examples/resources/images/flappy/gopher.go

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion examples/resources/images/flappy/tiles.go

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion examples/resources/images/gophers.go

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion examples/resources/images/keyboard/keyboard.go

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion examples/resources/images/mascot/out01.go

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion examples/resources/images/mascot/out02.go

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion examples/resources/images/mascot/out03.go

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion examples/resources/images/platformer/background.go

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion examples/resources/images/platformer/left.go

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion examples/resources/images/platformer/mainchar.go

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion examples/resources/images/platformer/right.go

Large diffs are not rendered by default.

Loading

0 comments on commit 3cd0daa

Please sign in to comment.