개인 자료란 (JE)

  서버 커뮤니티

Profile HAN1110 대표칭호 없음

HAN1110 9899e780ba984d89824a90ee8deb7cb2

Profile

이해도 프로그램 

from ursina import *
from ursina.prefabs.first_person_controller import FirstPersonController

app = Ursina()

player = FirstPersonController()

sky = Entity(
    parent=scene,
    model='sphere',
    texture=load_texture('../Assets/Cube/MoreCube/sky.jpg'),
    scale=2000,
    double_sided=True
)


class Voxel(Button):
    def __init__(self, position=(0, 0, 0), texture='../Assets/Minecraft/Block/stone/stone.png'):
        super().__init__(
            parent=scene,
            position=position,
            model='cube',
            origin_y=0.5,
            texture=texture,
            color=color.color(0, 0, random.uniform(0.9, 1.0)),
            scale=1.0
        )

    def input(self, key):
        if self.hovered:
            if key == 'right mouse down':
                Voxel(position=self.position + mouse.normal, texture='../Assets/Minecraft/Block/stone/stone.png')
            elif key == 'left mouse down':
                destroy(self)


for x in range(20):
    for z in range(20):
        voxel = Voxel(position=(x, 0, z))

app.run()

로 된 코드가

강좌에서는 잘 작동합니다만 실제 상황에서는 작도 안하더라고요

어떻게 해야하나요?

1개의 댓글

HAN1110
2021.07.09

작이 아니라 작동 입니다;;

뉴스 및 창작물
/files/thumbnails/487/784/003/262x150.crop.jpg?20240508233607

모드

Windows Borderless 모드에서 악성코드 발견

학교가기싫다

2024-05-08

1

/files/thumbnails/384/778/003/262x150.crop.jpg?20240512002324

업데이트

마인크래프트 자바 에디션 스냅샷 24w18a

학교가기싫다

2024-05-06

0

/files/thumbnails/855/781/003/262x150.crop.jpg?20240505141129

레드스톤

레이저 클리너

GlassesFilm

2024-05-05

1

/files/thumbnails/576/775/003/262x150.crop.jpg?20240426232553

아티클

이달의 블록: 단단한 진흙

학교가기싫다

2024-04-26

0

/files/thumbnails/115/774/003/262x150.crop.jpg?20240428135129

업데이트

마인크래프트 1.20.5 정식 업데이트

학교가기싫다

2024-04-24

0