File "<python-input-0>", line 1
pip install ursina
^^^^^^^
SyntaxError: invalid syntax
>>> from ursina import *
Traceback (most recent call last):
File "<python-input-1>", line 1, in <module>
from ursina import *
ModuleNotFoundError: No module named 'ursina'
>>> from [Link].first_person_controller import FirstPersonController
Traceback (most recent call last):
File "<python-input-2>", line 1, in <module>
from [Link].first_person_controller import FirstPersonController
ModuleNotFoundError: No module named 'ursina'
>>> app = Ursina()
Traceback (most recent call last):
File "<python-input-3>", line 1, in <module>
app = Ursina()
^^^^^^
NameError: name 'Ursina' is not defined
>>> grass_texture = load_texture('assets/grass_block.png')
Traceback (most recent call last):
File "<python-input-4>", line 1, in <module>
grass_texture = load_texture('assets/grass_block.png')
^^^^^^^^^^^^
NameError: name 'load_texture' is not defined
>>> stone_texture = load_texture('assets/stone_block.png')
Traceback (most recent call last):
File "<python-input-5>", line 1, in <module>
stone_texture = load_texture('assets/stone_block.png')
^^^^^^^^^^^^
NameError: name 'load_texture' is not defined
>>> brick_texture = load_texture('assets/brick_block.png')
Traceback (most recent call last):
File "<python-input-6>", line 1, in <module>
brick_texture = load_texture('assets/brick_block.png')
^^^^^^^^^^^^
NameError: name 'load_texture' is not defined
>>> dirt_texture = load_texture('assets/dirt_block.png')
Traceback (most recent call last):
File "<python-input-7>", line 1, in <module>
dirt_texture = load_texture('assets/dirt_block.png')
^^^^^^^^^^^^
NameError: name 'load_texture' is not defined
>>> sky_texture = load_texture('assets/[Link]')
Traceback (most recent call last):
File "<python-input-8>", line 1, in <module>
sky_texture = load_texture('assets/[Link]')
^^^^^^^^^^^^
NameError: name 'load_texture' is not defined
>>> arm_texture = load_texture('assets/arm_texture.png')
Traceback (most recent call last):
File "<python-input-9>", line 1, in <module>
arm_texture = load_texture('assets/arm_texture.png')
^^^^^^^^^^^^
NameError: name 'load_texture' is not defined
>>> punch_sound = Audio('assets/punch_sound',loop = False, autoplay = False)
Traceback (most recent call last):
File "<python-input-10>", line 1, in <module>
punch_sound = Audio('assets/punch_sound',loop = False, autoplay = False)
^^^^^
NameError: name 'Audio' is not defined
>>> block_pick = 1
>>> class Voxel(Button):
... def __init__(self, position = (0,0,0), texture = grass_texture):
... super().__init__(
... parent = scene,
... super().__init__(
... parent = scene,
... parent = scene,
... position = position,k',
... model = 'assets/block',
... origin_y = 0.5,
... texture = texture,r(0,0,[Link](0.9,1)),
... color = [Link](0,0,[Link](0.9,1)),
... scale = 0.5)
... for z in range(20):20):fabs.first_person_controller import
FirstPersonController
... for x in range(20):osition = (x,0,z))
... voxel = Voxel(position = (x,0,z))controller import
FirstPersonController
... from [Link].first_person_controller import
FirstPersonController
... player = FirstPersonController()
... def input(self,key):
... if [Link]:eft mouse down':l = Voxel(position =
[Link] + [Link], texture = gr\... if key ==
'left mouse down':
... punch_sound.play()
... if block_pick == 1: voxel = Voxel(position =
[Link] + [Link], texture = gr\... if
block_pick == 2: voxel = Voxel(position = [Link] + [Link], texture =
stass_texture))
ass_texture) if block_pick == 2: voxel = Voxel(position =
[Link] + [Link], texture = st\... if
block_pick == 2: voxel = Voxel(position = [Link] + [Link], texture =
st\ if block_pick == 3: voxel = Voxel(position = [Link] +
[Link], texture = br\one_texture)
... punch_sound.play()
one_texture)
if block_pick == 3: voxel = Voxel(position = [Link] +
[Link], texture = br\... if block_pick == 3:
voxel = Voxel(position = [Link] + [Link], texture = br\
if block_pick == 4: voxel = Voxel(position = [Link] + [Link], t...
ick_texture)
... def update():
ick_texture)
if block_pick == 4: voxel = Voxel(position = [Link] + [Link],
t... ... if block_pick == 4: voxel =
Voxel(position = [Link] + [Link], texture = di\
... if ke...
Traceback (most recent call last):
File "<python-input-12>", line 1, in <module>
class Voxel(Button):
^^^^^^
NameError: name 'Button' is not defined
>>> if held_keys['left mouse'] or held_keys['right mouse']:
... [Link]()
... else:
... [Link]()
...
File "<python-input-13>", line 3
else:
^^^^
SyntaxError: invalid syntax
>>> if held_keys['1']: block_pick = 1
... if held_keys['2']: block_pick = 2
... if held_keys['3']: block_pick = 3
... if held_keys['4']: block_pick = 4
... class Sky(Entity):
... def __init__(self):
... super().__init__(
... parent = scene,
... model = 'sphere',
... texture = sky_texture,
... scale = 150,
... double_sided = True)
... class Hand(Entity):
... def __init__(self):
... super().__init__(
... parent = [Link], # This 3D space for Our UI and 2D space for
our camera
... model = 'assets/arm',
... texture = arm_texture,
... scale = 0.2,
... rotation = Vec3(150,-10,0), #vec3 is represent 3D space and the
parameters are for position(x,y,z)
... position = Vec2(0.4,-0.6)) #vec2 is represent 2D space and the
parameters are for position(x,y,z)
...
Traceback (most recent call last):
File "<python-input-14>", line 1, in <module>
if held_keys['1']: block_pick = 1
^^^^^^^^^
NameError: name 'held_keys' is not defined
Traceback (most recent call last):
File "<python-input-14>", line 2, in <module>
if held_keys['2']: block_pick = 2
^^^^^^^^^
NameError: name 'held_keys' is not defined
Traceback (most recent call last):
File "<python-input-14>", line 3, in <module>
if held_keys['3']: block_pick = 3
^^^^^^^^^
NameError: name 'held_keys' is not defined
Traceback (most recent call last):
File "<python-input-14>", line 4, in <module>
if held_keys['4']: block_pick = 4
^^^^^^^^^
NameError: name 'held_keys' is not defined
Traceback (most recent call last):
File "<python-input-14>", line 5, in <module>
class Sky(Entity):
^^^^^^
NameError: name 'Entity' is not defined
>>> def active(self):
... [Link] = Vec2(0.3,-0.5)
...
>>> def passive(self):
... [Link] = Vec2(0.4,-0.6)
... from ursina import *
... from [Link].first_person_controller import FirstPersonController
...
File "<python-input-16>", line 3
from ursina import *
^
SyntaxError: import * only allowed at module level
>>> app = Ursina()
Traceback (most recent call last):
File "<python-input-17>", line 1, in <module>
app = Ursina()
^^^^^^
NameError: name 'Ursina' is not defined
>>> grass_texture = load_texture('assets/grass_block.png')
Traceback (most recent call last):
File "<python-input-18>", line 1, in <module>
grass_texture = load_texture('assets/grass_block.png')
^^^^^^^^^^^^
NameError: name 'load_texture' is not defined
>>> stone_texture = load_texture('assets/stone_block.png')
Traceback (most recent call last):
File "<python-input-19>", line 1, in <module>
stone_texture = load_texture('assets/stone_block.png')
^^^^^^^^^^^^
NameError: name 'load_texture' is not defined
>>> brick_texture = load_texture('assets/brick_block.png')
Traceback (most recent call last):
File "<python-input-20>", line 1, in <module>
brick_texture = load_texture('assets/brick_block.png')
^^^^^^^^^^^^
NameError: name 'load_texture' is not defined
>>> dirt_texture = load_texture('assets/dirt_block.png')
Traceback (most recent call last):
File "<python-input-21>", line 1, in <module>
dirt_texture = load_texture('assets/dirt_block.png')
^^^^^^^^^^^^
NameError: name 'load_texture' is not defined
>>> sky_texture = load_texture('assets/[Link]')
Traceback (most recent call last):
File "<python-input-22>", line 1, in <module>
sky_texture = load_texture('assets/[Link]')
^^^^^^^^^^^^
NameError: name 'load_texture' is not defined
>>> arm_texture = load_texture('assets/arm_texture.png')
Traceback (most recent call last):
File "<python-input-23>", line 1, in <module>
arm_texture = load_texture('assets/arm_texture.png')
^^^^^^^^^^^^
NameError: name 'load_texture' is not defined
>>> punch_sound = Audio('assets/punch_sound',loop = False, autoplay = False)
Traceback (most recent call last):
File "<python-input-24>", line 1, in <module>
punch_sound = Audio('assets/punch_sound',loop = False, autoplay = False)
^^^^^
NameError: name 'Audio' is not defined
>>> block_pick = 1
>>>
>>> window.fps_counter.enabled = False #To Disable the FPS Counter
Traceback (most recent call last):
File "<python-input-27>", line 1, in <module>
window.fps_counter.enabled = False #To Disable the FPS Counter
^^^^^^
NameError: name 'window' is not defined
>>> window.exit_button.visible = False #To Remove the exit(close) Button
Traceback (most recent call last):
File "<python-input-28>", line 1, in <module>
window.exit_button.visible = False #To Remove the exit(close) Button
^^^^^^
NameError: name 'window' is not defined
>>>
>>> def update():
... global block_pick
...
>>> if held_keys['left mouse'] or held_keys['right mouse']:
... [Link]()
... else:
... [Link]()
...
File "<python-input-31>", line 3
else:
^^^^
SyntaxError: invalid syntax
>>> if held_keys['1']: block_pick = 1
... if held_keys['2']: block_pick = 2
... if held_keys['3']: block_pick = 3
... if held_keys['4']: block_pick = 4
...
Traceback (most recent call last):
File "<python-input-32>", line 1, in <module>
if held_keys['1']: block_pick = 1
^^^^^^^^^
NameError: name 'held_keys' is not defined
Traceback (most recent call last):
File "<python-input-32>", line 2, in <module>
if held_keys['2']: block_pick = 2
^^^^^^^^^
NameError: name 'held_keys' is not defined
Traceback (most recent call last):
File "<python-input-32>", line 3, in <module>
if held_keys['3']: block_pick = 3
^^^^^^^^^
NameError: name 'held_keys' is not defined
Traceback (most recent call last):
File "<python-input-32>", line 4, in <module>
if held_keys['4']: block_pick = 4
^^^^^^^^^
NameError: name 'held_keys' is not defined
>>> class Voxel(Button):
... def __init__(self, position = (0,0,0), texture = grass_texture):
... super().__init__(
... parent = scene,
... position = position,
... model = 'assets/block',
... origin_y = 0.5,
... texture = texture,
... color = [Link](0,0,[Link](0.9,1)),
... scale = 0.5)
...
Traceback (most recent call last):
File "<python-input-33>", line 1, in <module>
class Voxel(Button):
^^^^^^
NameError: name 'Button' is not defined
>>> def input(self,key):
... if [Link]:
... if key == 'left mouse down':
... punch_sound.play()
... if block_pick == 1: voxel = Voxel(position = [Link] +
[Link], texture = grass_texture)
... if block_pick == 2: voxel = Voxel(position = [Link] +
[Link], texture = stone_texture)
... if block_pick == 3: voxel = Voxel(position = [Link] +
[Link], texture = brick_texture)
... if block_pick == 4: voxel = Voxel(position = [Link] +
[Link], texture = dirt_texture)
...
>>> if key == 'right mouse down':
... punch_sound.play()
... destroy(self)
...
Traceback (most recent call last):
File "<python-input-35>", line 1, in <module>
if key == 'right mouse down':
^^^
NameError: name 'key' is not defined
>>> class Sky(Entity):
... def __init__(self):
... super().__init__(
... parent = scene,
... model = 'sphere',
... texture = sky_texture,
... scale = 150,
... double_sided = True)
...
Traceback (most recent call last):
File "<python-input-36>", line 1, in <module>
class Sky(Entity):
^^^^^^
NameError: name 'Entity' is not defined
>>> class Hand(Entity):
... def __init__(self):
... super().__init__(
... parent = [Link],
... model = 'assets/arm',
... texture = arm_texture,
... scale = 0.2,
... rotation = Vec3(150,-10,0),
... position = Vec2(0.4,-0.6))
...
Traceback (most recent call last):
File "<python-input-37>", line 1, in <module>
class Hand(Entity):
^^^^^^
NameError: name 'Entity' is not defined
>>> def active(self):
... [Link] = Vec2(0.3,-0.5)
...
>>> def passive(self):
... [Link] = Vec2(0.4,-0.6)
...
>>> for z in range(20):
... for x in range(20):
... voxel = Voxel(position = (x,0,z))
...
Traceback (most recent call last):
File "<python-input-40>", line 3, in <module>
voxel = Voxel(position = (x,0,z))
^^^^^
NameError: name 'Voxel' is not defined
>>> player = FirstPersonController()
Traceback (most recent call last):
File "<python-input-41>", line 1, in <module>
player = FirstPersonController()
^^^^^^^^^^^^^^^^^^^^^
NameError: name 'FirstPersonController' is not defined
>>> sky = Sky()
Traceback (most recent call last):
File "<python-input-42>", line 1, in <module>
sky = Sky()
^^^
NameError: name 'Sky' is not defined
>>> hand = Hand()
Traceback (most recent call last):
File "<python-input-43>", line 1, in <module>
hand = Hand()
^^^^
NameError: name 'Hand' is not defined
>>>
>>> [Link]()
Traceback (most recent call last):
File "<python-input-45>", line 1, in <module>
[Link]()
^^^