Lines Matching refs:speed
168 接下来,我们要实现的是根据用户的按键输入来移动战舰的贴图。在此之前,我们需要对 dfo_t 结构体进行更多的补充。我们额外定义一个 speed 属性,用于定义在用户每次操作时移动一定的距离。
177 uint8_t speed; // 绝对固定
205 if (!(top - my_craft->speed < 0))
206 my_craft->cur_y -= my_craft->speed;
209 if (!(bottom + my_craft->speed > 132))
210 my_craft->cur_y += my_craft->speed;
213 if (!(left - my_craft->speed < 0))
214 my_craft->cur_x -= my_craft->speed;
217 if (!(right + my_craft->speed > 64))
218 my_craft->cur_x += my_craft->speed;
284 uint8_t speed;
349 craft->cur_y += craft->speed;
412 uint8_t speed; // 飞行物的运动速度
492 bullet->cur_y -= bullet->speed;