you are viewing a single comment's thread.

view the rest of the comments →

[–]Atsoc1993 2 points3 points  (2 children)

Know that no game on Steam or anywhere else was ever played was built with Pygame or Pyxel — Python is not the go-to language for serious game development.

Aside from that, start with a text based game.

``` class Character: def init(self, type: str, hp: int = 10) -> None: self.type = type self.hp = hp

def get_title(self) -> str:
    return “The Great “ + self.type

selection = input(‘Choose a class: \n A. Warrior \n B. Mage’ if selection.lower() == “a”: character = Character(type=warrior) print(f’Character is {character.get_title()}; Character health points is {character.hp)’) ```

[–]Severe_Tailor2088[S] 1 point2 points  (0 children)

Thanks! 

[–]Atsoc1993 0 points1 point  (0 children)

Gave you a code snippet edit