📄 face.java
字号:
// Face: face with draw, moveRight, and act functionality
import java.awt.*;
public class Face extends Shape
{
private int size;
public Face( int x, int y, int s )
{
super( x, y );
size = s;
}
public void act()
{
size += 2;
}
public void draw( Graphics g )
{
g.drawOval( xpos, ypos, size, size );
g.drawLine( xpos + 5, ypos + size - 5, xpos + size - 5, ypos + size - 5 );
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -