Pick back up and comment
Clean placeholder code to get it running. Add comments to clarify working, add TODOs in main, add some references for the maths.
This commit is contained in:
parent
f21fc6f805
commit
2d396269e0
3 changed files with 34 additions and 4 deletions
13
main.cpp
13
main.cpp
|
@ -3,6 +3,17 @@
|
|||
|
||||
#include "World.h"
|
||||
|
||||
// TODO: Handle inputs to move player
|
||||
// TODO: Raycast from player position
|
||||
// TODO: Fix raycasts and use it correctly
|
||||
// TODO: Render world in event loop
|
||||
// TODO: Understand what the code was doing (looks like scale from fill column is the output of the raycast)
|
||||
// Ref: https://lodev.org/cgtutor/raycasting.html
|
||||
// Ref: http://yunes.informatique.univ-paris-diderot.fr/wp-content/uploads/cours/INFOGRAPHIE/08-Raycasting.pdf
|
||||
// TODO: Update player for camera plane
|
||||
// TODO: Camera plane represents screen, rays go through it proportional to the screen
|
||||
// TODO: Find a way to go to edges instead of just equally split (?)
|
||||
|
||||
int main()
|
||||
{
|
||||
std::cout << "Hello, World!" << std::endl;
|
||||
|
@ -27,4 +38,4 @@ int main()
|
|||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue