Python Ursina: minecraft style building in python
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)
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
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
func = lambda : self._doOpenWindow(
File "/opt/virtualenvs/python3/lib/python3.8/site-packages/direct/showbase/ShowBase.py", line 818, in _doOpenWindow
self.makeDefaultPipe()
that's replit's fault.... no idea how to fix it as it worked before. @Boyanhwang
Nice job!
This file cannot be displayed:
try refreshing it, its working for me and I have no idea why it would be doing [email protected]
sounds good thank for the [email protected]
thanks for that what? im confused... @samhtml
It sent me a error :
color = color.color(0,0,random.uniform(0.9,1)), is not defined
because repelit not support
it takes years to load
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
It doesnt load for me at all
@SeamusDonahue
how? does it give an error or does repl.it refused to load [email protected]
it could not work and it came up with loads of errors
It works for me, and the errors have to do with the ursina engine not finding things like an audio device @Cyberstar007
noice