MLX library is available for Linux and MacOS.
And this repository use Two different MLX libraries depending on the OS , you can check Makefile for more details.
- Exmaple One: Init MLX, create window and drawing lines.✅
- Example Two: drawing lines with bresenham algorithm.✅
- Example Three: raycasting implementation.✅Thanks to @Saxsori
OK , Good question , I will show you how to develop game through Docker first You need to install Docker not matter what OS you are using and next you need install : x11 for Linux and MacOS , and Xming for Windows.
when everything is done.
This project come with .devcontainer
folder , that means you can use with vcode run with conatiner and after docker run and you have access to your terminal on docker container.
set Display to <HOST IP>:0.0
export DISPLAY=<HOST IP>:0.0
On your PC not docker make sure write this command to your terminal :
for MAC Or Linux
xhost + .
For windows
Search on windows app for Xlunch and run it.
- Select
Muiltiple windows
. - Select
Start no client
. - Make sure you check
N Access Control
Then make sure everything work fine by write on Docker terminal :
Xclock
, should show you a clock with a red cross.
Now You can start development with Docker.
any questions , feel free to contact me on Github or Slack 42 Network oal-tena
.