Commit graph

97 commits

Author SHA1 Message Date
c8e02c6f86
Fix saving
All checks were successful
continuous-integration/drone/push Build is passing
2021-06-07 02:26:28 +02:00
5d7101ae0b
rm -rf unused imports 2021-06-07 01:39:08 +02:00
4a56bc5a24
Improve collision
All checks were successful
continuous-integration/drone/push Build is passing
2021-06-07 01:24:38 +02:00
b13be0ebc1
Merge branch 'main' of ssh://git.sijman.nl:221/_/minecrab
All checks were successful
continuous-integration/drone/push Build is passing
2021-06-06 13:37:27 +02:00
0e53db6ffc
Update more than 1 chunk per frame if the framerate allows 2021-06-06 13:34:57 +02:00
9fb640c4e0 Replace a very ugly float comparison with integer logic
All checks were successful
continuous-integration/drone/push Build is passing
2021-06-04 02:38:51 +02:00
67f275b2fc Move update_chunk_geometry into Chunk
All checks were successful
continuous-integration/drone/push Build is passing
2021-06-04 02:23:26 +02:00
1b91fa94c0 Big project structure reorder
All checks were successful
continuous-integration/drone/push Build is passing
2021-06-04 01:45:51 +02:00
4bba01058b
Implement chunk unloading, frustrum culling and some other minor optimisations
All checks were successful
continuous-integration/drone/push Build is passing
2021-06-03 16:34:42 +02:00
206f7857fa
Make Geometry indices generic, make The Crab use it
All checks were successful
continuous-integration/drone/push Build is passing
2021-06-03 12:13:24 +02:00
bd54a1bc14
Move some more world-related stuff to World 2021-06-03 11:59:39 +02:00
0ca35638fc
Move chunk loading/saving logic to World, sort chunk loading based on distance to camera
All checks were successful
continuous-integration/drone/push Build is passing
2021-06-03 04:06:59 +02:00
a8936d9046
Merge branch 'serialize-chunks'
All checks were successful
continuous-integration/drone/push Build is passing
2021-06-03 00:26:29 +02:00
f64ccd087e
ci ye
All checks were successful
continuous-integration/drone/push Build is passing
2021-06-03 00:10:31 +02:00
11b6abb0d4
Implement chunk loading and saving
Some checks reported errors
continuous-integration/drone/push Build was killed
2021-06-03 00:08:49 +02:00
15247d12d4
Allow for chunks with negative coordinates
All checks were successful
continuous-integration/drone/push Build is passing
2021-06-02 19:45:29 +02:00
023d010c84
Merge branch 'return_of_the_crab'
All checks were successful
continuous-integration/drone/push Build is passing
2021-06-02 17:21:15 +02:00
c22409bd54
Clean up main.rs event handling a little 2021-06-02 17:21:03 +02:00
d56f8d7c56 Merge branch 'main' into return_of_the_crab
All checks were successful
continuous-integration/drone/push Build is passing
2021-06-02 17:00:08 +02:00
d2ff642b3b
? 2021-06-02 16:58:55 +02:00
c91d6a851e
Release the cursor on unfocus 2021-06-02 16:50:58 +02:00
9e52359112
Merge branch 'main' into return_of_the_crab
All checks were successful
continuous-integration/drone/push Build is passing
2021-06-02 16:37:56 +02:00
08f78ab453
Add creative mode toggle 2021-06-02 16:30:34 +02:00
aec3509107 Eminem - Crab God.mp3 2021-06-02 16:29:13 +02:00
071f300368 shits wack yo 2021-06-02 16:07:59 +02:00
d8dfe7b4d1
Parallellize update_chunk_geometry 2021-06-02 15:51:10 +02:00
fb9aba8f61
Further simplify Quad::to_geometry 2021-06-02 13:16:14 +02:00
2fb56b9e6f
Simplify Quad::to_geometry signature and document it 2021-06-02 12:44:24 +02:00
cfe4304f7c
Move cube::to_vertices to quad::to_vertices 2021-06-02 12:19:56 +02:00
107c7c5cab
Rename package 2021-06-02 03:40:42 +02:00
233d725e05
Small cleanup 2021-06-02 03:37:24 +02:00
14a2e91b26
Add GeometryBuffers struct containing vertex and index buffers 2021-06-02 03:20:33 +02:00
8bc41825d2
Create Geometry struct to replace vertex/index tuples 2021-06-02 02:33:26 +02:00
c8e455053b
Fix fps table alignment 2021-06-02 01:26:29 +02:00
41099e3481
Implement hotbar slot selection 2021-06-02 01:25:12 +02:00
37b0c99d16 added crab model 2021-06-01 23:51:32 +02:00
032d527af3
Differentiate between Vertex and BlockVertex
This allows for BlockVertex to store additional information, like the texture ID, without resorting to ugly hacks like passing it as a float
2021-06-01 23:27:08 +02:00
fb23daa60c fixed shader bug for stone under dirt stuff on nvidia+mac 2021-06-01 22:20:00 +02:00
5c33afbc59
Fix input on macOS 2021-06-01 22:01:45 +02:00
8fe5e9323e
rm -rf ugly texture pack 2021-06-01 21:16:01 +02:00
9ce89b707c
Implement simple colission detection 2021-06-01 21:04:48 +02:00
df7f78163d
Remove unused uses 2021-06-01 19:58:52 +02:00
e78878150d
Implement simple text renderer 2021-06-01 19:58:11 +02:00
4af16fb974
Use RenderContext for TextureManager::new 2021-06-01 17:54:53 +02:00
bfa7a48483
Move basic rendering context to RenderContext
This way they can be passed around much more easily
2021-06-01 16:47:28 +02:00
a3236f610a
Move a bunch of WorldState related things to WorldState 2021-06-01 16:27:12 +02:00
7fdee1dbda
Change to 64x64x64 chunks, parallellize worldgen and geometry generation 2021-06-01 16:03:46 +02:00
aec8d36647
Remove unused Chunk::raycast 2021-06-01 16:00:03 +02:00
6c6a321a0c
Make adding/removing blocks work on the entire world 2021-06-01 14:19:27 +02:00
65f0a706d3
Cull invisible block faces, reintroduce removing/adding blocks 2021-06-01 10:48:30 +02:00