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

2013/6/28

Lego NXT support

Game/maniac Game/maniac

2013/6/28

#
Could you(Greenfoot team) add support for Lego NXT it could be cool if I could make games which use the functions of lego nxt.
MatheMagician MatheMagician

2013/6/30

#
NXT doesn't run on java... What you are saying is they would have to make their own compiler. Kindof like rewriting java.
erdelf erdelf

2013/6/30

#
I am sure nxt runs on java. I programmed it with java for a few projects last year
Game/maniac Game/maniac

2013/6/30

#
davmac davmac

2013/7/1

#
You can use eg LeJOS to allow programming NXT bricks with Java but I don't see the point of Greenfoot integration. To be honest I'm not really sure what you're asking for.
Game/maniac Game/maniac

2013/7/1

#
I want to be able to program my next brick in greenfoot.
davmac davmac

2013/7/1

#
Why? Greenfoot's a special-purpose IDE; why not use another environment that's more suited? There's no screen on the NXT brick so you can't display the world or the actors. Most of the Greenfoot concepts are just irrelevant. If you like the editor and general simplicity, perhaps try BlueJ. A web search for "program lego mindstorms with bluej" shows some results that look interesting.
davmac davmac

2013/7/1

#
Game/maniac Game/maniac

2013/7/1

#
What if I wanted to use it for input in a game. E.g.using the motor as a steering wheel for a driving game.
Game/maniac Game/maniac

2013/7/1

#
Plus finch has no display either but you still integrated greenfoot with finch
davmac davmac

2013/7/1

#
It looks like you can use the LeJOS NXJ API to read the sensor values. Just use the library as you would any other library (search the web for how to use the LeJOS libraries with BlueJ and/or Greenfoot, I'm sure there will be something out there). This doesn't require any special support be added to Greenfoot (unless I'm still not understanding you).
davmac davmac

2013/7/1

#
Plus finch has no display either but you still integrated greenfoot with finch
There is a support library (and documentation) for using Greenfoot together with Finch robots, but they aren't integrated in any real sense. If all you want to do is read sensor values, I think you can just use a library as I suggested in the previous comment. When you said:
I want to be able to program my next brick in greenfoot.
I assumed you meant that you want to write code in Greenfoot which would run on the brick. You certainly can't do that with the finch!
You need to login to post a reply.