KO
|
EN
gitlite — search
Search
#typescript
#ai-agents
#ai
#dsh-plugin
#deepseek-harness
#open-source
#cli
#claude-code
#codex
#developer-tools
#react
#windows
2d-engine
★ 240
Open GitHub ↗
2D Game Engine C++ OpenGL
Download README (.md)
Explore Similar Repositories
simple-bootstrap-5-dashboard
:
Simple Bootstrap 5 Admin Dashboard Template
Dapper.LnskyDB
:
基于Dapper的LINQ扩展,支持Lambda表达式,支持按时间分库分表,也可以自定义分库分表方法,且实体类有T4模版自动生成.省去手写实体类的麻烦。已在实际项目使用
ng-drag-drop
:
Drag & Drop for Angular - based on HTML5 with no external dependencies. :tada:
minetorch
:
Build deep learning applications in a new and easy way.
mauisland
:
MAUIsland 🏝️ is the number 1 controls gallery for .NET MAUI
// repository documentation
Was this content helpful?
★ 0
(0 ratings)
Select Rating:
★
★
★
★
★
Submit Feedback
Recent Feedback
×
Download README
Do you want to download the
README.md
file for
2d-engine
?
Download (.md)
# Requirements - Windows, Linux, or macOS - Git - CMake 3.15 or later - A C++ toolchain for your platform - Internet connection (for first-time build) # Description A 2D platform game engine with: - (static/dynamic/sloped) tile and sprite collision resolution - Keyboard/mouse/joystick support for game and menus A map editor to edit: - 3 layers: - background - foreground - collisions (optional) # Building the Project ## Quick Start (Windows) 1. Clone the repository: ```bash git clone https://github.com/yourusername/2d-engine.git cd 2d-engine ``` 2. Run the build script: ```bash build.bat ``` The script will automatically: - Install vcpkg if not present - Set up the build environment - Build the project in Release mode The executable will be available in `build/engine/Release/`. ## Quick Start (Linux/macOS) ```bash ./build.sh ``` The executable will be available in `build/engine/`. ## Manual Build If you prefer to build manually: 1. Install vcpkg: ```bash git clone https://github.com/microsoft/vcpkg.git cd vcpkg # Windows: ./bootstrap-vcpkg.bat # Linux/macOS: ./bootstrap-vcpkg.sh ``` 2. Set the VCPKG_ROOT environment variable to your vcpkg installation path 3. Create and enter a build directory: ```bash mkdir build cd build ``` 4. Configure and build: ```bash cmake -S . -B build -DCMAKE_TOOLCHAIN_FILE="$VCPKG_ROOT/scripts/buildsystems/vcpkg.cmake" -DCMAKE_BUILD_TYPE=Release cmake --build build --config Release ``` # Runtime Resources - Runtime assets live under `resources/`. - The executable searches in this order: - `ENGINE_RESOURCE_ROOT` - executable-adjacent `resources/` - repo-local `resources/` - legacy relative paths # Controls ## Game - **Movement:** Joy hat, `W/A/S/D` - **Run:** Joy button 2, `M` - **Jump/Swim:** Joy button 0, `N` - **Attack:** Joy button 3, `Y` - **Unlock camera:** `T` - **Move camera:** `Up/Left/Down/Right` - **Menu toggle:** Joy button 7, `Space`, RightClick - **Menu select:** Joy button 0, `Return`, LeftClick - **Quit:** `Escape`, joy button 6 - **Fullscreen:** `F1` - **Decrease size:** `J` - **Increase size:** `K` - **Slow/Fast:** Joy button 4 / joy button 5 - **Layers toggle:** `1-7` - **Debug:** `F2` - **Show collisions:** `F3` - **Show hit boxes:** `F4` - **Doublebuffer:** `F6` - **Bilinear and scan lines:** `F7` - **Curvature:** `F8` - **Adjust curvature:** `8 / 9` ## Editor - **Move camera:** `W/A/S/D`, RightDown drag - **Select:** LeftClick - **Paint:** LeftControl + LeftClick - **Edit front:** `M` - **Edit back:** `N` - **Edit collisions:** `C` - **Edit image:** `V` - **Draw front:** `1` - **Draw back:** `2` - **Draw collisions:** `3` - **Fullscreen:** `F1` - **Decrease size:** `J` - **Increase size:** `K` - **Doublebuffer:** `F6` - **Quit:** `Escape`, joy button 6