-2

例如,我们有一个射击气球游戏,其中气球在“世界”中飞行,弓箭手或射手在气球飞出世界之前将其射中。所以,我们有这个统计数据:

Hits - balloons that were hit
Arrows - the number of bullets/arrows spent
Misses - is like Arrows - Hits
Escaped - balloons that player was not able to hit

我认为,准确性是计算得分的好方法,但是当玩家使用 1 个箭头并击中气球时,他的准确性将是 100%(命中/箭头),因此我需要包括其他统计数据,例如错过或逃脱以便计算一个更好的分数。也许,我们甚至可以包括所花费的时间。

我认为这是一个常见的情况,但谷歌似乎无法给我任何答案。任何人?谢谢。

4

2 回答 2

1

First thing could be how many balloons were shot down, so something like

percentage_hit = hits/total_number_of_balloons

Afterwards, you can factor in accuracy, with

accuracy = hits/total_shots

So a basic scoring would be accuracy*percentage_hit. You might want to add a *100 or so in there, so the score is a bigger number.

Another idea would be to assign every balloon hit a score, maybe based on how long it is on the field already. So if the players hits it very fast after it appears, it is worth more than when it is on the field longer.

于 2013-03-24T11:10:04.250 回答
1

这样想得分。

值得鼓励的事情:准确性命中

气馁的事情:错过逃逸的箭

然后你可以从中找出一些东西。

我会建议像 Accuracy * Hits - ( 1 - Accuracy ) * ( Misses + Escaped + Arrows )

并且您应该对这些值应用修饰符以使它们正常化,因此不会出现极端分数。

于 2013-03-24T11:13:11.720 回答