Skip to content
This repository has been archived by the owner on Jul 6, 2021. It is now read-only.

Commit

Permalink
Added harcoded "level end"
Browse files Browse the repository at this point in the history
  • Loading branch information
ch0m5 committed Dec 16, 2018
1 parent 63ab31f commit 50bec04
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Binary file modified Get Hooked/Game/Get Hooked.exe
Binary file not shown.
3 changes: 3 additions & 0 deletions Get Hooked/Motor2D/Player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -757,6 +757,9 @@ void Player::CheckState() { // For each state, check possible new states based o
else if (hurtTimer < SDL_GetTicks() - hurtDelay) { //CHANGE/FIX: Not perfect, it's checked on every update
damageCollision = true;
}
if (position.x > 4277) { //CHANGE/FIX: Hardcoded level end
App->fade->FadeToBlack(App->fade->GetDelay(), fade_type::NEXT_LEVEL);
}

switch (status) {
case player_state::IDLE:
Expand Down

0 comments on commit 50bec04

Please sign in to comment.