Sasha Koshka
|
0c62d97dfc
|
Added chat log thing
|
2021-05-15 13:29:44 -04:00 |
|
Sasha Koshka
|
c3a9c31570
|
Fixed some stuff with terrain generation/chunk creation, chunk peek segfaults now, trying to work out why
|
2021-05-15 01:09:37 -04:00 |
|
Sasha Koshka
|
46ce57ab06
|
Block placement validation now works in other chunks
|
2021-05-15 00:21:44 -04:00 |
|
Sasha Koshka
|
a39b6cba4e
|
Fixed player movement when opening up a menu
|
2021-05-15 00:04:09 -04:00 |
|
Sasha Koshka
|
d29e3968ac
|
Improved the loading screen to show progress
|
2021-05-14 20:24:03 -04:00 |
|
Sasha Koshka
|
c032ed60a3
|
Game now has a loading screen
|
2021-05-14 19:53:52 -04:00 |
|
Sasha Koshka
|
6dc043563d
|
World size is now determined by defined values and has been set to 5x5x5 chunks (320x320x320 blocks)
|
2021-05-14 11:41:45 -04:00 |
|
Sasha Koshka
|
2de543c12e
|
Gave gameLoop its own header file, and incremented the version number so I don't forget the next time
|
2021-05-14 01:42:47 -04:00 |
|
Sasha Koshka
|
2f6d6a719b
|
chunkLookup uses coord struct again
|
2021-05-14 01:34:12 -04:00 |
|
Sasha Koshka
|
2454c67578
|
Further optimizations - chunks are now looked up right in gameLoop
|
2021-05-14 01:29:59 -04:00 |
|
Sasha Koshka
|
d9faf0fa4a
|
Minor performance improvements in raycaster block detection
|
2021-05-13 22:04:05 -04:00 |
|
Sasha Koshka
|
23f89f7821
|
Added a new struct for integer coordinates, seems to have brought back some performance
|
2021-05-13 21:50:27 -04:00 |
|
Sasha Koshka
|
2717bc2116
|
Updated version name
|
2021-05-13 19:39:19 -04:00 |
|
Sasha Koshka
|
c92e288ac8
|
Updated terrain generation to have more variation
|
2021-05-13 19:29:09 -04:00 |
|
Sasha Koshka
|
10c82c4b86
|
Chunk lookup uses binary search now
|
2021-05-13 18:21:59 -04:00 |
|
Sasha Koshka
|
51a9e2d5b2
|
Repaired terrain generation somewhat.
|
2021-05-13 17:51:52 -04:00 |
|
Sasha Koshka
|
71e9d1a121
|
chunkGen now sorts chunks by coordHash
|
2021-05-13 15:42:28 -04:00 |
|
Sasha Koshka
|
673842ef11
|
Merged loaded and stamp chunk struct members
|
2021-05-13 14:39:13 -04:00 |
|
Sasha Koshka
|
b23aed12a6
|
Added gitignore
|
2021-05-13 14:06:28 -04:00 |
|
Sasha Koshka
|
17ad5c6ba5
|
Vertical chunks OK. In negatives, perlin noise function stops working properly and creates strange moutains.
|
2021-05-13 13:58:14 -04:00 |
|
Sasha Koshka
|
3c0a3410a6
|
Game now renders and generates multiple chunks. This is somewhat stable. Still need to work out generation bugs relating to the heightmap probably.
|
2021-05-13 11:54:16 -04:00 |
|
Sasha Koshka
|
a5429c984a
|
Made a function that draws a string with a background, and used it for the debug screen
|
2021-05-12 20:52:05 -04:00 |
|
Sasha Koshka
|
281957ced0
|
Chunk lookup now looks up chunks with a linear search, will soon make binary search. Some GUI functions now use bit shifting instead of dividing.
|
2021-05-12 20:33:22 -04:00 |
|
Sasha Koshka
|
0700f4c04f
|
Updated readme
|
2021-05-12 15:27:15 -04:00 |
|
Sasha Koshka
|
cbf08fcf19
|
Added chunk coords to debug screen
|
2021-05-12 15:09:05 -04:00 |
|
Sasha Koshka
|
2a5ee7d5bf
|
Fixed the issue with the block selection outline, and added a chunk coordiate hashing algorithm which will be useful soon
|
2021-05-12 14:59:40 -04:00 |
|
Sasha Koshka
|
095f21a1e5
|
Removed warning
|
2021-05-11 23:20:51 -04:00 |
|
Sasha Koshka
|
ef8569b335
|
Fixed segfault, code is more solid. Ready to implement infinite terrain. Just needs some optimizations.
|
2021-05-11 23:17:20 -04:00 |
|
Sasha Koshka
|
5501e1535c
|
Fixed GUI
|
2021-05-11 17:33:31 -04:00 |
|
Sasha Koshka
|
dac8e47cce
|
Added warning
|
2021-05-11 17:28:37 -04:00 |
|
Sasha Koshka
|
416a33257b
|
Removed unnesscesary member from world
|
2021-05-11 17:19:42 -04:00 |
|
Sasha Koshka
|
975fa299af
|
Code formatting
|
2021-05-11 17:17:02 -04:00 |
|
Sasha Koshka
|
19dbc36200
|
Fix conflict
|
2021-05-11 17:10:40 -04:00 |
|
Sasha Koshka
|
4e29a2ea0d
|
Altered the way in which chunks are stored again. Getting close to infinite terrain, but things must be stabalized first.
|
2021-05-11 17:07:39 -04:00 |
|
Sasha Koshka
|
c518aec49c
|
Merge pull request #4 from SamantazFox/patch
|
2021-05-11 16:22:05 -04:00 |
|
Samantaz Fox
|
84268260db
|
Decrypt some fxx variables
|
2021-05-11 21:43:06 +02:00 |
|
Samantaz Fox
|
8b6d9246f1
|
Decrypt M[n] variables
|
2021-05-11 21:34:16 +02:00 |
|
Sasha Koshka
|
02286b37d4
|
World object now stores chunks in 2D array, genChunk has been abstracted further. Will have to rethink 2D array method because array is often too big and causes a segfault.
|
2021-05-11 13:01:03 -04:00 |
|
Sasha Koshka
|
626bcc4562
|
Added chunk meta struct. Will fully revamp chunk storage as soon as I work out a segmentation fault.
|
2021-05-11 12:38:04 -04:00 |
|
Sasha Koshka
|
d473f8376d
|
Made a header file for terrain related things
|
2021-05-11 11:14:19 -04:00 |
|
Sasha Koshka
|
0e4b4c79b7
|
Split code into header files for better organization
|
2021-05-11 11:11:34 -04:00 |
|
Sasha Koshka
|
a38bdf196d
|
Added FPS counter to debug screen
|
2021-05-11 10:27:06 -04:00 |
|
Sasha Koshka
|
6fd2a25510
|
Player no longer freezes in midair when pausing while falling/jumping
|
2021-05-11 02:42:58 -04:00 |
|
Sasha Koshka
|
4fa890bd9a
|
Made (dummy, for now) chunk lookup function, swapped it into get and set block functions.
|
2021-05-11 01:22:28 -04:00 |
|
Sasha Koshka
|
bb762617ec
|
Command prompt doesn't pop up anymore when running on windows
|
2021-05-11 00:07:25 -04:00 |
|
Sasha Koshka
|
466292d7a3
|
Removed world boundary, as it is no longer needed
|
2021-05-10 23:51:23 -04:00 |
|
Sasha Koshka
|
298a374a4d
|
Version shows 0.5
|
2021-05-10 22:32:34 -04:00 |
|
Sasha Koshka
|
1901b8f893
|
Press F1 and F3 to toggle HUD and debug screen
|
2021-05-10 22:21:06 -04:00 |
|
Sasha Koshka
|
b306c62d14
|
Updated readme to include build instructions for windows
|
2021-05-10 21:41:14 -04:00 |
|
Sasha Koshka
|
2a6a99fb19
|
Removed stuff from readme that was put in the wiki
|
2021-05-10 21:33:20 -04:00 |
|