游戏程序设计报告.docxVIP

  • 1
  • 0
  • 约5.59千字
  • 约 11页
  • 2023-12-18 发布于四川
  • 举报

上海》

游戏程序设计

题目 小鸡历险记

学号:2022xxxx

姓名:.

院系: 计蒯与信息工程学院

专业年级: 软件工程 2022级

4.2electricity代码

publicclasselectricityextendshazard

(

booleanbRemoved二false;

floatxs,ys;

inthealth=22;

floatxx,yy;

publicelectricity(booleannoeffect)

xs=0.If*(float)

(Greenfoot.getRandomNumber(16)-Greenfoot.getRandomNumber(16));

ys=0.If*(float)

(Greenfoot.getRandomNumber(16)-Greenfoot.getRandomNumber(16));

health=13;

)

publicelectricity()

(

xs=0.If*(float)

(Greenfoot.getRandomNumber(40)-Greenfoot.getRandomNumber(40));

ys=0.If*(float)

(Greenfoot.getRandomNumber(40)-Greenfoot.ge

文档评论(0)

1亿VIP精品文档

相关文档