mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-25 03:08:54 +01:00
examples/mobile: Bug fix: enabled
This commit is contained in:
parent
76ea075896
commit
d5d9e2c73e
@ -12,7 +12,9 @@
|
|||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
package main
|
// Package mobile is an example of Ebiten for mobiles (Android).
|
||||||
|
// You can `gomobile bind` this package but not `gomobile build`.
|
||||||
|
package mobile
|
||||||
|
|
||||||
import (
|
import (
|
||||||
_ "image/jpeg"
|
_ "image/jpeg"
|
||||||
@ -47,7 +49,7 @@ func update(screen *ebiten.Image) error {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func main() {
|
func Start() {
|
||||||
var err error
|
var err error
|
||||||
gophersImage, _, err = common.AssetImage("gophers.jpg", ebiten.FilterNearest)
|
gophersImage, _, err = common.AssetImage("gophers.jpg", ebiten.FilterNearest)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user