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

Diff for: .gitignore

+4-2
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/

Diff for: .idea/.gitignore

-8
This file was deleted.

Diff for: .idea/Mario3D.iml

-2
This file was deleted.

Diff for: .idea/misc.xml

-4
This file was deleted.

Diff for: .idea/modules.xml

-8
This file was deleted.

Diff for: .idea/vcs.xml

-7
This file was deleted.

Diff for: CMakeLists.txt

+7-7
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)

Diff for: Makefile

+2-2
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

Diff for: README.md

+18-11
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:

Diff for: includes/cray.h renamed to includes/doomcraft.h

File renamed without changes.

Diff for: main.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// Created by redone on 7/27/23.
33
//
44

5-
#include "includes/cray.h"
5+
#include "includes/doomcraft.h"
66

77
int main(int argc, const char *argv[])
88
{

Diff for: srcs/helpers.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include "../includes/cray.h"
1+
#include "../includes/doomcraft.h"
22

33
void free_array(char **split)
44
{

Diff for: srcs/hooks.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include "../includes/cray.h"
1+
#include "../includes/doomcraft.h"
22

33
void move_hook(void *param)
44
{

Diff for: srcs/inits.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include "../includes/cray.h"
1+
#include "../includes/doomcraft.h"
22

33
void initialize_all_variables(t_seer *pSeer);
44

Diff for: srcs/move.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include "../includes/cray.h"
1+
#include "../includes/doomcraft.h"
22

33
static bool can_move(char block);
44

Diff for: srcs/parsing/colors.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include "../../includes/cray.h"
1+
#include "../../includes/doomcraft.h"
22

33
long get_rgb(char *value)
44
{

Diff for: srcs/parsing/map.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include "../../includes/cray.h"
1+
#include "../../includes/doomcraft.h"
22

33
void get_map_dimensions(t_map_info *pInfo)
44
{

Diff for: srcs/parsing/map_validity.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// Created by redone on 7/29/23.
33
//
44

5-
#include "../../includes/cray.h"
5+
#include "../../includes/doomcraft.h"
66

77
/*
88
* 1 -> only 6 possible characters (0, 1, N, S, E, W) and \0

Diff for: srcs/parsing/parsing.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// Created by redone on 7/27/23.
33
//
44

5-
#include "../../includes/cray.h"
5+
#include "../../includes/doomcraft.h"
66

77
void parse_elements(t_map_info *info);
88
void fill_elements(mlx_t *mlx, t_map_info *pInfo, char *key,

Diff for: srcs/parsing/utils.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// Created by redone on 7/28/23.
33
//
44

5-
#include "../../includes/cray.h"
5+
#include "../../includes/doomcraft.h"
66

77
static bool is_all_spaces(const char *line);
88

Diff for: srcs/raycasting.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include "../includes/cray.h"
1+
#include "../includes/doomcraft.h"
22

33
void position_direction(t_seer *pSeer, t_camera *pCamera, int xPixel)
44
{

Diff for: srcs/textures.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include "../includes/cray.h"
1+
#include "../includes/doomcraft.h"
22

33
// the floor is used to get the value between 0 and 1
44
void set_texture_params(t_seer *pSeer, int xPixel)

Diff for: srcs/utils.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include "../includes/cray.h"
1+
#include "../includes/doomcraft.h"
22

33
unsigned int get_image_color(mlx_image_t *image, t_point p)
44
{

Diff for: srcs/view.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include "../includes/cray.h"
1+
#include "../includes/doomcraft.h"
22

33
void change_to_left(t_seer *pSeer, double rotSpeed)
44
{

Diff for: vcpkg.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name" : "cray",
2+
"name" : "doomcraft",
33
"version-string" : "1.0.0",
44
"builtin-baseline" : "ccd2e8b4b9e76ba8883aede0b89225099d805e01",
55
"dependencies" : [ {

0 commit comments

Comments
 (0)