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

2015/7/1

Is there an easy way to ... ?

fejfo fejfo

2015/7/1

#
I've been programming in greenfoot for a while now (not very active ) and I wonder if there is an easyer way to do these things in greenfoot than in plain java : 1) how to make greenfoot a 3d world 2) how to save a greenfoot image as a png/jpg file (i've looked in java buffered image to can you just serailise it ?) 3) how to setup multiplayer (I've already port-forwarded my PC from 25500 to 25600 so I can host it on my own PC) 4) how to have the program use the internet.
fejfo fejfo

2015/7/1

#
If there is no easy way is there a way to 1) how to make greenfoot a 3d world 2) how to save a greenfoot image as a png/jpg file (i've looked in java buffered image to can you just serailise it ?) 3) how to setup multiplayer (I've already port-forwarded my PC from 25500 to 25600 so I can host it on my own PC) 4) how to have the program use the internet. (4 is the importanst 1 the least)
danpost danpost

2015/7/1

#
(1) unless you find some pre-made classes to make a greenfoot World object a 3d world object, you will have to create your own classes to do that; (2) my Fractal Fun and Kaleidoscope scenarios have code that takes a GreenfootImage object and saves it to a file; (3) if you are talking about multi-player among different users at different locations within a network, then you will probably need to deal with sockets and threads and such; (4) there are trails and examples on this (or, at least, what I think you mean by this) in the java tutorials; how much in line it is with what you need exactly is in question, however; Hope this helps (even if just a little).
fejfo fejfo

2015/7/2

#
danpost wrote...
(2) my Fractal Fun and Kaleidoscope scenarios have code that takes a GreenfootImage object and saves it to a file;
defintifly helps
danpost(3) wrote...
if you are talking about multi-player among different users at different locations within a network, then you will probably need to deal with sockets and threads and such;
do you happen to know a good tutorial for sockets ( I already know how threads work) ? 4 helped a little bit thanks
danpost danpost

2015/7/2

#
fejfo wrote...
do you happen to know a good tutorial for sockets ( I already know how threads work) ?
There is a trail for it on the Oracle website -- check it out starting on the page -- Sockets Direct Protocol
fejfo fejfo

2015/7/2

#
thanks!
You need to login to post a reply.