Skip to content

Commit ef02319

Browse files
Copilotwysaid
andauthored
Add demo template selection with 31 categorized examples, smart file overwrite protection, and git stash integration (#12)
* Initial plan * Add demo template selection feature with 31 demos Co-authored-by: wysaid <1430725+wysaid@users.noreply.github.com> * Update documentation for demo template feature Co-authored-by: wysaid <1430725+wysaid@users.noreply.github.com> * Address code review feedback - improve error handling and type safety Co-authored-by: wysaid <1430725+wysaid@users.noreply.github.com> * Feature complete: Demo template selection with 31+ templates Co-authored-by: wysaid <1430725+wysaid@users.noreply.github.com> * Add file content comparison and user confirmation for template creation Co-authored-by: wysaid <1430725+wysaid@users.noreply.github.com> * Fix code review issues - proper i18n, flag propagation, and JSDoc Co-authored-by: wysaid <1430725+wysaid@users.noreply.github.com> * Fix issues: remove unwanted file, respect overwriteAll for directories, add git stash support Co-authored-by: wysaid <1430725+wysaid@users.noreply.github.com> * Fix code review issue - improve stdout type handling in git stash Co-authored-by: wysaid <1430725+wysaid@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: wysaid <1430725+wysaid@users.noreply.github.com>
1 parent dbb6302 commit ef02319

41 files changed

Lines changed: 11586 additions & 47 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@ build/
33
*.vsix
44
package-lock.json
55
/dist
6-
/out
6+
/out
7+
_codeql_detected_source_root

CHANGELOG.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,19 @@ All notable changes to the "ege" extension will be documented in this file.
44

55
Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how to structure this file.
66

7+
## Unreleased
8+
9+
- **New Feature**: 新增 31+ 个示例模板选择功能
10+
- 创建新项目时可以从多种示例模板中选择
11+
- 包含基础入门、游戏示例、图形绘制、算法可视化、物理模拟、分形与数学、图像处理、摄像头等 8 大类
12+
- 支持中英文双语界面
13+
- 示例包括:贪吃蛇、俄罗斯方块、五子棋、A*寻路、排序算法可视化、弹球碰撞、Julia集、Mandelbrot集等
14+
- **New Feature**: Added 31+ demo template selection
15+
- Choose from a variety of demo templates when creating a new project
16+
- Includes 8 categories: Basic, Games, Graphics, Algorithms, Physics, Fractals, Image Processing, Camera
17+
- Bilingual support (Chinese and English)
18+
- Demos include: Snake, Tetris, Gomoku, A* Pathfinding, Sorting visualization, Ball collision, Julia Set, Mandelbrot Set, and more
19+
720
## 1.0.3
821

922
- 修正 vscode 项目模板的一些小问题

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,15 @@ A VSCode plugin to help the configuration of [ege](https://xege.org). Enjoy it!
55
## Features
66

77
- Generate `EGE Projects` with single click
8+
- **31+ Demo Templates**: Choose from a variety of demo templates when creating a new project
9+
- Basic: Hello World
10+
- Games: Snake, Tetris, Gomoku, Typing Practice
11+
- Graphics: Star animations, Clock, Lines effects, Fireworks
12+
- Algorithms: A* Pathfinding, Sorting visualization, K-Means clustering, Game of Life
13+
- Physics: Ball collision, Boids simulation, Wave effects
14+
- Fractals: Julia Set, Mandelbrot Set
15+
- Image Processing: Loading, Rotation, Transformations
16+
- Camera: Camera basics, Wave effects
817
- Build and run single cpp files with EGE support.(`graphics.h`)
918
- Add EGE CMake Project Template for `C/C++` source.
1019
- Support MacOS/Linux (By `mingw-w64` and `wine`)

README.zh-CN.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,15 @@
55
## 功能特性
66

77
- 一键生成 `EGE 项目`
8+
- **31+ 示例模板**: 创建新项目时可以从多种示例模板中选择
9+
- 基础入门:Hello World
10+
- 游戏示例:贪吃蛇、俄罗斯方块、五子棋、打字练习
11+
- 图形绘制:星空动画、时钟、变幻线、烟花特效
12+
- 算法可视化:A*寻路算法、排序算法可视化、K-Means聚类、生命游戏
13+
- 物理模拟:弹球碰撞、群集模拟、水波效果
14+
- 分形与数学:Julia集、Mandelbrot集
15+
- 图像处理:加载、旋转、变换
16+
- 摄像头:摄像头基础、水波特效
817
- 构建并运行支持 EGE 的单个 cpp 文件 (`graphics.h`)
918
-`C/C++` 源代码添加 EGE CMake 项目模板
1019
- 支持 MacOS/Linux (通过 `mingw-w64``wine`)

0 commit comments

Comments
 (0)