Metadata-Version: 2.4
Name: simgame
Version: 0.2.5
Summary: A lightweight 2D game engine based on SDL2.
Description-Content-Type: text/markdown

# SimGame
> - **一个基于SDL2的轻量化 2D 游戏引擎 🎮**
> - **新增 2D 绘图功能**
> - **优化了画圆的Bug**
> - **可绘制方形，圆形，线**
## 安装：
```bash
pip install simgame==0.2.5
```
## 快速上手：
```python
import simgame #导入simgame
ctx = simgame.create_window(title="SimGame",size=(800,600)) #创建上下文对象
running = True #设置游戏是否运行
while running: #开启游戏主循环 
    for event in ctx.input.get_events(): #检测所有事件
        if event == ctx.input.QUIT: #检测到退出事件
            running = False #退出窗口
    ctx.screen.clear() #清空窗口
    ctx.screen.fill((255,28,0)) #将窗口涂成红色
    ctx.draw.rect((0,0,100,100),(0,255,100)) #画一个绿色的空心方块
    ctx.draw.circle((400,300),50,(100,100,100),filled=True) #画一个灰色的实心圆
    ctx.draw.line((0,0),(400,300),(0,0,0)) #画一个连接(0,0)和(400,300)的线
ctx.quit() #清理内存
```
## 关于作者（About）:
> - **SimGame是一个轻量化的 2D 游戏引擎**
> - **制作人：钴蓝工作室🔵**
> - **版本：0.2.5**
