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