用户:
四年级高手小学生查看:5 回复:5 评论:5 创建时间:2022-05-19T20:54:15
我写一点代码太难了imgsrc="https://static.codemao.cn/emoji/codemao/%E7%BC%96%E7%A8%8B%E7%8C%AB_%E7%BF%BB%E7%99%BD%E7%9C%BC.gif"alt="emotion_编程猫_翻白眼" importKitten 我的变量=0 阳光=500 向日葵x='-7' 向日葵y='113.33333333333333' 计数=0 位置=1 x=0 y=0 僵尸x=0 僵尸y=96 声音控制=0 樱桃x='-81' 樱桃y='-119.16666666666667' 血量=90 位置2=111 计数2=0 击杀=133 x2=0 y2=0 wdxlist=[]; wdylist=[]; 1=[]; 2=[]; defwhen_start(): Kitten.send_layer_forward_by((0-1)) Kitten.hide() defwhen_clone_made(): Kitten.set_xy(((wdxlist[位置2-1]+10)*2),((wdylist[位置2-1]+10)*2)) 位置2=位置2+1 Kitten.show() whilenot(Kitten.value_of_object('Self','x')>220): Kitten.add_x((10*2)) ifKitten.is_touched('Self',''): Kitten.wait_for_sec(0.2) Kitten.self_remove() Kitten.self_remove() Kitten.is_touched_color('Self','#02a323') defwhen_start(): whileTrue: ifKitten.is_touched('Self',''): for_countinrange(1): Kitten.self_remove() defwhen_get_signal(signal): ifsignal=='发射': whileTrue: 位置=1 for_countinrange(计数2): Kitten.wait_for_sec(0.3) Kitten.make_clone_of('豌豆射手子弹2')