Skip to content

Commit

Permalink
fix main levels by LankerBG
Browse files Browse the repository at this point in the history
  • Loading branch information
user95401 committed Sep 26, 2024
1 parent 56d73ab commit cf3fb49
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 7 deletions.
2 changes: 1 addition & 1 deletion data/mods.list.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "v2.9.0-list1",
"version": "v2.9.1-list1",
"list": [

"https://github.com/MathieuAR-GDPSFH/Gauntlets-Position-Fix/releases/latest/download/jecket.gauntlets_position_fix.geode",
Expand Down
Binary file modified data/mods/user95401.mainlevelseditor.geode
Binary file not shown.
2 changes: 1 addition & 1 deletion mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
},
"id": "user95401.gemetry_trash",
"name": "Gemetry Trash",
"version": "v2.9.0",
"version": "v2.9.1",
"developer": "user95401",
"description": "",
"early-load": true,
Expand Down
14 changes: 14 additions & 0 deletions src/_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,20 @@

#ifdef GEODE_IS_WINDOWS

#include <Geode/modify/CCNode.hpp>
class $modify(FLAlertLayerShowupStartPointExt, CCNode) {
$override void visit() {
CCNode::visit();
if (auto casted = typeinfo_cast<FLAlertLayer*>(this)) {
if (casted->m_mainLayer) {
if (casted->m_mainLayer->getContentSize().equals(CCDirector::get()->getWinSize())) {
casted->m_mainLayer->setAnchorPoint(getMousePos() / casted->m_mainLayer->getContentSize());
}
};
};
}
};

#include <Geode/modify/AppDelegate.hpp>
class $modify(WindowNameExt, AppDelegate) {
$override void applicationWillEnterForeground() {
Expand Down
6 changes: 1 addition & 5 deletions src/random_shit/menulayer_ruinify.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,11 @@ class $modify(MenuGameLayerExt, MenuGameLayer) {
auto mousezone = CCSize(1, 1) * 42;
auto mouseRect = CCRect(mousePos - mousezone, mousePos + mousezone);
auto playrRect = plr->getObjectRect();
//log::debug("mousePos {}", mousePos);
//log::debug("playrPos {}", playrPos);
//log::debug("mouseRect {}", mouseRect);
//log::debug("playrRect {}", mouseRect);
if (playrRect.intersectsRect(mouseRect)) {
//log::warn("{} intersectsRect {}", playrRect, mouseRect);
plr->m_holdingLeft = playrPos.x < mousePos.x;
plr->m_holdingRight = playrPos.x > mousePos.x;
if (!plr->m_isSpider && !plr->m_isBall) plr->m_jumpBuffered = playrPos.y > mousePos.y;
if (!plr->m_isSpider && !plr->m_isBall) plr->m_jumpBuffered = playrPos.y + (mousezone.height / 2) > mousePos.y;
}
}
$override bool init() {
Expand Down
2 changes: 2 additions & 0 deletions support.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,15 @@ trending icon
#### [LankerBG](https://www.youtube.com/@GDLankerBG)
```
play sounds
can let go and ClupSt3p main levels
```

#### waxai
```
bug reports
songs
textures
adversting
```

## Reported Bugs:
Expand Down

0 comments on commit cf3fb49

Please sign in to comment.