cdeevfrr / Photon

A video game
GNU General Public License v3.0
0 stars 0 forks source link

Simple viewport #9

Closed cdeevfrr closed 2 years ago

cdeevfrr commented 2 years ago

Gets a minimal viewport up and working.

Starting a server shows that you can actually walk around with aswd keys & look at the blue block I put at 10,10,10. Since it's opaque, it gets bigger as you get closer.

Fundamentally, the viewport works by raytracing, converting rays into "worldlines" (discrete lists of the 6 cardinal directions) and then trying to walk along those directions.

Closes #5 #6 #2 #3 #1 #4