you are viewing a single comment's thread
view the rest of the comments
[–] 2 points 2 years ago (1 child)

Yeah, in Ren'py games usually it's character_health=100 or something.

  • source
  • parent
  • hideshow 2 child comments
  • [–] 3 points 2 years ago

    Yes absolutely, the parameter even if not in a strongly typed language should be a specific number and the unit should be implied. Overload the method to support different units if necessary or provide a unit as an additional parameter instead of forcing the method to parse the string for any unit type hints that may or may not be there

  • source
  • parent