Skip to content
Sign upLog in
← Back to Community

Python Ursina: minecraft style building in python

Profile icon
SeamusDonahue

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)

Voters
Profile icon
UzalaEnciso
Profile icon
nooby-xviii
Profile icon
AlieksaMazitsh
Profile icon
TomasVargas-Ber
Profile icon
FlamingWombat
Profile icon
SeanyaeDawson
Profile icon
samhtml
Profile icon
YT10cato
Profile icon
ShadowWalker258
Profile icon
kylegamerlol
Comments
hotnewtop
Profile icon
mfacts

because repelit not support

Profile icon
Boyanhwang

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()

Profile icon
SeamusDonahue

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

@Boyanhwang

Profile icon
TheCheeseCoder

noice

Profile icon
JBloves27

Nice job!

Profile icon
Cyberstar007

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

Profile icon
SeamusDonahue

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

@Cyberstar007

Profile icon
samhtml

Invalid image url

Profile icon
SeamusDonahue

try refreshing it, its working for me and I have no idea why it would be doing [email protected]

Profile icon
samhtml

sounds good thank for the [email protected]

Profile icon
SeamusDonahue

thanks for that what? im confused...

@samhtml

Profile icon
[deleted]

It sent me a error :
color = color.color(0,0,random.uniform(0.9,1)), is not defined

Profile icon
0ctavias

it takes years to load

Profile icon
SeamusDonahue

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

Profile icon
prateeknair10

It doesnt load for me at all


@SeamusDonahue

Profile icon
SeamusDonahue

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