Hmm that brings up an interesting question, how are you representing the images such that the regular java libraries are not available to work on them?
Now I use android.graphics.Bitmap instead of BufferedImage, and use android.graphics.canvas + android.graphics.paint for Graphics2D in JAVA SE
wow this is really amazing
I was sucked with multiTouch now, it's not easy to make things just like Greenfoot
@MatheMagician
you said you would post the code for tthe balloons game in eclipse/java/android
im just trying to get started in android and it would be really helpfull if you posted the code
Thanks:]
Thanks alot MatheMagician
Your welcome! It still needs some more streamlining, so if you have trouble understanding it, just wait for me to update it or post a different scenario like it.
Upupzealot, how would I get started with your script?
Do I need to package it? It doesn't seem to make any sense yet. It sounds supercool though.
-- 30 min. update --
Ok, this is what i think: The files in your dropbox are the project files aren't they?
So I can just import this into eclipse, install Android SDK and stuff, then import my own scenario right?
Logically the scenario wouldn't work yet (since I am using java.awt.Color, java.util.(Array)List and stuff), so obviously, I need to change some stuff.
-- 60 min. update --
I got the APK files. However greenfoot closes directly in the emulator. Can't install them on my tablet (it fails). Any ideas?
@groengeel
Things in my dropbox is an project.
It should work with Eclipse, but actually I'm using AIDE.
Maybe you need to import the android.jar file yourself.
And make sure things is working in an environment which is higher than Android2.2(API level 9, think it is, I was doing under Android4.0.3)
For importing your own Scenario( please make sure my examples can run first)
1. do not import java.awt.Color or java.awt.Font they are now greenfoot.Color and greenfoot.Font
2. always use methods:
Greenfoot.setInputMode(int)
Greenfoot.start()
at the end of your World's constructor.
3.About Input
you can only choose mouse or keyboard.
If you choose one, the other on won't work.(I would fix this as soon as possible
If your Scenario uses keyboard, use
Greenfoot.setInputMethod(Greenfoot.keyBoardMod);
Than your screen would cut into 9 parts.(3 * 3)
line 1: up&left up up&right
line 2: left space right
line 3: left&down down right&down
If it closes directly, that means it has Exceptions.
probably solutions are:
1.put your pics under assets/graphics
2.only .png and .jpg is supported
3.sounds still not available
4.userInfo still not available
What's more, put your codes(.java files) into a folder under src
And add a line:
package foldername;
to every class file(see what I'v done in other folders)
After that, enter the MainActivity class, to set the World your Scenario start with.