Skip to content

Commit

Permalink
Merge pull request #10 from BeatACVR/main
Browse files Browse the repository at this point in the history
make mod actually work again (but no android support)
  • Loading branch information
NicknameGG authored Nov 23, 2024
2 parents 3528a16 + bab907c commit db2a136
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 17 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/multi-platform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ jobs:
- name: macOS
os: macos-latest

- name: Android32
os: ubuntu-latest
target: Android32
#- name: Android32
# os: ubuntu-latest
# target: Android32

- name: Android64
os: ubuntu-latest
target: Android64
#- name: Android64
# os: ubuntu-latest
# target: Android64

name: ${{ matrix.config.name }}
runs-on: ${{ matrix.config.os }}
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ Get jumpscared **every time you jump** by the Robert Topala!
- Android support!
- Works in my machine!

### Download now!!!!!!!!!!
### Download now!!!!!!!!!!
2 changes: 1 addition & 1 deletion about.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ Get jumpscared **every time you jump** by the Robert Topala!
- Android support!
- Works in my machine!

### Download now!!!!!!!!!!
### Download now!!!!!!!!!!
2 changes: 1 addition & 1 deletion mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
],
"id": "n.robtop-jumpscare",
"name": "Robtop Jumpscare",
"version": "v1.3.5",
"version": "v1.3.6",
"developer": "n",
"description": "Jumpscare yourself everytime you jump!",
"repository": "https://github.com/NicknameGG/robtop-jumpscare",
Expand Down
22 changes: 14 additions & 8 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,18 +31,24 @@ class $modify(PlayerObject) {
RobertTopala->runAction(CCFadeOut::create(1.0))->setTag(1);
}

/*void playerDestroyed(bool p0) {
PlayerObject::playerDestroyed(p0);
isHolding = false;
}*/

void playerDestroyed(bool p0) {
PlayerObject::playerDestroyed(p0);
isHolding = false;
}

void releaseButton(PlayerButton p0) {
PlayerObject::releaseButton(p0);
bool releaseButton(PlayerButton p0) {
bool ret = PlayerObject::releaseButton(p0);

if (p0 != PlayerButton::Jump)
return;
return ret;

isHolding = false;
return false;
}

void incrementJumps() {
Expand All @@ -61,18 +67,17 @@ class $modify(PlayerObject) {
PlayerObject::incrementJumps();
}

void pushButton(PlayerButton p0) {

PlayerObject::pushButton(p0);
bool pushButton(PlayerButton p0) {
bool ret = PlayerObject::pushButton(p0);

if (p0 != PlayerButton::Jump)
return;
return ret;

isHolding = true;

// Do nothing if PlayLayer doesnt exist
if (!GameManager::sharedState()->getPlayLayer())
return;
return ret;

const auto runningScene = CCDirector::get()->getRunningScene();

Expand All @@ -97,5 +102,6 @@ class $modify(PlayerObject) {
}

this->jumpscare();
return false;
}
};

0 comments on commit db2a136

Please sign in to comment.