Hello, I am creating an mod that enables you to tweak the moveset of custom characters by editing a JSON-like file.
For example, to create a character with 10% less gravity, a long jump that reaches 30% farther, and a dive that provides 13 units of vertical height, you would write the following configuration:
{ name = "Osaka", dive-vel-y= 13, long_jump_strength=130, gravity= 90}
So, I need some feedback about my API to make it more intuitive:
For example, to create a character with 10% less gravity, a long jump that reaches 30% farther, and a dive that provides 13 units of vertical height, you would write the following configuration:
{ name = "Osaka", dive-vel-y= 13, long_jump_strength=130, gravity= 90}
So, I need some feedback about my API to make it more intuitive:
- Should percentages (with 100 as the default value) remain the standard input?
- Would float values (e.g., 1.0 for default, 1.3 for 30% increase) be more intuitive?
- Witch is more intuitive, the default value being 0 or 100 ?
- Are the current stat names clear? Below is an explanation of each stat. Please let me know if you find the names confusing or suggest improvements
swimming_speed
- Description: Adjusts how much faster the character can swim in all directions (percentage-based).
- Example:
130
means the character swims 30% faster.
jump_strength
- Description: Increases the height of all jumps (percentage-based).
- Example:
130
means jumps provide 30% more upward velocity.
dive_y_velocity
- Description: Adds vertical velocity during a dive (normally, dives don’t provide height).
- Example:
20
means the dive gives 20 units of upward velocity.
dive_velocity
- Description: Sets the forward velocity during a dive (percentage-based).
- Example:
150
means the dive has 50% more forward velocity.
dive_max_velocity
- Description: Increases the maximum forward velocity limit for dives (percentage-based).
- Example:
140
means dives can reach 40% higher forward speed.
long_jump_velocity_multiplier
- Description: Adjusts the forward velocity multiplier for long jumps (percentage-based).
- Example:
160
means the long jump accelerates forward velocity 60% more.
long_jump_max_velocity
- Description: Raises the maximum forward velocity cap for long jumps (percentage-based).
- Example:
160
allows long jumps to reach 60% more forward speed.