Skip to content

Commit

Permalink
monsters depth problem
Browse files Browse the repository at this point in the history
  • Loading branch information
ssloy committed Feb 10, 2019
1 parent ea577d6 commit f2db6b1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Binary file added doc/015.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion tinyraycaster.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ int main() {
std::cerr << "Failed to load textures" << std::endl;
return -1;
}
std::vector<Sprite> sprites{ {1.834, 8.765, 0}, {5.323, 5.365, 1}, {4.123, 10.265, 1} };
std::vector<Sprite> sprites{ {3.523, 3.812, 2}, {1.834, 8.765, 0}, {5.323, 5.365, 1}, {4.123, 10.265, 1} };

render(fb, map, player, sprites, tex_walls, tex_monst);
drop_ppm_image("./out.ppm", fb.img, fb.w, fb.h);
Expand Down

0 comments on commit f2db6b1

Please sign in to comment.