recently, I"m going to do a Mini Game. When it comes to the achievement system for the first time, I read some materials and make a whole table by myself, but I don"t like it. I always feel strange. Please give me some advice.
- first of all,
achievement
is a kind of achievement, such as upgrade achievement, number of competitions achievement. Connect theplayer
table, and theprogress
field is the total progress of this type of achievement. This table is mainly used to mount the user"s behavior monitoring and record the progress of the achievement. - then
sub_achievement
the table is a sub-achievement, such as rising to 5 poles, 10 levels, 15 levels.status
fields are incomplete, completed, and received. - and two
xxx_type
are achievement types.
always feels strange. sub_achievement
whether to draw a root line to connect player
, and whether this design is reasonable, the gods will give us some advice.