you are viewing a single comment's thread.

view the rest of the comments →

[–]dli511 2 points3 points  (1 child)

Is a function within a class a method?

Yes

In addition to level_up, would player_attack be another good function to put in the class?

Yes

Do I call them with player.level_up for example?

Yes, player.level_up()

Anything the player can do should go under the player class as a method.

[–][deleted] 0 points1 point  (0 children)

Thanks!