代码拉取完成,页面将自动刷新
import greenfoot.*; // (Actor, World, Greenfoot, GreenfootImage)
public class CrabWorld extends World
{
/**
* Create the crab world (the beach). Our world has a size
* of 560x560 cells, where every cell is just 1 pixel.
*/
public CrabWorld()
{
super(560, 560, 1);
Crab c = new Crab();
Lobster l1 = new Lobster();
Worm w1 = new Worm();
Worm w2 = new Worm();
Worm w3 = new Worm();
Worm w4 = new Worm();
Worm w5 = new Worm();
Worm w6 = new Worm();
addObject(c,120,120);
addObject(l1,1,20);
addObject(w1,150,120);
addObject(w2,200,120);
addObject(w3,100,120);
addObject(w4,500,120);
addObject(w5,400,50);
addObject(w6,450,60);
}
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。