26 lines
658 B
Python
26 lines
658 B
Python
# -*-coding:utf-8 -*- #
|
|
# ---------------------------------------------------------------------------
|
|
# ProjectName: Game_project
|
|
# FileName: pageconf.py
|
|
# Author: Zhi_yuan
|
|
# Datetime: 2026/8/7 下午9:34
|
|
# Description:
|
|
# ---------------------------------------------------------------------------
|
|
import pygame
|
|
|
|
|
|
class Page:
|
|
def __init__(self):
|
|
# pygame初始化
|
|
pygame.init()
|
|
# 音乐模块初始化
|
|
pygame.mixer.init()
|
|
# 大小设置
|
|
size = (800, 600)
|
|
screen = pygame.display.set_mode(size)
|
|
pygame.display.set_caption("New_game")
|
|
|
|
|
|
if __name__ == "__main__":
|
|
Page()
|