A fast 2D and 3D game engine — TypeScript SDK, C++/WebAssembly core, visual editor. Ship one project to web, desktop, WeChat MiniGames, playable ads, and native Android / iOS.
TypeScript 2d-game-engine3d3d-game-engineandroidcppecsgame-editorgame-enginegamedeviostypescriptwebassemblywebglwebgpuwechat-minigame
chore: add community governance files and GitHub templates
esengine0ed38cb3f113
diff --git a/.github/ISSUE_TEMPLATE/bug.yml b/.github/ISSUE_TEMPLATE/bug.ymlnew file mode 100644index 000000000..b367fc0b2--- /dev/null+++ b/.github/ISSUE_TEMPLATE/bug.yml@@ -0,0 +1,96 @@+name: Bug Report+description: Report a bug in ESEngine+title: "[Bug]: "+labels: ["bug"]+body:+ - type: markdown+ attributes:+ value: |+ Thank you for reporting a bug! Please fill in the details below.++ - type: input+ id: version+ attributes:+ label: ESEngine Version+ description: Editor version or SDK version+ placeholder: "e.g., v0.5.0"+ validations:+ required: true++ - type: dropdown+ id: component+ attributes:+ label: Component+ description: Which part of ESEngine is affected?+ options:+ - Editor+ - SDK / Runtime+ - WASM / Renderer+ - Build Pipeline+ - WeChat MiniGame+ - Playable Ads+ - Documentation+ - Other+ validations:+ required: true++ - type: textarea+ id: description+ attributes:+ label: Description+ description: A clear description of the bug+ validations:+ required: true++ - type: textarea+ id: steps+ attributes:+ label: Steps to Reproduce+ description: How can we reproduce this issue?+ placeholder: |+ 1. Open the editor+ 2. Create a new scene+ 3. Add a Sprite component+ 4. ...+ validations:+ required: true++ - type: textarea+ id: expected+ attributes:+ label: Expected Behavior+ description: What did you expect to happen?+ validations:+ required: true++ - type: textarea+ id: actual+ attributes:+ label: Actual Behavior+ description: What actually happened?+ validations:+ required: true++ - type: input+ id: os+ attributes:+ label: Operating System+ placeholder: "e.g., macOS 15.0, Windows 11"++ - type: input+ id: browser+ attributes:+ label: Browser (if applicable)+ placeholder: "e.g., Chrome 120"++ - type: textarea+ id: logs+ attributes:+ label: Logs / Screenshots+ description: Paste any relevant error logs or attach screenshots++ - type: textarea+ id: additional+ attributes:+ label: Additional Context+ description: Any other information that might helpdiff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.ymlnew file mode 100644index 000000000..c11bc813a--- /dev/null+++ b/.github/ISSUE_TEMPLATE/config.yml@@ -0,0 +1,8 @@+blank_issues_enabled: true+contact_links:+ - name: Discord+ url: https://discord.gg/sAX6PXZ9+ about: Join our Discord for questions and discussions+ - name: QQ Group (481923584)+ url: https://qm.qq.com/q/BONa5LXQ0U+ about: Join our QQ group for Chinese-speaking communitydiff --git a/.github/ISSUE_TEMPLATE/feature.yml b/.github/ISSUE_TEMPLATE/feature.ymlnew file mode 100644index 000000000..e353e83dc--- /dev/null+++ b/.github/ISSUE_TEMPLATE/feature.yml@@ -0,0 +1,54 @@+name: Feature Request+description: Suggest a new feature or improvement+title: "[Feature]: "+labels: ["enhancement"]+body:+ - type: markdown+ attributes:+ value: |+ Thank you for your suggestion! Please describe the feature you'd like to see.++ - type: dropdown+ id: component+ attributes:+ label: Component+ description: Which part of ESEngine does this relate to?+ options:+ - Editor+ - SDK / Runtime+ - WASM / Renderer+ - Build Pipeline+ - WeChat MiniGame+ - Playable Ads+ - Documentation+ - Other+ validations:+ required: true++ - type: textarea+ id: problem+ attributes:+ label: Problem or Use Case+ description: What problem does this feature solve? What's your use case?+ validations:+ required: true++ - type: textarea+ id: solution+ attributes:+ label: Proposed Solution+ description: How would you like this to work?+ validations:+ required: true++ - type: textarea+ id: alternatives+ attributes:+ label: Alternatives Considered+ description: Any alternative solutions or workarounds you've considered?++ - type: textarea+ id: additional+ attributes:+ label: Additional Context+ description: Any other context, mockups, or examplesdiff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.mdnew file mode 100644index 000000000..e19c85efe--- /dev/null+++ b/.github/PULL_REQUEST_TEMPLATE.md@@ -0,0 +1,22 @@+## Description++<!-- What does this PR do? Why is it needed? -->++## Changes++<!-- List the main changes -->++-++## Testing++<!-- How did you test these changes? -->++-++## Checklist++- [ ] Code follows the project style guidelines+- [ ] Changes build successfully (`node build-tools/cli.js build -t all`)+- [ ] Self-reviewed the code changes+- [ ] Commit messages follow the convention (`type: subject`)diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.mdnew file mode 100644index 000000000..a226daa87--- /dev/null+++ b/CODE_OF_CONDUCT.md@@ -0,0 +1,45 @@+# Contributor Covenant Code of Conduct++## Our Pledge++We as members, contributors, and leaders pledge to make participation in our+community a positive experience for everyone, regardless of background or identity.++## Our Standards++Examples of behavior that contributes to a positive environment:++- Using welcoming and inclusive language+- Being respectful of differing viewpoints and experiences+- Gracefully accepting constructive criticism+- Focusing on what is best for the community+- Showing empathy towards other community members++Examples of unacceptable behavior:++- Trolling, insulting or derogatory comments, and personal attacks+- Public or private harassment+- Publishing others' private information without explicit permission+- Other conduct which could reasonably be considered inappropriate in a professional setting++## Enforcement Responsibilities++Community leaders are responsible for clarifying and enforcing our standards of+acceptable behavior and will take appropriate and fair corrective action in+response to any behavior that they deem inappropriate or harmful.++## Scope++This Code of Conduct applies within all community spaces, and also applies when+an individual is officially representing the community in public spaces.++## Enforcement++Instances of unacceptable behavior may be reported to the project team at+**[email protected]**. All complaints will be reviewed and investigated+promptly and fairly.++## Attribution++This Code of Conduct is adapted from the [Contributor Covenant](https://www.contributor-covenant.org/),+version 2.1.diff --git a/CONTRIBUTING.md b/CONTRIBUTING.mdnew file mode 100644index 000000000..d3d685fc4--- /dev/null+++ b/CONTRIBUTING.md@@ -0,0 +1,114 @@+# Contributing to ESEngine++Thank you for your interest in contributing to ESEngine! This guide will help you get started.++## Development Environment++### Prerequisites++- **Node.js** >= 18+- **pnpm** >= 8+- **Emscripten** >= 3.1 (for C++/WASM builds)+- **Rust** >= 1.75 (for Tauri editor)++### Setup++```bash+git clone https://github.com/esengine/microes.git+cd microes+```++### Build Commands++```bash+# Full build (WASM + SDK + sync to editor)+node build-tools/cli.js build -t all++# SDK only+node build-tools/cli.js build -t sdk++# Core WASM only+node build-tools/cli.js build -t web++# Debug build+node build-tools/cli.js build -t web -d++# Watch mode+node build-tools/cli.js watch -t web++# Run editor+cd desktop && npm run dev+```++## Making Changes++### Branch Naming++Create a branch from `master` with a descriptive name:++```+feat/prefab-system+fix/transform-calculation+docs/update-readme+```++### Commit Convention++We follow a strict commit message format:++```+<type>: <subject>+```++| Type | Description |+|------|-------------|+| `feat` | New feature |+| `fix` | Bug fix |+| `docs` | Documentation only |+| `style` | Code style (formatting, no logic change) |+| `refactor` | Code refactoring |+| `perf` | Performance improvement |+| `test` | Add or update tests |+| `chore` | Build, config, tooling changes |++**Rules:**+- Write commit messages in English+- Use lowercase for the subject, no period at the end+- Use imperative mood (e.g., "add feature" not "added feature")+- Keep subject under 72 characters++### Code Style++- **C++**: See naming conventions and formatting rules in `CLAUDE.md`+- **TypeScript**: Strict mode, use `defineComponent()` and `defineSystem()`+- **Comments**: Code should be self-documenting. Only add comments for non-obvious logic.++## Pull Request Process++1. Fork the repository and create your branch from `master`+2. Make your changes, following the code style guidelines+3. Test your changes locally (build, run editor, preview)+4. Push your branch and open a Pull Request+5. Fill in the PR template with a clear description+6. Wait for review — maintainers may request changes++## Reporting Issues++When reporting a bug, please include:++- ESEngine version (editor version or SDK version)+- Operating system and browser+- Steps to reproduce the issue+- Expected vs actual behavior+- Screenshots or error logs if applicable++For feature requests, describe the use case and the desired behavior.++## Community++- [Discord](https://discord.gg/sAX6PXZ9)+- [QQ Group: 481923584](https://qm.qq.com/q/BONa5LXQ0U)++## License++By contributing, you agree that your contributions will be licensed under the [MIT License](LICENSE).diff --git a/LICENSE b/LICENSEnew file mode 100644index 000000000..f4e0d8206--- /dev/null+++ b/LICENSE@@ -0,0 +1,21 @@+MIT License++Copyright (c) 2024-present ESEngine Team++Permission is hereby granted, free of charge, to any person obtaining a copy+of this software and associated documentation files (the "Software"), to deal+in the Software without restriction, including without limitation the rights+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell+copies of the Software, and to permit persons to whom the Software is+furnished to do so, subject to the following conditions:++The above copyright notice and this permission notice shall be included in all+copies or substantial portions of the Software.++THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE+SOFTWARE.diff --git a/README.md b/README.mdindex ad14d3f83..b97b3775c 100644--- a/README.md+++ b/README.md@@ -4,6 +4,9 @@**A lightweight 2D game engine for web and WeChat MiniGames**+[](https://github.com/esengine/microes/actions/workflows/build.yml)+[](LICENSE)+[](https://www.npmjs.com/package/esengine)[](https://isocpp.org/)[]()@@ -74,3 +77,11 @@ Full documentation: [esengine.github.io/microes](https://esengine.github.io/micr- [ECS Architecture](https://esengine.github.io/microes/core-concepts/ecs/)- [Components](https://esengine.github.io/microes/core-concepts/components/)- [Systems](https://esengine.github.io/microes/core-concepts/systems/)++## Contributing++We welcome contributions! Please read the [Contributing Guide](CONTRIBUTING.md) before submitting a Pull Request.++## License++ESEngine is [MIT licensed](LICENSE).diff --git a/SECURITY.md b/SECURITY.mdnew file mode 100644index 000000000..263b71687--- /dev/null+++ b/SECURITY.md@@ -0,0 +1,34 @@+# Security Policy++## Supported Versions++| Version | Supported |+|---------|-----------|+| 0.5.x | Yes |+| < 0.5 | No |++## Reporting a Vulnerability++If you discover a security vulnerability in ESEngine, please report it responsibly.++**Do NOT open a public GitHub issue for security vulnerabilities.**++Instead, please use one of the following methods:++1. **GitHub Security Advisories**: [Report a vulnerability](https://github.com/esengine/microes/security/advisories/new)+2. **Email**: Send details to **[email protected]**++### What to Include++- Description of the vulnerability+- Steps to reproduce+- Potential impact+- Suggested fix (if any)++### Response Timeline++- **Acknowledgment**: Within 48 hours+- **Initial assessment**: Within 1 week+- **Fix release**: Depends on severity, typically within 2 weeks for critical issues++We appreciate your help in keeping ESEngine secure.