Share your repls and programming experiences

← Back to all posts
Python Ursina: minecraft style building in python
h
SeamusDonahue (457)

I have recently discovered an engine called Ursina for python.

It is very easy to use and lets you make 3d games very easily!

I have build an example fallowing this tutorial for building things in a minecraft like fashion

right click to place
left click to destroy

ursina's "cheat sheet" (documentation)
to play audio you need repl.it's lib for that because ursina doesnt recognize any audio device

hope you enjoy, have a nice day

(warning this is pretty laggy on repl.it and the mouse doesn't lock to the center because its on repl.it)

Comments
hotnewtop
Boyanhwang (2)

i got this message lol : :display: loading display module: libtinydisplay.so
:display(warning): Unable to load libtinydisplay.so: No error.
:display: loading display module: libpandadx8.so
:display(warning): Unable to load libpandadx8.so: No error.
:display: loading display module: libpandadx9.so
:display(warning): Unable to load libpandadx9.so: No error.
Known pipe types:
(all display modules loaded.)
Traceback (most recent call last):
File "main.py", line 37, in <module>
app = Ursina()
File "/opt/virtualenvs/python3/lib/python3.8/site-packages/ursina/main.py", line 19, in init
super().init()
File "/opt/virtualenvs/python3/lib/python3.8/site-packages/direct/showbase/ShowBase.py", line 339, in init
self.openDefaultWindow(startDirect = False, props=props)
File "/opt/virtualenvs/python3/lib/python3.8/site-packages/direct/showbase/ShowBase.py", line 1021, in openDefaultWindow
self.openMainWindow(args, **kw)
File "/opt/virtualenvs/python3/lib/python3.8/site-packages/direct/showbase/ShowBase.py", line 1056, in openMainWindow
self.openWindow(
args, **kw)
File "/opt/virtualenvs/python3/lib/python3.8/site-packages/direct/showbase/ShowBase.py", line 766, in openWindow
win = func()
File "/opt/virtualenvs/python3/lib/python3.8/site-packages/direct/showbase/ShowBase.py", line 746, in <lambda>
func = lambda : self._doOpenWindow(
File "/opt/virtualenvs/python3/lib/python3.8/site-packages/direct/showbase/ShowBase.py", line 818, in _doOpenWindow
self.makeDefaultPipe()

SeamusDonahue (457)

that's replit's fault.... no idea how to fix it as it worked before. @Boyanhwang

mfacts (0)

because repelit not support

0ctavias (9)

it takes years to load

SeamusDonahue (457)

Yeah that because repl.it has limited processing power and ursina is doing a lot of things and using a lot of libs that repl has to load @NoahSeiffert

prateeknair10 (0)

It doesnt load for me at all
@SeamusDonahue

SeamusDonahue (457)

how? does it give an error or does repl.it refused to load [email protected]

Cyberstar007 (0)

it could not work and it came up with loads of errors

SeamusDonahue (457)

It works for me, and the errors have to do with the ursina engine not finding things like an audio device @Cyberstar007