Skip to content

Commit e265c58

Browse files
committed
new version 1.0.6
1 parent aa17e45 commit e265c58

File tree

6 files changed

+72
-4
lines changed

6 files changed

+72
-4
lines changed

changelog.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
# v1.0.6
2+
- added new "yoylecake F" image and sound.
3+
- added percentage onwards for "yoylecake F".
4+
- added settings.
5+
- added "support me" button.
16
# v1.0.5
27
- joke tag added :D
38
- RayDeeUx, please, I know I've blatantly plagiarized your mod before, but this is the rework. I just wanted to make a BFDI-themed mod, and I forgive you. There are other mods like Jesus Mod, which are jumpscare mods, an example being Robtop Jumpscare. I truly forgive you; I archived the previous mod.

mod.json

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,39 @@
11
{
2-
"geode": "4.3.1",
2+
"geode": "4.6.1",
33
"gd": {
44
"win": "2.2074",
55
"android": "2.2074"
66
},
77
"id": "b4uti4gd.betteryoylecake",
88
"name": "BetterYoylecake",
99
"tags": ["joke"],
10-
"version": "v1.0.5",
10+
"version": "v1.0.6",
1111
"developer": "B4uti4GD",
1212
"description": "A rework of YoylecakeJumpscare",
1313
"links": {
1414
"source": "https://github.com/B4uti4github/BetterYoylecakeMod"
1515
},
16+
"settings": {
17+
"activate-worst-deaths": {
18+
"name": "activate worst deaths",
19+
"type": "bool",
20+
"default": true
21+
},
22+
"Percent-of-the-f": {
23+
"name": "Percent for worst deaths onwards",
24+
"enable-if": "activate-worst-deaths",
25+
"enable-if-description": "requires activate-worst-deaths",
26+
"description": "worst deaths after percent, works if activate worst death is activated",
27+
"type": "float",
28+
"default": 80,
29+
"min": 0,
30+
"max": 100,
31+
"control": {
32+
"slider": true
33+
}
34+
}
35+
},
1636
"resources": {
17-
"files": ["resources/yoylecake.png", "resources/y-sfx.ogg", "resources/imagenxd.png"]
37+
"files": ["resources/yoylecake.png", "resources/yoylecake2.png", "resources/y-sfx.ogg", "resources/y-sfx2.mp3"]
1838
}
1939
}

resources/y-sfx2.mp3

17.1 KB
Binary file not shown.

resources/yoylecake2.png

42.5 KB
Loading

src/main.cpp

Lines changed: 40 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,30 @@
22
#include <Geode/modify/GJBaseGameLayer.hpp>
33
#include <Geode/modify/PlayLayer.hpp>
44
#include <Geode/binding/FMODAudioEngine.hpp>
5+
#include <Geode/binding/GJGameLevel.hpp>
6+
57
using namespace geode::prelude;
68

79
struct $modify(MyGJBaseGameLayer, GJBaseGameLayer) {
810
void resetPlayer(){
9-
yoyle();
11+
auto activworst = Mod::get()->getSettingValue<bool>("activate-worst-deaths");
12+
13+
if (activworst == true){
14+
if (auto* theNode = CCDirector::sharedDirector()->getRunningScene()->getChildByID("PlayLayer")) {
15+
auto playLayer = typeinfo_cast<PlayLayer*>(theNode);
16+
float per = playLayer->getCurrentPercent();
17+
18+
if (per >= (float)Mod::get()->getSettingValue<double>("Percent-of-the-f")) {
19+
yoyle2();
20+
};
21+
22+
if (per < (float)Mod::get()->getSettingValue<double>("Percent-of-the-f")) {
23+
yoyle();
24+
};
25+
};
26+
} else {
27+
yoyle();
28+
}
1029
GJBaseGameLayer::resetPlayer();
1130
}
1231

@@ -30,6 +49,26 @@ struct $modify(MyGJBaseGameLayer, GJBaseGameLayer) {
3049
));
3150
FMODAudioEngine::sharedEngine()->playEffect("y-sfx.ogg"_spr);
3251
}
52+
void yoyle2() {
53+
auto yoylecakeSpr = CCSprite::create("yoylecake2.png"_spr);
54+
55+
auto winSize = CCDirector::get()->getWinSize();
56+
57+
this->addChild(yoylecakeSpr);
58+
59+
yoylecakeSpr->setOpacity(255);
60+
61+
float scaleRatio = (winSize.height / yoylecakeSpr->getContentSize().height);
62+
63+
yoylecakeSpr->setScale(scaleRatio);
64+
65+
yoylecakeSpr->setPosition({ winSize.width / 2, winSize.height / 2 });
66+
yoylecakeSpr->runAction(CCSequence::createWithTwoActions(
67+
CCFadeOut::create(0.5),
68+
CCRemoveSelf::create()
69+
));
70+
FMODAudioEngine::sharedEngine()->playEffect("y-sfx2.mp3"_spr);
71+
}
3372

3473
bool init() {
3574
if (!GJBaseGameLayer::init()) return false;

support.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Support me :D
2+
If you like this mod and want to support me, please subscribe to my YouTube channel: B4uti4GD. Also, but only for Argentina, you can buy me a coffee (not real, just a small donation) with Mercado Pago Argentina, alias: "b4uti4gd.mp".
3+
4+
**Don't donate to the alias if you're not from Argentina, and remember that the quotation marks are not in the alias.**

0 commit comments

Comments
 (0)