Skip to content

Commit d779574

Browse files
author
elkaboussi
committed
rebranding to doomcraft
1 parent 0751857 commit d779574

25 files changed

+46
-66
lines changed

.gitignore

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# Program Binaries
2-
cRay
2+
doomcraft
33
cub3D
4+
build/
5+
.idea/
46

57
# Cmake
68
cmake-build-debug/
@@ -57,4 +59,4 @@ modules.order
5759
Module.symvers
5860
Mkfile.old
5961
dkms.conf
60-
.vscode/
62+
.vscode/

.idea/.gitignore

Lines changed: 0 additions & 8 deletions
This file was deleted.

.idea/Mario3D.iml

Lines changed: 0 additions & 2 deletions
This file was deleted.

.idea/misc.xml

Lines changed: 0 additions & 4 deletions
This file was deleted.

.idea/modules.xml

Lines changed: 0 additions & 8 deletions
This file was deleted.

.idea/vcs.xml

Lines changed: 0 additions & 7 deletions
This file was deleted.

CMakeLists.txt

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
cmake_minimum_required(VERSION 3.25.1)
2-
project(cRay)
2+
project(doomcraft)
33
set(CMAKE_C_STANDARD 99)
44

55
# Set the path to the MLX42 library
@@ -43,20 +43,20 @@ set(SOURCES
4343
)
4444

4545
# Create the executable target
46-
add_executable(cRay ${SOURCES})
46+
add_executable(doomcraft ${SOURCES})
4747

4848
# Link the executable with the MLX42 library
49-
target_link_libraries(cRay PRIVATE ${MLX_LIB})
49+
target_link_libraries(doomcraft PRIVATE ${MLX_LIB})
5050

5151
# Optionally, link other libraries depending on the OS
5252
if(UNIX AND NOT APPLE)
53-
target_link_libraries(cRay PRIVATE dl glfw pthread m)
53+
target_link_libraries(doomcraft PRIVATE dl glfw pthread m)
5454
else()
55-
target_link_libraries(cRay PRIVATE glfw)
55+
target_link_libraries(doomcraft PRIVATE glfw)
5656
endif()
5757

5858
# Add any additional include directories if needed
59-
target_include_directories(cRay PRIVATE includes MLX42/include/MLX42)
59+
target_include_directories(doomcraft PRIVATE includes MLX42/include/MLX42)
6060

6161
# Set compiler options
62-
target_compile_options(cRay PRIVATE -Wall -Wextra -Werror)
62+
target_compile_options(doomcraft PRIVATE -Wall -Wextra -Werror)

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ BIN_DIR = bin/
2424
OBJS = $(SRCS:%.c=$(BIN_DIR)%.o)
2525
OBJS_DIRS = $(dir $(OBJS))
2626

27-
INCLUDES = includes/libft.h includes/cray.h
27+
INCLUDES = includes/libft.h includes/doomcraft.h
2828

29-
NAME = cRay
29+
NAME = doomcraft
3030

3131
all: $(NAME)
3232

README.md

Lines changed: 18 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
## About:
2-
**cRay** is a raycasting game engine written in C language that uses [the Digital Differential Analysis](https://en.wikipedia.org/wiki/Digital_differential_analyzer_(graphics_algorithm)) aka the "DDA" algorithm.
2+
**doomcraft** is a raycasting game engine written in C language that uses [the Digital Differential Analysis](https://en.wikipedia.org/wiki/Digital_differential_analyzer_(graphics_algorithm)) aka the "DDA" algorithm.
33

44
## Overview:
5-
![Screenshot from 2023-09-12 00-17-14](https://github.com/kaboussi/cRay/assets/95357302/c037377f-db38-49d5-9048-3c1c53a7b504)
5+
![Screenshot from 2023-09-12 00-17-14](https://github.com/kaboussi/cray/assets/95357302/c037377f-db38-49d5-9048-3c1c53a7b504)
66

77

88
## Dependencies:
@@ -20,25 +20,32 @@ The [MLX42](https://github.com/codam-coding-college/MLX42) is a minimal graphica
2020

2121
## Setup:
2222
```bash
23-
~ git clone https://github.com/https://github.com/kaboussi/cRay
24-
~ cd cRay/MLX42
25-
~ cmake -B build
26-
~ cmake --build build -j4
23+
~ git clone https://github.com/lkabuci/Doomcraft && cd Doomcraft
24+
~ (cd MLX42 && cmake -B build && cmake --build build -j4)
2725
```
2826

2927
## Compile and run:
3028
* Using Cmake
3129
```bash
32-
~ cmake -B cmake-build-debug
33-
~ cd cmake-build-debug
34-
~ make -C cmake-build-debug
35-
~ ./cmake-build-debug/cRay assets/maps/map.cub
30+
~ cmake -B build
31+
~ make -C build
32+
~ ./build/doomcraft assets/maps/map.cub
3633
```
3734

3835
* Using Makfile
3936
```bash
4037
~ make
41-
~ ./cRay assets/maps/map.cub
38+
~ ./doomcraft assets/maps/map.cub
39+
```
40+
41+
* Oneline setup
42+
```bash
43+
git clone https://github.com/lkabuci/Doomcraft &&\
44+
cd Doomcraft && \
45+
(cd MLX42 && cmake -B build && cmake --build build -j4) &&\
46+
cmake -B build &&\
47+
make -C build &&\
48+
./build/doomcraft assets/maps/map.cub
4249
```
4350

4451
### Resources:
File renamed without changes.

0 commit comments

Comments
 (0)