Commit Graph

40 Commits

Author SHA1 Message Date
CobaltXII
3a409326be Added window resize functionality 2018-12-30 21:03:31 -05:00
CobaltXII
7a6d0b7374 Now loading and saving levels 2018-12-30 20:30:57 -05:00
CobaltXII
5bdcc13a06 Worlds are now larger 2018-12-30 19:05:17 -05:00
CobaltXII
ba10d4bcf9 Increased the FOV from 45 degrees to 70 degrees 2018-12-30 18:04:43 -05:00
CobaltXII
dced240e79 Implemented water transparency 2018-12-30 17:48:40 -05:00
CobaltXII
243bddd61f Relative mouse mode can be disabled by pressing SDLK_ESCAPE 2018-12-30 15:38:53 -05:00
CobaltXII
a19c3d8be7 Implemented relative mouse mode 2018-12-30 15:35:24 -05:00
CobaltXII
17e82e417a Implemented fog 2018-12-30 15:21:21 -05:00
CobaltXII
40eb12acad The player position is now taken into account when generating a model matrix 2018-12-30 15:21:08 -05:00
CobaltXII
c8fc3278b1 Implemented friction and movement 2018-12-30 15:20:38 -05:00
CobaltXII
a6aff57071 Added player movement handlers 2018-12-30 15:20:25 -05:00
CobaltXII
2499a5c4d3 Added cinematic camera 2018-12-30 15:20:15 -05:00
CobaltXII
c81bff9419 Added player acceleration and friction constants 2018-12-30 15:19:58 -05:00
CobaltXII
d63ce2fa1d Added player position and velocity variables 2018-12-30 15:19:33 -05:00
CobaltXII
f5f77ededa Implemented depth clamping 2018-12-30 15:19:02 -05:00
CobaltXII
04b803d622 Now using accessor* objects for rendering 2018-12-30 14:22:18 -05:00
CobaltXII
a47f2a98b2 Now using world and chunk functions 2018-12-30 13:52:48 -05:00
CobaltXII
f5a473caf9 id_last is now renamed to id_null 2018-12-29 15:15:58 -05:00
CobaltXII
13d7ed68c7 Disabled mouse panning 2018-12-29 15:08:12 -05:00
CobaltXII
220bc40423 Now using block_face_info to extract face information 2018-12-28 22:09:46 -05:00
CobaltXII
b8ee372bfe Renamed block_texture_name_to_layer to block_name_to_layer 2018-12-28 21:56:58 -05:00
CobaltXII
1119d07ef6 Documented sdl_iteration 2018-12-28 21:42:10 -05:00
CobaltXII
a6c1248aad Removed stupid mc_ and mcu_ prefixes 2018-12-28 21:41:16 -05:00
CobaltXII
59a8db4eb2 A model matrix is now generated and passed to the block_shader_program 2018-12-28 21:26:58 -05:00
CobaltXII
c5bf706e68 The camera now looks at the mouse pointer 2018-12-28 21:26:41 -05:00
CobaltXII
895842eee9 Now using grass textures (for testing) 2018-12-28 21:26:23 -05:00
CobaltXII
722ef65efe Tweaked side-based lighting bias 2018-12-28 21:26:12 -05:00
CobaltXII
760eeadbe2 The Y coordinate was inverted to respect the Cartesian coordinate system 2018-12-28 21:25:56 -05:00
CobaltXII
b0db080dc0 The block_texture_array is now deleted on exit 2018-12-28 21:25:20 -05:00
CobaltXII
20be7b5c1e Now utilizing backface culling 2018-12-28 21:24:51 -05:00
CobaltXII
1b390a2919 The block_shader_program is now deleted on exit 2018-12-28 20:57:42 -05:00
CobaltXII
dd44e9b845 Added a cube renderer test 2018-12-28 20:57:28 -05:00
CobaltXII
a90b6a555a The OpenGL context is now cleared to the default sky color 2018-12-28 20:56:59 -05:00
CobaltXII
edadcb5d31 The block_shader_program is now generated on initialization 2018-12-28 20:56:39 -05:00
CobaltXII
994d14c7ca The block_texture_array is now generated on initialization 2018-12-28 20:56:26 -05:00
CobaltXII
52333f6d13 SDL driver now specifies flag SDL_WINDOW_ALLOW_HIGHDPI 2018-12-28 16:06:41 -05:00
CobaltXII
2750cd9cc4 Added a framerate printer 2018-12-28 15:13:10 -05:00
CobaltXII
e7662baaea Added a 60 Hz framerate cap 2018-12-28 15:11:21 -05:00
CobaltXII
46ecc76d29 All header includes will now be enumerated in main.hpp 2018-12-28 15:05:43 -05:00
CobaltXII
b0b513571a Create main.cpp 2018-12-28 15:04:31 -05:00