Commit Graph

37 Commits

Author SHA1 Message Date
0a53564650 Made chunkloading even faster by removing texture location from EVERY SINGLE BLOCK 2020-04-12 01:16:51 -06:00
fabd9bcb82 Fixed the player sprite issue 2020-04-11 08:34:57 -06:00
57f806983e Updated Libgdx to a newer version to add gui to the game. This sadly broke the player sprite :/ 2020-04-11 07:55:19 -06:00
d6c54921d8 Finished optimizations for now 2020-04-11 05:33:06 -06:00
af0bacc46f Made terrain generation fast and low lag 2020-04-11 05:22:58 -06:00
c61f8ae6cb Making optimizations, removing unneeded creation of objects 2020-04-11 05:21:07 -06:00
890f38b6b4 Changed the movement back to tile-by-tile movement, we'll figure out a way to toggle between the two modes later on. 2020-04-10 10:18:19 -06:00
cb9d3a4107 Added block placement 2020-04-10 08:37:31 -06:00
6fac5fb704 Added multiple layers to the world and was able to make them render 2020-04-09 12:39:10 -06:00
ea2e31ed74 Reduced the movement speed to the point where the chunks load faster than the player can move 2020-04-09 11:45:37 -06:00
8311c80e44 Merged all the for-loops for unloading together and fixed the problem with chunks not unloading when going up and to the right 2020-04-09 11:41:28 -06:00
f95e9bdacc FIGURED OUT HOW TO UNLOAD CHUNKS \o/ 2020-04-09 11:24:14 -06:00
7ec0d5eb5c Made the WorldRenderer class a bit smaller by removing redundant methods 2020-04-09 10:55:46 -06:00
fed335b2f6 Optimized a MASSIVE amount of chunk generation code 2020-04-09 10:48:43 -06:00
a16d7f1cdd Made the load chunks code more efficient 2020-04-09 10:00:26 -06:00
ed7002bab0 Removed the triples with pairs again. Need to find a system to remove chunks efficiently 2020-04-09 09:27:17 -06:00
5ffa837f50 Changed a bunch of variables to use bitwise shift instead of multiplication and division 2020-04-08 06:43:02 -06:00
4e38fd9da5 Added biomes based off of moisture and elevation just elevation 2020-04-06 06:10:45 -06:00
3dc79bb77d Added other materials 2020-04-05 19:33:48 -06:00
3101d508e0 Added terrain generation and also diagonal movement 2020-04-05 04:32:41 -06:00
060b5f51e8 Made it so that the world doesn't generate if it has already generated in the past 2020-04-04 18:32:20 -06:00
4ccafecaa9 Made the render distance around the player a square 2020-04-04 03:48:37 -06:00
aea9532480 Fixed chunkloading system, chunks are deleted if aren't visited after a long time 2020-04-04 03:42:55 -06:00
0e6d4ab00b Added a chunkloading system but not a unloading system 2020-04-02 02:56:58 -06:00
cb3361630e Added the Tween engine for easy interpolation 2020-04-01 20:58:18 -06:00
907691fbe7 Just got rid of redundant code and got rid of a few warnings 2020-04-01 16:48:58 -06:00
952991862f Added the camera object to the player class and added the teleport method. Also renamed Blocks.java to BlockMaterials.java. Also added Player object to the Main class 2020-04-01 16:18:19 -06:00
2476be3808 Moved the properties of Blocks into the class Block. Also made Blocks and Superchunks singletons, to prevent the creation of unnecessary objects 2020-03-31 21:09:21 -06:00
00609bc8ed Fixed the chunk rendering issues and crashes 2020-03-30 20:45:48 -06:00
6d98bc5996 Broke everything down into packages and fixed resolution issues 2020-03-29 14:03:08 -06:00
53b367cc0f Implemented a chunk system and also updated to lwjgl3 2020-03-29 07:53:52 -06:00
47badea54b Added crosshair and wrote the coords of the mouse on the screen 2020-03-29 04:32:00 -06:00
26e4a8ab42 Added a movable camera 2020-03-27 21:21:45 -06:00
4e7e8ac99c Worked on the rendering 2020-03-27 19:30:03 -06:00
d7d8b71a1e Decided to delete code from previous game and made a bunch of original code 2020-03-26 14:23:01 -06:00
f555e86491 Added code from old collector game 2020-03-24 11:54:37 -06:00
c57032f4b2 Initial commit 2020-03-23 21:18:17 -06:00