Now have a basic sprite system that uses SFML's sprites, but the algorithm for determining how much of a sprite to display is wrong. Need to use the alternate algorithm from LODE's tutorial that draws sprites after rendering.
This commit is contained in:
parent
024d5b30e1
commit
da7075864b
6 changed files with 38 additions and 36 deletions
|
@ -1,5 +1,7 @@
|
|||
#pragma once
|
||||
|
||||
constexpr const int TEXTURE_WIDTH=256;
|
||||
constexpr const int TEXTURE_HEIGHT=256;
|
||||
constexpr const int RAY_VIEW_WIDTH=960;
|
||||
constexpr const int RAY_VIEW_HEIGHT=720;
|
||||
constexpr const int RAY_VIEW_X=(1280 - RAY_VIEW_WIDTH);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue