from ursina import *
#preloads a cube
class Voxel(Button):
def __init__(self):
super().__init__(self, position = (0,0,0))(
parent = scene,
position = position,
model = 'cube',
origin_y = 0.5,
texture = 'white_cube',
color = color.white,
highlight_color = color.lime)
app = Ursina()
#loads a cube
for z in range(8):
for x in range(8):
Voxel = Voxel(position = (x,0,z))
app.run()
the error is here please help me:
File "D:\project\game.py", line 18, in <module>
Voxel = Voxel(position=(x,0,z)) TypeError: Voxel.__init__() got an unexpected keyword argument 'position'
so what I'm trying to do with this code is make cubes