不知道大家在编程(不管是c++,python,java。。。)时有没有突发奇想自己能不能编一个我的世界,但不会编,直接给代码:
import pygame from ursina import * from ursina.prefabs.first_person_controller import FirstPersonController app = Ursina() a = [color.white, color.gray, color.green, color.gray, color.blue, color.gold, color.brown, color.lime, color.green, color.brown] window.fps_counter.enabled = False ming = 10 pygame.init() ming_fonk = pygame.font.Font(None, 50) ming_surf = ming_fonk.render(str(ming), 1, (0, 0, 0)) ming_pos = [10, 10] b = ["bing.png", "shitou.png", 'grass.png', "jiyan.png", "shuibing.png", "nangua.png", "mutou.png", "tnt.png", "shuye.png", "tu.png"] asd = 2 pygame.event.get() class Hand(Entity): def __init__(self): super().__init__( parent=camera.ui, model="cub