Skip to content

Commit

Permalink
sus imposter amongus
Browse files Browse the repository at this point in the history
  • Loading branch information
Leowbattle committed Oct 29, 2021
1 parent b09be70 commit 623aca1
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions RaycastGame/RaycastGame.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ void Game::init() {

texture = loadTexture("wolf3d/wood.png");
texture2 = loadTexture("wolf3d/eagle.png");
barrelTexture = loadTexture("wolf3d/barrel.png");
barrelTexture = loadTexture("sus.png");

sprites.push_back(Sprite{ 4*64, 6*64 });
sprites.push_back(Sprite{ 3*64, 6*64 });
Expand Down Expand Up @@ -601,7 +601,7 @@ void Game::drawSprites() {

for (int y = y1; y < y2; y++) {
RGB colour = barrelTexture[(((int)texY) & (textureSize - 1)) * textureSize + texX];
if (colour.r == 0 && colour.g == 0 && colour.b == 0) {
if (colour.r == 255 && colour.g == 0 && colour.b == 255) {
texY += stepY;
continue;
}
Expand Down
1 change: 1 addition & 0 deletions RaycastGame/RaycastGame.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@
<ClInclude Include="stb_image.h" />
</ItemGroup>
<ItemGroup>
<Image Include="sus.png" />
<Image Include="wolf3d\barrel.png" />
<Image Include="wolf3d\bluestone.png" />
<Image Include="wolf3d\colorstone.png" />
Expand Down
3 changes: 3 additions & 0 deletions RaycastGame/RaycastGame.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -61,5 +61,8 @@
<Image Include="wolf3d\redbrick.png">
<Filter>Source Files\wolf3d</Filter>
</Image>
<Image Include="sus.png">
<Filter>Resource Files</Filter>
</Image>
</ItemGroup>
</Project>
Binary file added RaycastGame/sus.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 623aca1

Please sign in to comment.