mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-27 11:12:44 +01:00
Updated Android (markdown)
parent
56680a2e53
commit
4fef4b1dc8
@ -42,9 +42,10 @@ func Start(scale float64) error {
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
// mobile.Start starts the game.
|
// mobile.Start starts the game.
|
||||||
// In this function, scale is passed from Java side and pass it to mobile.Start.
|
// In this function, scale is passed from Java side and pass it
|
||||||
// You can also receive the screen size from Java side by adding arguments to this function
|
// to mobile.Start. You can also receive the screen size from Java
|
||||||
// if you want to make Java side decide the screen size.
|
// side by adding arguments to this function if you want to make
|
||||||
|
// Java side decide the screen size.
|
||||||
// Note that the screen size unit is dp (device-independent pixel).
|
// Note that the screen size unit is dp (device-independent pixel).
|
||||||
if err := mobile.Start(game.Update, ScreenWidth, ScreenHeight, scale, "Your Game's Title"); err != nil {
|
if err := mobile.Start(game.Update, ScreenWidth, ScreenHeight, scale, "Your Game's Title"); err != nil {
|
||||||
return err
|
return err
|
||||||
|
Loading…
Reference in New Issue
Block a user