2
from ursina import *


Entity(model='quad', scale=60, texture='assets/blue_sky')
app = Ursina()

app.run()   # opens a window and starts the game.

when i run the code

the black screen with nothing

2 Answers2

4

I think this is working but it's just that the scale is too big. Usually if the scale is 15, it covers the whole screen, anything above that would just be the same as 15. Also, you should create entities after Ursina(). So, if you don't want to cover the whole screen, this would be your code (Scale can be anywhere between 1 and 15 but not 15):

from ursina import *

app = Ursina()

Entity(model='quad', scale=10, texture='assets/blue_sky')

app.run() # opens a window and starts the game.

The above code is working for me but if it doesn't work for you, I don't know what's wrong...

Nyctophilla
  • 121
  • 4
0

I suspect it actually works. Try with a smaller scale, like 1. Also, entities should be created after Ursina(), since some things will depend on that.

pokepetter
  • 1,383
  • 5
  • 8