This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pygame | |
import random | |
import numpy as np | |
class Minecraft2D: | |
def __init__(self): | |
pygame.init() | |
self.width, self.height = 1200, 800 | |
self.screen = pygame.display.set_mode((self.width, self.height)) | |
pygame.display.set_caption("2D Minecraft Clone") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pygame | |
import random | |
import math | |
# Инициализация Pygame | |
pygame.init() | |
# Настройки экрана | |
WIDTH, HEIGHT = 800, 600 | |
screen = pygame.display.set_mode((WIDTH, HEIGHT)) |