Scan to open on your phone
Point a camera at the QR code - it opens this exact paste, no app needed.
https://codepastes.com/zzgs1emkhrbhdqjfsin-tituloPlain Text
from ursina import *
app = Ursina()
# Suelo
ground = Entity(
model='plane',
scale=(50,1,50),
texture='grass',
texture_scale=(50,50),
collider='box'
)
# Arthur
arthur = Entity(
model='cube',
color=color.blue,
scale=(1,2,1),
position=(0,1,0)
)
# Sol
sun = DirectionalLight()
sun.look_at(Vec3(1,-1,-1))
# Cámara
camera.position = (0,10,-15)
camera.rotation_x = 30
mensaje = Text(
text='Arthur Morgan',
origin=(0,0),
scale=2,
y=.45
)
velocidad = 5
def update():
if held_keys['w']:
arthur.z += velocidad * time.dt
if held_keys['s']:
arthur.z -= velocidad * time.dt
if held_keys['a']:
arthur.x -= velocidad * time.dt
if held_keys['d']:
arthur.x += velocidad * time.dt
app.run()780 chars · codepastes.com