Documentation ¶
Index ¶
Constants ¶
View Source
const LEVEL_EXP_BASE = 200
View Source
const LEVEL_EXP_MULTIPLIER = 100
View Source
const ONLINE_MULTIPLIER = 1.1
View Source
const POINT_BASE = 1
Variables ¶
View Source
var Levels []entities.Level
Functions ¶
func ApplyPoints ¶
Applies points to the user. Returns: (bool) leveledUp, (bool) ok
func CalculatePoints ¶
func CalculatePoints(result *entities.GameResult, players int) int
Calculates how many points should a user get for the game result (Words * PB) * wpmMultiplier * Accuracy
func GetLevelName ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.