Commit Graph

39 Commits

Author SHA1 Message Date
Paul Mathieu
a38c7f7a76 Rename our bounding box 2021-12-25 08:36:45 -08:00
Paul Mathieu
8c3fb4377f Remove try/catch block for timesup 2021-12-25 08:25:01 -08:00
Paul Mathieu
b70ce12ec9 Adjust gravity and jump force 2021-12-25 08:22:39 -08:00
Paul Mathieu
0c381e26d3 Small fixes 2021-12-25 02:28:06 -08:00
Paul Mathieu
86a65fc39c Add a few trees 2021-12-24 05:50:13 -08:00
Paul Mathieu
10b5109e21 Fullscreen 2021-12-22 02:50:12 -08:00
Paul Mathieu
a1d117595f Fix distance fog on water 2021-12-22 02:32:32 -08:00
Paul Mathieu
6f66e4f131 Faster loading & geometry fixes 2021-12-22 02:32:08 -08:00
Paul Mathieu
eec60fcc91 Double jump! 2021-12-22 02:31:28 -08:00
Paul Mathieu
8939a90307 Placing blocks. Also better terrain. And still water.
Just a few things.
2021-12-20 01:25:40 -08:00
Paul Mathieu
4d0f406669 Split code out of index.js into game.js and world.js 2021-12-18 09:57:00 -08:00
Paul Mathieu
c792b01308 Update README 2021-12-18 09:18:49 -08:00
Paul Mathieu
a20d203bae Grr typo 2021-12-17 15:51:20 -08:00
Paul Mathieu
4be09f8d45 Add destroying blocks 2021-12-17 15:33:33 -08:00
Paul Mathieu
200efb3a3c Remove verbose log 2021-12-17 15:32:50 -08:00
Paul Mathieu
eacd6a6ab0 Allow a few skipped frames when needed 2021-12-17 15:31:21 -08:00
Paul Mathieu
d43d888194 Mark out-of-bound blocks as UNDEFINED 2021-12-17 15:31:00 -08:00
Paul Mathieu
0739abbaf2 Fix bad tagging 2021-12-17 15:27:32 -08:00
Paul Mathieu
2fc6e91ee2 Remove some dead code 2021-12-17 15:27:08 -08:00
Paul Mathieu
f045a8fff1 Make max block select ditance a param 2021-12-17 15:26:29 -08:00
Paul Mathieu
fff1fe89a2 Block tagging 2021-12-17 06:16:57 -08:00
Paul Mathieu
612f8a223e Minor fixes 2021-12-17 06:15:07 -08:00
Paul Mathieu
ed43c9ea5c Clamp camera rotx and fix motion 2021-12-17 06:14:16 -08:00
Paul Mathieu
7503922451 Remove dead code 2021-12-17 06:13:07 -08:00
Paul Mathieu
963568bec1 perf: call blockLokup() less often 2021-12-16 14:10:57 -08:00
Paul Mathieu
6cf6306b96 Tweak jumping 2021-12-16 14:10:23 -08:00
Paul Mathieu
4fdb59596f Save a few more webgl calls 2021-12-15 14:36:31 -08:00
Paul Mathieu
7bc7b64c8b Performance refactor 2021-12-15 12:00:10 -08:00
Paul Mathieu
80284baf2e Add README.md 2021-12-14 14:45:19 -08:00
Paul Mathieu
a523c588ba Moving code around 2021-12-14 14:41:33 -08:00
Paul Mathieu
f1d26bda2e Remove verbose log, add yarn build 2021-12-12 15:52:32 -08:00
Paul Mathieu
76b46a92ed Fix texture aberrations in the distance 2021-12-12 15:47:53 -08:00
Paul Mathieu
44f484896f Collisions, gravity, walking, jumping. 2021-12-12 15:42:25 -08:00
Paul Mathieu
9a859ac6c2 Add param panel to control lighting 2021-12-12 11:36:47 -08:00
Paul Mathieu
5175232b6d load near chunks first 2021-12-12 01:09:47 -08:00
Paul Mathieu
6e47e9cd0a Inifinite world!! (almost) 2021-12-12 00:46:24 -08:00
Paul Mathieu
5a334fec13 Small refactor in makeChunk 2021-12-11 17:34:52 -08:00
Paul Mathieu
ce7f4f66c5 Less yellow light 2021-12-11 15:17:53 -08:00
Paul Mathieu
49e814d1bc A few things
- webgl boilerplate
- shader ambiant + diffuse lighting
- fractal perlin noise chunk generation
- super primitive world generation (stone, dirt, grass blocks)
- WASD controls + mouse pointer capture

On the menu:
- collisions
- gravity
- mine & place
- more stuff
2021-12-08 09:24:19 -08:00