This site requires JavaScript, please enable it in your browser!
Greenfoot back

Report as inappropriate.

MatheMagician
MatheMagician presents ...

2012/11/13

Balloons for Android

This is the basic greenfoot game converted to android! The point of this is to demonstrate some of the differences between android and Greenfoot. To access it in eclipse, download the scenario and look in the project folder. You will see a folder labeled "Balloons." In eclipse, create a new android project. Click "create from existing source" or "create from existing sample" and select the Balloons folder as the existing source. It was programmed for Android 2.2 or API 8. The code still isn't as streamlined as I would like it, and it has few comments, but I will fix that in future updates. If you have trouble understanding this code, upupzealot created a library for android that makes it easier for converting greenfoot to android, available at this link: http://www.greenfoot.org/topics/698/75. If you want to use my code but do not already have eclipse and the android sdk, they are available here: http://developer.android.com/sdk/index.html

If you have any questions about downloading the code or about it specificly, feel free to ask.

8503 views / 1021 in the last 7 days

5 votes | 0 in the last 7 days

Tags: mouse game simulation with-source

This scenario is a member of: Android


open in greenfoot
Your browser is ignoring the <APPLET> tag.
HTML5 version not available | Scenario not running?
groengeelgroengeel

2012/11/15

Yes, it works on others, but you'll have to change the 'target' of the APK file. You do this by changing the project description file.
groengeelgroengeel

2012/11/15

What is the best way to do this with my own scenario's? Really, i downloaded it all, but it just doesn't get to load. Could one write a simple tutorial?
MatheMagicianMatheMagician

2012/11/15

@groengeel, you do not have to change the target, android operating systems run all apps designed for that version or for any version older than these. For example, I designed this around 2.2, but it will run on my nexus 7, which runs jellybean (4.1/4.2). As for your other question, android coding is quite different from Greenfoot coding. It all runs java, but the methods are different. I am thinking about doing a tutorial to show some of the major differences like you suggested, but there may be a couple other options in the near future (they are mentioned in this discussion: http://www.greenfoot.org/topics/find/4412#post_4412).
UpupzealotUpupzealot

2012/11/15

Would you introduce my Greenfoot4Android? For it's very like Greenfoot. As you are my first user, you may share your experience with others.
MatheMagicianMatheMagician

2012/11/15

I would happily share it, though how do you recommend I do that?
UpupzealotUpupzealot

2012/11/15

Just write something about how to use it. From downloading Eclipse or dropbox to how to do the convert. You know, the first step out from Greenfoot could be tough to new learners.
paulmartin42paulmartin42

2012/11/16

a few more words after once you have downloaded ADK successfully ....
erdelferdelf

2012/11/16

After a few complications, I made eclipse to make an apk file and installed it on two Galaxy S2 devices with android version 2.3 and 4.0.4. and it works without problems. Great job.
MatheMagicianMatheMagician

2012/11/16

I am glad you got it to work erdelf!
ZeroMarkZeroMark

2017/9/18

Sir how to Convert greenfoot games to apk?

See all comments

Want to leave a comment? You must first log in.

Who likes this?

maikocharles erdelf Upupzealot paulmartin42 -nic-