pygame UI framework

It is very convenient to use the PyGame module in Python to develop games

However, pygame does not have some UI systems in some mature game engines, and it is very inconvenient to interact with UI elements

In the project, a lightweight ui framework is specially made here for a brief introduction

"""
PyGameUI  主要是鼠标点击 UI元素事件  其他事件可以自行扩展

主要演示三个UI面板  开始界面 游戏界面 奖励界面  其他可以自行扩展

开始界面点击Logo进入游戏
游戏中 按下K键结束游戏 进入奖励页面
奖励界面点击Logo返回开始页面


GameState 枚举游戏状态
GameState开始
Runing游戏中
Ending游戏结束

"""

Guess you like

Origin blog.csdn.net/zhangzhaoyuxunlei/article/details/121265745