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

2018/6/3

Fleas Game

stevex stevex

2018/6/3

#
I had a working game that needs updating - I hard that mainly the instructions have to be in the class and not taken from a file, then upload the new version. How is this done?
danpost danpost

2018/6/3

#
stevex wrote...
I had a working game that needs updating - I hard that mainly the instructions have to be in the class and not taken from a file, then upload the new version. How is this done?
There is nothing to prevent the reading of files in a scenario. Why do you need to put the instructions in a class instead?
stevex stevex

2018/6/3

#
That was suggested by the instructor of the class where I wrote this game, as the reason why the game now longer compiles or runs in the new version of Greenfoot. I got the Instructions class to compile, but the game no longer works. I would appreciate any suggestions
danpost danpost

2018/6/4

#
stevex wrote...
That was suggested by the instructor of the class where I wrote this game, as the reason why the game now longer compiles or runs in the new version of Greenfoot. I got the Instructions class to compile, but the game no longer works. I would appreciate any suggestions
Maybe you should take a look at my TextFile Viewing World Class scenario which has a TextFileViewer class. You can run the scenario to view the code (click on the Viewer button).
stevex stevex

2018/6/5

#
Thanks, and I think this will be useful in the future, but it isn't the issue now. I got the Instructions class to compile on my machine, then hit the share button, which gave the message that it was publishing. But there is no evidence that the new version was uploaded.
stevex stevex

2018/6/5

#
It seems to have uploaded successfully this time. Is there a way to run the transpiler to try the javascript version?
danpost danpost

2018/6/5

#
stevex wrote...
Is there a way to run the transpiler to try the javascript version?
Without any available code to your project, it is impossible to say why it will not run in HTML5. However, in the majority of the times, it is because some class in the java.awt package is being used.
You need to login to post a reply.