examples/mobile: Bug fix: enabled

This commit is contained in:
Hajime Hoshi 2016-05-19 03:26:44 +09:00
parent 76ea075896
commit d5d9e2c73e

View File

@ -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 {