-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added turn_around movement with R_KEY and SPACE_KEY to interact with …
…door
- Loading branch information
1 parent
f53f20d
commit a6d4efc
Showing
4 changed files
with
20 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
/* By: tsuchen <[email protected]> +#+ +:+ +#+ */ | ||
/* +#+#+#+#+#+ +#+ */ | ||
/* Created: 2024/08/15 00:19:44 by tsuchen #+# #+# */ | ||
/* Updated: 2024/09/04 09:11:56 by tsuchen ### ########.fr */ | ||
/* Updated: 2024/09/04 09:44:06 by tsuchen ### ########.fr */ | ||
/* */ | ||
/* ************************************************************************** */ | ||
|
||
|
@@ -77,10 +77,12 @@ typedef enum e_keys | |
ARROW_UP = 65362, | ||
ARROW_DOWN = 65364, | ||
ESC_KEY = 65307, | ||
SPACE_KEY = 32, | ||
W_KEY = 119, | ||
A_KEY = 97, | ||
S_KEY = 115, | ||
D_KEY = 100, | ||
R_KEY = 114, | ||
M1 = 65307, | ||
P_KEY = 112, | ||
} t_keys; | ||
|
@@ -142,6 +144,7 @@ int key_events(int keycode, t_data *data); | |
int mouse_move(int x, int y, t_data *data); | ||
void move_check(t_vec *step, t_data *data, int add_or_sub); | ||
int mouse_press(int button, int x, int y, t_data *data); | ||
void interact_door(t_data *data); | ||
/* color utils*/ | ||
int create_trgb(int t, int r, int g, int b); | ||
int get_color(int trgb, char index); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
/* By: tsuchen <[email protected]> +#+ +:+ +#+ */ | ||
/* +#+#+#+#+#+ +#+ */ | ||
/* Created: 2024/08/15 12:03:33 by tsuchen #+# #+# */ | ||
/* Updated: 2024/09/04 09:27:55 by tsuchen ### ########.fr */ | ||
/* Updated: 2024/09/04 09:42:34 by tsuchen ### ########.fr */ | ||
/* */ | ||
/* ************************************************************************** */ | ||
|
||
|