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

2012/1/5

Greenfoot Mobile App?

3
4
5
6
7
8
9
Builderboy2005 Builderboy2005

2012/10/24

#
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?
Upupzealot Upupzealot

2012/10/24

#
Now I use android.graphics.Bitmap instead of BufferedImage, and use android.graphics.canvas + android.graphics.paint for Graphics2D in JAVA SE
-nic- -nic-

2012/10/24

#
wow this is really amazing
Upupzealot Upupzealot

2012/10/24

#
I was sucked with multiTouch now, it's not easy to make things just like Greenfoot
-nic- -nic-

2012/11/12

#
@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:]
pluess pluess

2012/11/13

#
Did you ever check http://www.aplu.ch/home/apluhomex.jsp?site=102 Regards Aegidius
Upupzealot Upupzealot

2012/11/13

#
@pluess anything new?
Upupzealot Upupzealot

2012/11/13

#
For everybody who cares about Greenfoot4Andoird here is my work: Dropbox share Link Still with lots of problems, far from perfect. Sound is not available and VertualKeyboard did't work well. The Greenfoot class maybe has some public method that is not exist in Greenfoot. Anyway, I would update it as soon as I fixed any bug. Touch me at: hzxjhspxn@163.com
MatheMagician MatheMagician

2012/11/13

#
For nic, I have posted the code for my balloons app here .
-nic- -nic-

2012/11/14

#
Thanks alot MatheMagician
MatheMagician MatheMagician

2012/11/14

#
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.
groengeel groengeel

2012/11/15

#
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?
Upupzealot Upupzealot

2012/11/15

#
@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
Upupzealot Upupzealot

2012/11/15

#
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
Upupzealot Upupzealot

2012/11/15

#
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.
There are more replies on the next page.
3
4
5
6
7
8
9