Converted all the variable names from Lode's tutorial style to the one I use in prep for some review and cleanup.
This commit is contained in:
parent
0cbe20af35
commit
51972b0c35
6 changed files with 157 additions and 156 deletions
|
@ -15,16 +15,16 @@ struct Raycaster {
|
|||
sf::Clock $clock;
|
||||
sf::Shader $brightness;
|
||||
TexturePack &$textures;
|
||||
double $posX = 0;
|
||||
double $posY = 0;
|
||||
double $pos_x = 0;
|
||||
double $pos_y = 0;
|
||||
|
||||
// initial direction vector
|
||||
double $dirX = -1;
|
||||
double $dirY = 0;
|
||||
double $dir_x = -1;
|
||||
double $dir_y = 0;
|
||||
|
||||
// the 2d raycaster version of camera plane
|
||||
double $planeX = 0;
|
||||
double $planeY = 0.66;
|
||||
double $plane_x = 0;
|
||||
double $plane_y = 0.66;
|
||||
sf::Texture $view_texture;
|
||||
sf::Sprite $view_sprite;
|
||||
|
||||
|
@ -35,7 +35,7 @@ struct Raycaster {
|
|||
GameLevel $level;
|
||||
Matrix $map;
|
||||
std::unordered_map<DinkyECS::Entity, SpriteTexture> $sprites;
|
||||
std::vector<double> ZBuffer; // width
|
||||
std::vector<double> $zbuffer; // width
|
||||
Animator $anim;
|
||||
|
||||
Raycaster(TexturePack &textures, int width, int height);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue