@dadansi, please do not post material totally unrelated to a scenario in the commenting section of that scenario. Also, do not specifically ask for my help, as others may want to give some sort of input.
@Wayne, you can have a 'canMove' method that can check to see if the player can move in the direction it is facing using:
return ((Cell)getOneIntersectingObject(Cell.class)).blocked[getRotation()/90] == false;
If you have issues with this, start a discussion thread instead of posting here.
The problem is you are creating multiple instances of the GreenfootSound class (and probably using 'Greenfoot.playSound(String filename)' to play them. Create only one GreenfootSound object either in the world constructor or when declaring the field that is to hold it:
private GreenfootSound sound = new GreenfootSound(filename);
Then use:
sound.play();
to play the sound.
@Hippo, you can probably comment out most of the title page text operations and remove anything dealing with 'drawCircText'. Then it would just be a matter of the two control classes -- changing the TexttImage constructors to GreenfootImage constructors.
You need to improve your AI as far as how long it takes to make a move. My version (currently not uploaded on the site) replies instantly with good play.
If you need help with this, you need to start a new discussion thread and indicate what you are having an issue with. A detailed explanation is best, working with one issue at a time.
2017/6/10
Fractal Fun
2017/6/10
Fractal Fun
2017/6/1
Virtual Cube
2017/5/22
Maze Generator
2017/5/18
Sounds(Broken)
2017/5/15
Combo Support Demo
2017/5/15
Combo Support Demo
2017/5/4
Gomoku
2017/5/2
whay this not work?