diff options
author | Henrique Alves <henrique.alves@itsjungle.xyz> | 2024-04-25 23:53:27 +0300 |
---|---|---|
committer | Henrique Alves <henrique.alves@itsjungle.xyz> | 2024-04-25 23:53:27 +0300 |
commit | d7cd1276f9842e6eb50dca16978a99d4fe7bbdaa (patch) | |
tree | 1f3c20c951b5cee09853d583ed8eddbf423f8d8f | |
parent | a7cc19f9e254d0ee391b2b65ef6da6e471da803c (diff) | |
download | gamejam-slgj-2024-d7cd1276f9842e6eb50dca16978a99d4fe7bbdaa.tar.gz gamejam-slgj-2024-d7cd1276f9842e6eb50dca16978a99d4fe7bbdaa.tar.bz2 gamejam-slgj-2024-d7cd1276f9842e6eb50dca16978a99d4fe7bbdaa.zip |
Readme
-rw-r--r-- | README.md | 21 |
1 files changed, 1 insertions, 20 deletions
@@ -1,20 +1 @@ -# Simple and portable CMake template for raylib - -This is a basic project template for raylib using CMake and has been tested with Visual Studio, Visual Studio Code and CLion. - -The master branch of the raylib source code is downloaded using CMake FetchContent from github and compiled from source as it is much easier than including prebuilt binaries for every platform and configuration. - -Building from the cmake file will build both raylib and `src/main.c` which includes a basic example of a raylib program. - -## Asset handling - -The example in `src/main.c` uses an example image located in the `assets` folder. -To load it we use `ASSETS_PATH`, which is a string macro with the *absolute* path "assets" directory. -This macro is defined in the `CMakeLists.txt` file on line `23`. - -If you plan on releasing or sharing your game consider manually setting the value of the `ASSETS_PATH` macro. - -In C you can concatenate string literals by putting them next to each other, -eg: `"A" "B"` is `"AB"`. So ASSETS_PATH `"test.png"` becomes `"/path/to/your/assets/test.png"` - -If you wanna share your game with others you should set ASSETS_PATH to be a *relative* path like "./assets/". You can do this in the CMakeLists.txt file. +This is a simple toy game engine I'm making for [Lisp Game Jam 2024](https://itch.io/jam/spring-lisp-game-jam-2024)! I'm posting the devlog here: https://henriquelalves.com/tags/devlog/. |