look here,my god!

racewind 2006-02-11 04:46:05
boolean update_biathlon_run(int param_action)
{
action = param_action;

aa = - 4;
dx = delay_index;

delay_index = 0;
taskInterval = 120;
if (Main.track_y[p] > 0)
{
aa = - 5;
taskInterval = 110;
delay_index = 1;
}
if (Main.track_y[p] < 0)
{
aa = - 2;
taskInterval = 140;
delay_index = 2;
}
taskInterval += v >> 2;

max_period = 4;

processed = false;
if (action == prev_action)
{
action = 0;
}
else
{
pressed = false;
prev_action = action;
}

if (w_action != 0 && (mistake_cnt == 0))
{
if (period != 0) action = 0;
else
{
action = w_action;
pressed = false;
w_action = 0;
}
}

switch (action)
{
/*
case Canvas.KEY_NUM1:
finished = true;
state = Main.STATE_BIATHLON_RUN_FINISH;
state_delay = 40;
Main.finish_biathlon_run();
break;
*/
case -3:
case Canvas.KEY_NUM4:
if (!pressed && (delay_index != 2) && !finished)
{
if (period == 0)
{
if (man_index != 0 || begin)
{
man_index = 0;
pressed = processed = true;
}
}
else
{
mistake_cnt = 2;
if (period == 1) mistake_cnt = 1;
processed = pressed = true;
w_action = action;
}
}
break;
case -4:
case Canvas.KEY_NUM6:
if (!pressed && (delay_index != 2) && !finished)
{
if (period == 0)
{
if (man_index != 1 || begin)
{
man_index = 1;
pressed = processed = true;
}
}
else
{
mistake_cnt = 2;
if (period == 1) mistake_cnt = 1;
processed = pressed = true;
w_action = action;
}
}
break;
case -2:
case Canvas.KEY_NUM8:
if (!pressed && (delay_index == 2) && !finished)
{
if (period == 0)
{
man_index = 1;
pressed = processed = true;
}
else
{
mistake_cnt = 2;
processed = pressed = true;
w_action = action;
}
}
break;
case -7:
case Canvas.KEY_STAR:
processed = true;
Main.pause();
break;
case Main.NO_ACTION:
pressed = false;
prev_action = 0;
}

if (dx != delay_index || begin || processed)
{
if (dx == 2 && !processed) // from landing to horiz
{
man_index = 0;
}
a1 = man_index + 1 + (delay_index << 1);
}

...全文
202 3 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
racewind 2006-02-27
  • 打赏
  • 举报
回复
erverthing look's is only little,all have 300000!
racewind 2006-02-27
  • 打赏
  • 举报
回复
no question! 3x,i think i afraid code ,hate long code and read it
贝壳鱼 2006-02-13
  • 打赏
  • 举报
回复
what's your question?

13,097

社区成员

发帖
与我相关
我的任务
社区描述
Java J2ME
社区管理员
  • J2ME社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧