Ebiten 1.11 Release Notes
Ebiten 1.11 リリースノート
v1.11.0
New features
新機能
Game interface and RunGame
Game インターフェイスと RunGame
Game interface and RunGame function are introduced. These are new API to run a game.
Game インターフェイスと RunGame 関数が新規追加されました。これらはゲームを実行するための新しい API です。
Run function is not deprecated and will remain for a while, but it is recommended to use Game interface and RunGame function for new usages.
Run 関数は廃止されず当面残りますが、新規案件では Game インターフェイスと RunGame 関数を使うことが推奨されます。
These are ncessary to make the window resizable instead of Run (Issue 943).
ウィンドウを可変サイズにするために Run の代わりに使う必要があります (Issue 943)。
Resizable window
サイズ可変ウィンドウ
For more details about a resizable window, see the blog article.
サイズ可変ウィンドウの詳細についてはブログ記事を参照してください。
IsWindowResizable/SetWindowResizableare introduced (Issue 320).IsWindowResizable/SetWindowResizableが新規追加されました (Issue 320)。WindowSize/SetWindowSizeare introduced (Issue 320).WindowSize/SetWindowSizeが新規追加されました (Issue 320)。MaximizeWindow/IsWindowMaximizedare introduced (Issue 994).MaximizeWindow/IsWindowMazimizedが新規追加されました (Issue 994)。MinimizeWindow/IsWindowMinimizedare introduced (Issue 994).MinimizeWindow/IsWindowMinimizedが新規追加されました (Issue 994)。RestoreWindowis introduced (Issue 994).RestoreWindowが新規追加されました (Issue 994)。
type Game struct{}
func (g *Game) Update(screen *ebiten.Image) error {
// Update the game state
return nil
}
func (g *Game) Draw(screen *ebiten.Image) {
// Draw the current game state
}
func (g *Game) Layout(outsideWidth, outsideHeight int)
(screenWidth, screenHeight int) {
// Accepts the outside size (e.g., window size), and
// returns the game screen size.
// The game screen scale is automatically adjusted.
return 320, 240
}
func main() {
g := &Game{}
if err := ebiten.RunGame(g); err != nil {
panic(err)
}
}
Window position
ウィンドウ位置
WindowPosition/SetWindowPositionare introduced (Issue 936).WindowPosition/SetWindowPositionが新規追加されました (Issue 936)。
Transparent screen
透過スクリーン
SetScreenTransparent/IsScreenTransparentare introduced (Issue 1001).SetScreenTransparent/IsScreenTransparentが新規追加されました (Issue 1001)。
Floating window
常時最前面ウィンドウ
SetWindowFloating/IsWindowFloatingare introduced (Issue 880).SetWindowFloating/IsWindowFloatingが新規追加されました (Issue 880)。
You can develop a desktop mascot application with these API. See the mascot example.
これらの API を使って、デスクトップマスコットアプリケーションが作れます。 mascot サンプルを参考にしてください。
Capturing cursor
カーソルキャプチャ
CursorModeType/CursorMode/SetCursorModeare introduced (Issue 1016).CursorModeType/CursorMode/SetCursorModeが新規導入されました (Issue 1016)。
Misc.
その他
SetWindowDecoratedbeforeRun/RunGameis allowed (Issue 556).SetWindowDecoratedがRun/RunGameの前に呼べるようになりました (Issue 556)。ReplacePixelson a sub-image is allowed (Issue 980).ReplacePixelsが部分画像上で呼べるようになりました (Issue 980)。- Go modules are supported at
ebitenmobilecommand (Issue 1055). - Go modules が
ebitenmobileでサポートされるようになりました (Issue 1055)。 - Keyboards are supported on Android and iOS (Issue 237).
- Android と iOS でキーボードがサポートされました (Issue 237)。
- Gamepads are supported on Android (Issue 1083).
- Android でゲームパッドがサポートされました (Issue 1083)。
Performance improvement
パフォーマンス改善
- Creating images and replacing pixels are faster by using PBO (Pixel Buffer Object) (Issue 988).
- PBO (Pixel Buffer Object) の使用により、画像の作成やピクセルの置換が高速になった (Issue 988)。
- Other small optimizations (Issue 976, Issue 981, Issue 990, Issue 1101).
- その他細かい最適化 (Issue 976、 Issue 981、 Issue 990、 Issue 1101).
Deprecated API
廃止予定 API
SetScreenSize: UseGameinterface andRunGamefunction instead.SetScreenSize: 代わりにGameインターフェイスとRunGame関数を使用してください。ScreenScale: UseWindowSizeinstead.ScreenScale: 代わりにWindowSizeを使用してください。SetScreenScale: UseSetWindowSizeinstead.SetScreenScale: 代わりにSetWindowSizeを使用してください。IsCursorVisible: UseCursorModeinstead.IsCursorVisible: 代わりにCursorModeを使用してください。SetCursorVisible: UseSetCursorModeinstead.SetCursorVisible: 代わりにSetCursorModeを使用してください。IsRunnableInBackground: UseIsRunnableOnUnfocusedinstead.IsRunnableInBackground: 代わりにIsRunnableOnUnfocusedを使用してください。SetRunnableInBackground: UseSetRunnableOnUnfocusedinstead.SetRunnableInBackground: 代わりにSetRunnableOnUnfocusedを使用してください。
Bug fix
バグ修正
- This release includes all the bug fixes in v1.10.x.
- このリリースには、 v1.10.x にあるすべてのバグ修正が含まれます。
- Enlarging an image failed on Android Huawei ALE-L02 (Issue 1044).
- Android Huawei ALE-L02 において、画像の拡大に失敗していたのを修正 (Issue 1044)。
- Blinking edges on iPad (Issue 1019).
- iPad 上で画面端が点滅していたのを修正 (Issue 1019)。
v1.11.1
Bug fix
バグ修正
- Improve the performance when using
Gameinterface'sDrawfunction (Issue 1134, Issue 1140). GameインターフェイスのDraw関数使用時のパフォーマンスを改善 (Issue 1134、 Issue 1140)。(*Image).Atcould be unnecessarily slow (Issue 1137).(*Image).Atが不必要に遅くなることがある問題を修正 (Issue 1137)。ebitenmobilewith specifying archtectures at-targetdid not work (Issue 1142).ebitenmobileで-targetにアーキテクチャを指定したときにコンパイルできなかった問題を修正 (Issue 1142)。
v1.11.2
Bug fix
バグ修正
- A possible freeze on browsers (Issue 1161).
- ブラウザ上でフリーズする可能性があったのを修正 (Issue 1161)。
- An image rendered by
Fillmay be failed to restore correctly after context-lost (Issue 1170). Fillで描画された画像がコンテキストロストから正しく復帰しないことがあったのを修正 (Issue 1170)。
v1.11.3
Bug fix
バグ修正
- Ensured that
Updatemust be called at least once beforeDrawin the first frame (Issue 1155). - 一番最初のフレームで
Drawの前にUpdateが最低限一回が呼ばれるように保証 (Issue 1155)。 - Crashed when an input device is detached on Android (Issue 1185).
- Android で入力デバイスがデタッチしたときにクラッシュしていたのを修正 (Issue 1185)。
SetVsyncEnabled(false)beforeRun/RunGamedidn't work (Issue 1197).Run/RunGame前のSetVsyncEnabled(false)が動かなかったのを修正 (Issue 1197)。
v1.11.4
Bug fix
バグ修正
- Mitigated the crashes when launching an application on macOS (Issue 1237).
- macOS で起動時にクラッシュしていた問題を軽減 (Issue 1237)。
v1.11.5
Bug fix
バグ修正
- Broken graphics on Raspberry Pi 4 (Issue 1208).
- Raspberry Pi 4 で正しく描画がされなかった問題を修正 (Issue 1208)。
- Delayed audio after sleeping on macOS (Issue 1259).
- macOS でスリープ後に音が遅れることがあった問題を修正 (Issue 1259)。
v1.11.6
Bug fix
バグ修正
- Build error for Android (Issue 1266).
- Android 向けビルド時のエラーを修正 (Issue 1266)。
v1.11.7
Bug fix
バグ修正
- Delayed audio after 1 minute sleeping on macOS (Issue 1280).
- macOS で 1 分スリープ後に音が遅れることがあった問題を修正 (Issue 1280)。
v1.11.8
Bug fix
バグ修正
- Freeze on Pixel 4 and Pixel 4a (Issue 1322, Issue 1332).
- Pixel 4 と Pixel 4a 上で起きるフリーズの修正 (Issue 1322、 Issue 1332)。
ebitenmobiledid not work with Go 1.15 (Issue 1336).ebitenmobileが Go 1.15 で動かなかった問題の修正 (Issue 1336).
v1.11.9
Bug fix
バグ修正
- Vsync didn't work in fullscreen mode on Windows (Issue 1363).
- Windows でフルスクリーン時に Vsync が動かなかった問題の修正 (Issue 1363)。