개인 자료란 (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/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

/files/thumbnails/762/770/003/262x150.crop.jpg?20240418073724

레드스톤

T.B.H (고민중독) | 노트블럭 버전 | NoteBlock Cover [한국어 영어 중국어 가사 추가]

노트블럭전문가

2024-04-18

0

/files/thumbnails/218/767/003/262x150.crop.jpg?20240412130213

레드스톤

우리의 꿈 - 원피스 오프닝

노트블럭전문가

2024-04-12

0

/files/thumbnails/505/766/003/262x150.crop.jpg?20240411122306

레드스톤

기동전사 건담 수성의 마녀 | 노트블럭 커버 1

노트블럭전문가

2024-04-11

1