-2

Lets say I have a fighter who has the following basic attributes:

{ cardio: 80, health: 80, punching: 25, kicking: 35 }

I'm wanting to record the progress of the fighter over the course of a game, and show a + or - on their progress; further I want to be able to put this stuff onto a graph to show the historical progress of a fighter's abilities.

The only thing I'm not sure about is how to construct my object to do this, or the the best way to record the data.

Thus my query is, how do I best record the progress of RPG stats for a fighter so that I might display a +/- of progress beside their name and also for historical graphing.

Many thanks

I am using Objective C

4

1 回答 1

1

如果它是基于 Web 的游戏,我会为每个玩家推荐一个 SQL 数据库表,该表在每次更改时将这些值和时间戳存储为列。从该表中,您可以获得图表所需的数据。

如果它是一个从不使用服务器的桌面游戏,那么您应该将这些值存储在一个文件中。

你没有指定你正在使用的编程语言和许多其他的东西,所以很难说。

于 2014-10-12T05:25:37.533 回答