Answer the question
In order to leave comments, you need to log in
How to compile a file into an exe using Pyinstaller?
I made my project (minecraft) on Ursina Engine in Python:
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,
model = "cube",
origin_y = 0.5,
texture = "white_cube",
color = color.white,
highlight_color = color.lime)
def input(self, key):
if self.hovered:
if key == "left mouse down":
voxel = Voxel(position = self.position + mouse.normal)
if key == "right mouse down":
destroy(self)
app = Ursina()
for z in range(20):
for x in range(20):
voxel = Voxel(position = (x,0,z))
player = FirstPersonController()
window.fullscreen = True
window.color = color.black
window.fullscreen_size = 1920,1080
app.run()
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question