开发者

in jigsaw puzzle game in game score how can identified using moves and remaining time

i am implementing puzzle game app in androi开发者_开发问答d . in this application one level complete then get score number of moves and remaining level completion on time .i am level completed show in dialogbox it shows move next level ,then number of moves and remaining time in each level value display in these dialog box todisplay (number of moves + remaing time)...

((TextView)findViewById(R.id.MovesTextView)).setText("Moves-"+moves); ((TextView)findViewById(R.id.ScoreTextView1)).setText("Time-"+(time/(1000*60))+":"+((time%(1000*60))/1000));

how can implemented this problem please forward some solution its urgent


If I understand you correctly, you want to make the score a function of remaining time and total moves? So the problem is to find the algorithm f(time, moves).

Scoring is not usually an exact science. You could work this out mathematically, but the best solution is a fair one; give players a score for completing the level, then give a bonus proportional to how good they are compared to other players.

To gather this data lots of play-testers of different skill levels must play the game lots of times each. Record information like average time per move, total number of moves and time remaining, then graph this data. Once you understand the shape of this data, you will have the information required to make a fair f(time, moves)

A naive solution would be just something like this:

level_score = level * 100;
max_bonus = 100000;
bonus_score = max_bonus / (time_taken + moves_taken + level*10);
score = level_score + bonus_score;
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜