import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* Write a description of class mypaddle here.
*
* @author (your name)
* @version (a version number or a date)
*/
public class mypaddle extends Actor
{
public int speed = 5;
/**
* Act - do whatever the mypaddle wants to do. This method is called whenever
* the 'Act' or 'Run' button gets pressed in the environment.
*/
public void act()
{
if(Greenfoot.isKeyDown ("down"))
move (-speed);
if(Greenfoot.isKeyDown ("right"))
turn (5);
}
}