from ursina import *
from ursina.prefabs.first_person_controller import FirstPersonController
class Voxel(Button):
def __init__(self, position = (0,0,0)):
super().__init__(
parent = scene,
position = position,
medel = 'cube',
origin_y = 0.5,
texture = 'white_cube',
color = color.white,
highlight_color = color.lime)
app = Ursina()
for z in range(8):
for x in range(8):
voxel = Voxel(position = (x,0,z))
player = FirstPersonController()
app.run()