Skip to content

Commit

Permalink
Finish most of Lab
Browse files Browse the repository at this point in the history
  • Loading branch information
tzann committed Oct 16, 2023
1 parent 3ebccb0 commit 74b7033
Show file tree
Hide file tree
Showing 3 changed files with 572 additions and 39 deletions.
3 changes: 3 additions & 0 deletions desktop_version/src/Logic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -370,6 +370,7 @@ void gamelogic(void)

for (size_t i = 0; i < obj.entities.size(); i++)
{
// Prize for the Reckless
if (game.roomx == 111 && game.roomy == 107 && !map.custommode)
{
if (obj.entities[i].type == 1)
Expand Down Expand Up @@ -1042,6 +1043,7 @@ void gamelogic(void)
{
if (obj.entities[i].isplatform)
{
// This should never happen
obj.moveblockto(obj.entities[i].xp, obj.entities[i].yp, obj.entities[i].xp + 400, obj.entities[i].yp, obj.entities[i].w, obj.entities[i].h);
}
obj.entities[i].xp += 400;
Expand All @@ -1051,6 +1053,7 @@ void gamelogic(void)
{
if (obj.entities[i].isplatform)
{
// This should never happen
obj.moveblockto(obj.entities[i].xp, obj.entities[i].yp, obj.entities[i].xp - 400, obj.entities[i].yp, obj.entities[i].w, obj.entities[i].h);
}
obj.entities[i].xp -= 400;
Expand Down
Loading

0 comments on commit 74b7033

Please sign in to comment.