Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doors #27

Closed
wants to merge 45 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
99e0d22
have not finished adding doors
Feb 7, 2024
18f2d40
applying doors
Feb 7, 2024
cf9d21c
adding doors
Feb 7, 2024
b9f60d6
compiles now
Feb 8, 2024
2a948cf
parser for doors kinda working
Feb 8, 2024
22ae619
Merge branch 'parser_with_sprites' into doors
ys-zm Feb 9, 2024
b5c7ad8
added door tex
ys-zm Feb 9, 2024
925bf62
Add MAP_DOOR_OPEN MAP_DOOR_CLOSED
JopjeKnopje Feb 9, 2024
06604ae
changed door t_cell
ys-zm Feb 9, 2024
bdb7395
Wonky kinda works
JopjeKnopje Feb 9, 2024
f3a94b1
Can kinda toggle doors
JopjeKnopje Feb 9, 2024
31c90dc
Fix keys issue
JopjeKnopje Feb 9, 2024
6c434a3
Change y to x which fixed the doors randomly spawning
JopjeKnopje Feb 9, 2024
fc49e47
Can open doors without rotating first.
JopjeKnopje Feb 9, 2024
11a4f3d
fix workflow
JopjeKnopje Feb 9, 2024
572af27
Can kinda move a wall, only issue is the side texture of the nearby
JopjeKnopje Feb 9, 2024
6389030
cleaned up parser and added next level path
ys-zm Feb 10, 2024
8e0bcd8
can draw line where the texture should "fold"
JopjeKnopje Feb 10, 2024
ca521e0
Bla bla
JopjeKnopje Feb 10, 2024
7c43f95
Kinda buggy
JopjeKnopje Feb 11, 2024
ffb89ad
Fix raycaster directions not being correct
JopjeKnopje Feb 11, 2024
88c4cfa
Endless tunnel
JopjeKnopje Feb 11, 2024
a30c651
More trippy shit
JopjeKnopje Feb 11, 2024
febadb5
Still not working...
JopjeKnopje Feb 12, 2024
549b593
Back to square one
JopjeKnopje Feb 12, 2024
1fb3e50
HOLY SHIT
JopjeKnopje Feb 12, 2024
e0b6f78
Not there yet but getting close
JopjeKnopje Feb 12, 2024
0cab0ff
fixed rendering of the side of the doors
ys-zm Feb 12, 2024
9cb12c3
Fix minimap weirdness
JopjeKnopje Feb 12, 2024
df7b58b
Kinda works except the door is not filling the enitre tile
Feb 13, 2024
90ac40b
Where we left off
Feb 15, 2024
fb162b8
Trying to draw the rays
Feb 15, 2024
38ccc66
Render all rays in minimap
JopjeKnopje Feb 16, 2024
33cf873
Change color
JopjeKnopje Feb 16, 2024
ae0fcea
Idea kinda clear?
JopjeKnopje Feb 16, 2024
17a70fb
DOORS WORKK (for the y-axis only)
JopjeKnopje Feb 16, 2024
7781d37
Can hit doors in all directions
JopjeKnopje Feb 16, 2024
e6fe5a6
moved to func
JopjeKnopje Feb 16, 2024
a0936c8
Removed the `raycaster_cast_id` function
JopjeKnopje Feb 16, 2024
1590cc6
Rename `rays` to `hrays`
JopjeKnopje Feb 16, 2024
a380d5a
Fixed interactions not working caused by `-ofast` flag
JopjeKnopje Feb 16, 2024
55fb7e0
Kinda fixed door collision
JopjeKnopje Feb 16, 2024
ccb950d
working on adding hud
JopjeKnopje Feb 16, 2024
4a42bf9
Revert "working on adding hud"
JopjeKnopje Feb 23, 2024
219d010
Small stuff norm
JopjeKnopje Feb 23, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add MAP_DOOR_OPEN MAP_DOOR_CLOSED
  • Loading branch information
JopjeKnopje committed Feb 9, 2024
commit 925bf62cf974646b2f1a336f33b6c93a365f64b7
7 changes: 4 additions & 3 deletions include/meta.h
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
/* ************************************************************************** */
/* */
/* :::::::: */
/* meta.h :+: :+: */
/* meta.h :+: :+: */
/* +:+ */
/* By: joppe <[email protected]> +#+ */
/* +#+ */
/* Created: 2024/02/05 14:01:44 by joppe #+# #+# */
/* Updated: 2024/02/08 12:52:25 by yzaim ######## odam.nl */
/* Updated: 2024/02/09 14:44:08 by joppe ######## odam.nl */
/* */
/* ************************************************************************** */

Expand Down Expand Up @@ -92,7 +92,8 @@ typedef enum e_cell_type {
MAP_EMPTY,
MAP_WALL,
MAP_SPACE,
MAP_DOOR
MAP_DOOR_OPEN,
MAP_DOOR_CLOSED,
} t_cell_type;

typedef enum e_element_type {
Expand Down