minecraft lite
minecraft lite
import random
# Constants
SCREEN_WIDTH = 800
SCREEN_HEIGHT = 600
BLOCK_SIZE = 40
WORLD_WIDTH = SCREEN_WIDTH // BLOCK_SIZE
WORLD_HEIGHT = SCREEN_HEIGHT // BLOCK_SIZE
# Colors
BACKGROUND_COLOR = (135, 206, 235) # Sky blue background
BLOCK_COLOR = (34, 139, 34) # Grass block color
PLAYER_COLOR = (255, 0, 0) # Red player color
# Initialize pygame
pygame.init()
# Player setup
player_x, player_y = WORLD_WIDTH // 2, WORLD_HEIGHT // 2
player_speed = 2
# Quit pygame
pygame.quit()