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

2012/1/5

Greenfoot Mobile App?

8
9
10
11
12
13
Upupzealot Upupzealot

2012/11/17

#
@-nic- Have add line: Greenfoot.start(); at the end of your world's constructor? Always remember to do this since Greenfoot4Android didn't has a start button.
-nic- -nic-

2012/11/17

#
cool thanks
Upupzealot Upupzealot

2012/11/17

#
@groengeel see above, have you started your World?
groengeel groengeel

2012/11/17

#
the game plays, the actor exists. i just dont see the image..
Upupzealot Upupzealot

2012/11/17

#
Alright, send me your whole project by email. I would have a look.
-nic- -nic-

2012/11/17

#
@Upupzealot did any one make a tutorial on how to start using Greenfoot4Android
Upupzealot Upupzealot

2012/11/17

#
Not yet, but I'm planning doing that.
-nic- -nic-

2012/11/17

#
Okay because i was going to start on one but its cool
Upupzealot Upupzealot

2012/11/17

#
Aha, you may write something about downloading Eclipse and SDK. I didn't plan doing that.
-nic- -nic-

2012/11/17

#
Okay ill have a go But i can only do it for linux and mac and windows are much more popular ans stable
groengeel groengeel

2012/11/17

#
Upupzealot, I just mailed you a zipped archive with the project files. About the tutorial thingies. I think we would want to write an automated conversion script which does most of the basic handling by itself. Like: create a package, add setImage() methods in constructors, add Greenfoot.start(), check what types of input you're using and based on that choose an inputmethod, you know, that kind of stuff. It could also place everything in the right folder (/images to assets, /sounds to assets, remove .class files, remove greenfoot project files, add .java files to the src/<<packageName>> folder) Basically it would just generate a Greenfoot4Android archive containing your project. This would save people tons of work and errorfixing.
Upupzealot Upupzealot

2012/11/17

#
I'm checking your code at this moment. For the automatically convertion. The idea is great, but I don't think that would be an easy job. And people could not always expecting things to be automatically... Greenfoot4Android has do a lot of things to make the convertion easier. Think of do the convertion yourself without Greenfoot4Android, and you would see the difficulty. No pain no gain, right? After all, your suggestion is good, and I would think of it. I just think it's beyond my ability.
-nic- -nic-

2012/11/17

#
it would be great but there is big differences between davimk(i think its spelt that way) and greenfoot and if it is possible to just drag and drop you would never progress futher into davimk
groengeel groengeel

2012/11/17

#
Well. It's great as it is already. The automatic conversion is just there to make your life easier. (If this gets popular) people are going to ask tons of questions. Upupzealot, please don't share the full code here. The greenfoot code is still at my teachers desk for review, I want to prevent any accusations of plagiarism. I removed the code from my server already :)
Upupzealot Upupzealot

2012/11/17

#
@groeneel I won't open your source if you didn't want. For your problem: The reason that AntiAirGun is missing is still unknown.(I would check again) For the Numbers, that's because the constructor GreenfootImage(String, int, Color, Color) in Greenfoot4Android didn't work. (I didn't solve this problem yet) You may creat an empty GreenfootImage and write the words yourself in act() (remember to clear first everytime you rewrite them) Another suggestion is: the constructor of World in Greenfoot4Android World(int, int, int) actually equals World(int, int, int, false) in Greenfoot. So Actors may get out of the World, so you have to check the bound your self.
There are more replies on the next page.
8
9
10
11
12
13