Python Forum
Game Logic - Pokemon like type advantages in python
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Game Logic - Pokemon like type advantages in python
#4
class Fire_monster():
    def __init__(self, name):
        self.name = name
        self.value = 5
        self.elements = ("fire", "air", "magic")
        self.HP = 1000
        self.attack = 30
        self.mana = 100

monster = Fire_monster("Sinder")

print(monster.name, monster.elements)
Reply


Messages In This Thread
RE: Game Logic - Pokemon like type advantages in python - by michael1789 - Aug-17-2020, 07:31 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  From python game in terminal to a website game using bottle Njanez 0 3,953 Aug-13-2021, 01:11 PM
Last Post: Njanez
  [PyGame] Game Logic problem with a "The Game of Life" Replication Coda 2 3,274 Dec-24-2018, 09:26 AM
Last Post: Coda
  Collaboration on a Pokemon Game Codezters 3 4,744 Sep-14-2017, 08:07 PM
Last Post: Mekire

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020