Skip to content
Snippets Groups Projects
Commit 1e18467e authored by sn3-qsk-u1's avatar sn3-qsk-u1
Browse files

Test

parent 494ab9dc
No related branches found
No related tags found
No related merge requests found
...@@ -15,7 +15,7 @@ public class CoronaVirus extends Enemy ...@@ -15,7 +15,7 @@ public class CoronaVirus extends Enemy
public void act() public void act()
{ {
disappear(); disappear();
turn(5); turn(10);
} }
} }
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* Write a description of class CoronaVirus here.
*
* @author (your name)
* @version (a version number or a date)
*/
public class CoronaVirus extends Enemy
{
/**
* Act - do whatever the CoronaVirus wants to do. This method is called whenever
* the 'Act' or 'Run' button gets pressed in the environment.
*/
public void act()
{
disappear();
turn(5);
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment