есть класс player
class player(object):
def __init__(self, x, y, width, heigth):
self.x = x
self.y = y
self.width = width
self.heigth = heigth
self.spd = 2
self.left = False
self.rigth = True
self.walkCount = 0
self.isJump = False
self.jumpCount = 10
self.standing = True
self.hitbox = (self.x + 17, (int(self.y) + 11), 29, 52)
self.walkLeft = []
self.walkRight = []
self.createSpriteList('Left')
self.createSpriteList('Right')
man = player(100, 100, 64, 64)
с ним все работает, все идеально
далее есть класс weapon
class weapon(object):
def ___init__(self, damage, calibre, mods, firing_speed):
self.damage = damage
self.calibre = calibre
self.mods = mods
self.firing_speed = firing_speed
pistol = weapon(35, '9', mods_s, 0.4)
И при запуске ошибка:
Traceback (most recent call last):
File "C:\Users\Семья\Desktop\game\main.py", line 202, in <module>
pistol = weapon(35, '9', mods_s, 0.4)
TypeError: weapon() takes no arguments