This commit is contained in:
Attila Uygun 2023-08-12 23:30:28 +02:00
parent 7c148d7555
commit 66990f26ba
2 changed files with 13 additions and 10 deletions

5
.vscode/launch.json vendored
View File

@ -5,7 +5,7 @@
"version": "0.2.0", "version": "0.2.0",
"configurations": [ "configurations": [
{ {
"name": "(gdb) Launch", "name": "Debug demo - Linux",
"type": "cppdbg", "type": "cppdbg",
"request": "launch", "request": "launch",
"program": "${workspaceFolder}/out/debug/demo", "program": "${workspaceFolder}/out/debug/demo",
@ -25,7 +25,7 @@
"preLaunchTask": "Build project", "preLaunchTask": "Build project",
}, },
{ {
"name": "C/C++: cl.exe build and debug active file", "name": "Debug demo - Windows",
"type": "cppvsdbg", "type": "cppvsdbg",
"request": "launch", "request": "launch",
"program": "${workspaceFolder}\\out\\debug\\demo.exe", "program": "${workspaceFolder}\\out\\debug\\demo.exe",
@ -34,6 +34,7 @@
"cwd": "${workspaceFolder}\\out\\debug", "cwd": "${workspaceFolder}\\out\\debug",
"environment": [], "environment": [],
"externalConsole": false, "externalConsole": false,
"preLaunchTask": "Build project",
} }
] ]
} }

View File

@ -1,21 +1,20 @@
# Kaliber # Kaliber
A simple, cross-platform 2D game engine with OpenGL and Vulkan renderers. A simple, cross-platform 2D game engine with OpenGL and Vulkan renderers.
Supports Linux and Android platforms. Supports Linux, Windows and Android platforms.
This is a personal hobby project. I've published a little game on This is a personal hobby project. I've published a little game on
[Google Play](https://play.google.com/store/apps/details?id=com.woom.game) [Google Play](https://play.google.com/store/apps/details?id=com.woom.game)
based on this engine. Full game code and assets are included in this repository. based on this engine. Full game code and assets are included in this repository.
## Pre-requisites: ## Pre-requisites:
**GN build system** is required for all platforms except Android (support for **GN build system** is required for all platforms except Android:\
APKs, Java code etc. is to be added to the GN configuration). \ https://gn.googlesource.com/gn/
Building GN from source:
https://gn.googlesource.com/gn/ \
Pre-built GN binaries:
https://chrome-infra-packages.appspot.com/p/gn/gn/
Linux is the supported host platform to build Android. **Gradle**, **Build Tools** is required to build for Windows. if you prefer, you can install
**Visual Studio** which includes the **Build Tools**.
Linux is the supported host platform to build for Android. **Gradle**,
**Android SDK** and **NDK** are required. If you prefer, you can install **Android SDK** and **NDK** are required. If you prefer, you can install
**Android Studio** which includes all the requirements. **Android Studio** which includes all the requirements.
@ -33,6 +32,9 @@ ninja -C out/debug
./out/debug/hello_world ./out/debug/hello_world
./out/debug/demo ./out/debug/demo
``` ```
Building and debugging from VS Code:
* Select "Debug demo - [platform]" from the "Run and Debug" drop down.
* Press F5.
### Android: ### Android:
```text ```text
cd build/android cd build/android