Commit Graph

68 Commits

Author SHA1 Message Date
Hugo LAMY
5505adf02c map files ok 2022-05-05 14:54:27 +02:00
Hugo LAMY
c89c107e09 solved leaks still reachable because gnl wasn't going to the end, and close fd 2022-05-04 22:00:36 +02:00
Hugo LAMY
d4e5f298fa some norminettes and error in memorybook when adding a 2d pointer 2022-05-04 18:54:21 +02:00
Philippe BLAGOJEVIC
6000629c17 Fixed RGB parsing 2022-05-04 16:53:38 +02:00
Hugo LAMY
a6c61ec557 clean libft 2022-05-04 16:10:31 +02:00
Philippe BLAGOJEVIC
362668fe35 Added memorybook to parsing and cleaned most of the files 2022-05-04 14:38:34 +02:00
hugogogo
e564e7c8e9 back to normal execution with map argument 2022-05-04 11:33:29 +02:00
hugogogo
b5f3d2d384 resolve segfault for close right wall view 2022-05-04 00:58:20 +02:00
hugogogo
3c76a8646a plr orientation at begining 2022-05-04 00:55:47 +02:00
hugogogo
eb3b5c37a8 maybe resolved wall distorsion 2022-05-03 23:57:19 +02:00
hugogogo
101680c839 tmp bring back rays and highlight for debug purpose 2022-05-03 21:43:00 +02:00
hugogogo
4414917234 clean a little 2022-05-03 20:51:11 +02:00
hugogogo
9b28e20199 resolve wall distorsion and lag 2022-05-03 18:10:41 +02:00
hugogogo
f882f57396 wall don't distord when bigger than screen 2022-05-03 17:06:39 +02:00
hugogogo
a9c25ee5df texture in place, but they slide :p 2022-05-03 13:11:26 +02:00
hugogogo
5b60406124 textures start to appears 2022-05-03 10:18:22 +02:00
hugogogo
a2ed84c5e1 add null initialisation of mlx pointers and move mb init closer to begining 2022-05-02 23:36:27 +02:00
hugogogo
75692c09a6 wip calcul texture image x position, and add protection when creating texture 2022-05-02 23:19:27 +02:00
hugogogo
628a0c0cad add init textures 2022-05-02 16:11:54 +02:00
hugogogo
a6fd2df6d5 suppression of the map view 2022-05-02 09:39:03 +02:00
hugogogo
a2e4db41a9 resolve 3d deformation when map too big 2022-05-01 23:40:20 +02:00
hugogogo
eb5f2db7fa changed rgb deal, and improve memorybook with 2d 2022-05-01 22:55:00 +02:00
hugogogo
43852938c4 add new file for textures 2022-05-01 21:07:11 +02:00
hugogogo
858af3d1c1 3d view works 2022-05-01 10:46:25 +02:00
hugogogo
853fb39c84 changed all equations of wall height calculation to resolve pixelisation, but dead axis rays re-appeared 2022-05-01 09:49:41 +02:00
hugogogo
888fa7c116 plr start on middle of a cell, and wall height is well proportionned 2022-04-30 12:09:44 +02:00
hugogogo
58b862ce82 wip 3d is sort of working 2022-04-29 21:01:57 +02:00
hugogogo
778ddef393 wip solving buble effect by wall height calculation 2022-04-29 09:57:41 +02:00
hugogogo
81aef1eab0 resolve floating point exception when wliding through walls 2022-04-28 23:42:15 +02:00
hugogogo
9042b373a9 tmp restore a 3d view 2022-04-28 21:05:39 +02:00
hugogogo
0557decc7a add maps test 2022-04-28 20:54:42 +02:00
hugogogo
883ca19ba5 Merge branch 'hugo' 2022-04-28 20:30:17 +02:00
hugogogo
bdc87d1b7b Merge branch 'master' of github.com:hugodu69/cube3d 2022-04-28 20:28:07 +02:00
hugogogo
6640c9e6d3 wip several test to avoid buble effects, one wihtout doubles 2022-04-28 20:27:46 +02:00
pblagoje
54585e7974 Merged parsing_connected branch to master 2022-04-28 19:55:06 +02:00
hugogogo
285f6f3c55 add struct wall 2022-04-28 09:35:05 +02:00
hugogogo
5e8afcb245 clean of debug rays vertical and horizontal 2022-04-28 09:03:23 +02:00
hugogogo
4f0e5fcd00 rays verticals and horizontals are working 2022-04-28 08:52:21 +02:00
hugogogo
3501a20abb wip debug ray length 2022-04-28 00:44:02 +02:00
hugogogo
a0f32dee98 plr moves through walls 2022-04-27 00:11:55 +02:00
hugogogo
f3ced10b82 game view in bubble 2022-04-26 22:13:57 +02:00
hugogogo
fef8da1659 Merge branch 'master' of github.com:hugodu69/cube3d 2022-04-26 21:23:33 +02:00
Hugo LAMY
be650f085e bubble game view with vertical ray pbm 2022-04-26 12:57:22 +02:00
hugogogo
791110c88c merge test 2022-04-25 13:35:25 +02:00
hugogogo
ef4cc1a996 visual 3d with buble effect and rays for slope null 2022-04-25 13:17:55 +02:00
hugogogo
0d9e5879c0 wall grows proportionally 2022-04-25 09:13:10 +02:00
hugogogo
c52f04d9c8 game view, but wrong :p 2022-04-24 21:28:50 +02:00
hugogogo
03f61d989b game image created but all wrong 2022-04-24 21:18:36 +02:00
hugogogo
a11ea35ac1 changed functions draw line and pixel to receive an img ptr instead of the whole structure 2022-04-24 19:41:44 +02:00
hugogogo
c886118bd6 params adjust angle of view and size of game window 2022-04-24 11:14:08 +02:00