HAN1110
대표칭호 없음
HAN1110 9899e780ba984d89824a90ee8deb7cb2
이해도 | 프로그램 |
---|
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()
로 된 코드가
강좌에서는 잘 작동합니다만 실제 상황에서는 작도 안하더라고요
어떻게 해야하나요?
HAN1110
2021.07.09작이 아니라 작동 입니다;;