diff --git a/CoronaVirus.java b/CoronaVirus.java index dcfca36943ec1d44f5a01714aa73d929d847b94c..c84ffad9915faf693023f70665bc91d2fc17020a 100644 --- a/CoronaVirus.java +++ b/CoronaVirus.java @@ -15,7 +15,7 @@ public class CoronaVirus extends Enemy public void act() { disappear(); - turn(5); + turn(10); } } diff --git a/CoronaVirus.~ava b/CoronaVirus.~ava new file mode 100644 index 0000000000000000000000000000000000000000..dcfca36943ec1d44f5a01714aa73d929d847b94c --- /dev/null +++ b/CoronaVirus.~ava @@ -0,0 +1,21 @@ +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); + } + +}