Commit Graph
396 Commits
Author SHA1 Message Date
MAJigsaw77andKarimAkra e838fef8e6 Update to extension-haptics and update extension-admob aswell. 2025-04-17 12:55:12 +03:00
sector-aandKarimAkra b03eef01ca Add sharpness for vibrations (iOS only) 2025-04-17 12:13:47 +03:00
sector-aandKarimAkra 3a084accc9 Force amplitude to be bigger on iOS 2025-04-17 12:06:01 +03:00
sector-aandKarimAkra 6b3fb46ae5 Forgot some few vars 2025-04-17 01:03:58 +03:00
zacksgamerzandKarimAkra 1a75c094b3 Refactored Tweening for TouchPointerPlugin, and added skipTween argument to removeAll() 2025-04-17 01:02:28 +03:00
824767af66 Replace the traditional lime Haptics with funkin.haptic
Co-Authored-By: sector-a <82838084+sector-a@users.noreply.github.com>
2025-04-17 01:01:26 +03:00
sector-aandKarimAkra a80e3df799 Add vibrateByPreset method for calling vibrations using VibrationPresets 2025-04-17 00:42:35 +03:00
zacksgamerzandKarimAkra b81ff3c136 Fixed an issue where the touch pointer would permanently persist after switching states. Re-arranged imports in TouchPointerPlugin. 2025-04-17 00:38:35 +03:00
zacksgamerzandKarimAkra ef35ba759e Added pointer fade out to each individual touch pointer. Changed the color of the touch pointer and added a "screen" blendmode. 2025-04-17 00:32:29 +03:00
zacksgamerzandKarimAkra 86d050a11f Refactor swipe threshold calculation to use SwipeUtil across multiple states. 2025-04-17 00:31:19 +03:00
KarimAkra 6a064dc7f7 Fixed an issue with the game looking off on invalid aspect ratios 2025-04-17 00:28:11 +03:00
zacksgamerzandKarimAkra cbc3b6c0b5 Enhance documentation and reorganize imports for the TouchPointerPlugin class 2025-04-17 00:25:56 +03:00
zacksgamerzandKarimAkra 3e71f12871 Remove unused strength calculation in HapticUtil 2025-04-17 00:25:56 +03:00
zacksgamerzandKarimAkra 195e3082df Remove gamepad rumble in HapticUtil since it got reverted in openfl & flixel. 2025-04-16 23:42:51 +03:00
5d2bd38f72 Attempt to implement controller rumble to HapticUtil
Co-Authored-By: Mihai Alexandru <77043862+majigsaw77@users.noreply.github.com>
Co-Authored-By: sector-a <82838084+sector-a@users.noreply.github.com>
2025-04-16 23:31:49 +03:00
KarimAkra 51b82a0a7c Fixed minor issues with swipes and Pointer Plugin 2025-04-16 16:07:59 +03:00
KarimAkra 8119dcca8e Fixed a tiny mistake in TouchPointerPlugin to make it use the instance variable 2025-04-16 16:05:43 +03:00
KarimAkra a289fb7f54 Fixed common issues with the Pointer Plugin 2025-04-16 16:05:20 +03:00
zacksgamerzandKarimAkra 6f9b8f0284 Add TouchPointerPlugin integration and update pointer group initialization 2025-04-16 16:04:58 +03:00
zacksgamerzandKarimAkra 46d10ede43 Comment out pointer group addition and fix variable assignments in TouchPointer 2025-04-16 16:04:38 +03:00
zacksgamerzandKarimAkra 16884ba28e Implement TouchPointerPlugin and remove old legacy TouchPointer code. 2025-04-16 16:04:22 +03:00
sector-aandKarimAkra 0e256021b1 Made note vibrations weaker, removed HAPTIC_VIBRATIONS define, moved vibration option from mobileOptions to options 2025-04-16 15:29:26 +03:00
zacksgamerzandKarimAkra 18dcb8f446 Replaced all old flick checks, swipe checks, etc. with the proper checks from Flixel. Updated flixel ref. Removed justFlicked checks as they are unused.
Replace swipeThreshold updates with the one in FlxTouchManager

Temporarily remove swipeThreshold sets for testing.

Proper SwipeUtil refactoring. Completely replaced all flick and movement checks with the one in Flixel. Rewrote most of the documentation to be more accurate.

Invert flick checks as it already comes inverted from FlxFlick.

Define fixes for SwipeUtil

Fixed null safety issues on compiling.
2025-04-16 15:22:10 +03:00
KarimAkra ea9938a318 rename DISABLE_ADMOB_ADS to FEATURE_ADMOB_ADS 2025-04-16 15:06:07 +03:00
sector-aandKarimAkra f970ea6acf Move TouchUtil and SwipeUtil to funkin.util 2025-04-16 15:00:02 +03:00
e9b1800ec9 Improves HapticUtil's code a bit
Co-Authored-By: Mihai Alexandru <77043862+majigsaw77@users.noreply.github.com>
Co-Authored-By: Karim Akra <144803230+karimakra@users.noreply.github.com>
Co-Authored-By: sector-a <82838084+sector-a@users.noreply.github.com>
2025-04-16 00:22:56 +03:00
e5f3223e76 Refactor FullScreenScaleMode
Co-Authored-By: Mihai Alexandru <77043862+majigsaw77@users.noreply.github.com>
Co-Authored-By: Karim Akra <144803230+karimakra@users.noreply.github.com>
2025-04-15 23:50:40 +03:00
KarimAkraandsector-a d43dfac3e4 Added vibrations to most ResultState ranks and more!
* Vibrations for most ranks
* Vibrations when scrolling through FreeplayState
* Vibrations for notes hits
* Vibrations for game over

Co-Authored-By: sector-a <82838084+sector-a@users.noreply.github.com>
2025-04-15 21:37:14 +03:00
KarimAkra 9cf134fc2a Made more menus adapted to wide-screens & fixed some bugs
* Made stuff on the edge of the screen get moved away by the notch
* Made FreeplayState look better on wide-screens
* Adapted StoryMenuState to wide-screens
* Fixed the transition being small on some screen sizes
* refactored some code
2025-04-15 21:37:06 +03:00
7b1abe437f Add proper configuration for AdMob ads
Co-Authored-By: sector-a <82838084+sector-a@users.noreply.github.com>
Co-Authored-By: Lily <egzozu.be.bas@gmail.com>
2025-04-15 21:37:00 +03:00
KarimAkraandsector-a 193d293dea Added HapticUtil and some vibrations to some menus & scenes!
Added vibrations to:

* TitleState on beat hits during into
* Freeplay when a new rank is slammed to the capsule
* Some vibrations on ResultState (such as when the tally counter increases...)

Co-Authored-By: sector-a <82838084+sector-a@users.noreply.github.com>
2025-04-15 21:36:54 +03:00
7babcfaf6b Implement extension-admob for mobile ads
forgor that

videos and fixed banner size

make this a define

keep thes demo units when using TESTING_ADS only

always enable it on debug builds (?)

Update AdMobUtil.hx

admob features

Update PlayState.hx

Update AdMobUtil.hx

Update AdMobUtil.hx

Show privacy options form if required.

Update Main.hx

Update Main.hx

Update PlayState.hx

Update AdMobUtil.hx

Update AdMobUtil.hx

Update AdMobUtil.hx

Co-Authored-By: Mihai Alexandru <77043862+majigsaw77@users.noreply.github.com>
Co-Authored-By: sector-a <82838084+sector-a@users.noreply.github.com>
2025-04-15 21:36:05 +03:00
KarimAkra ad4b1ce51b Adjusted freeplay to work on wide-screens
fixed some backing cards and the capsule ranking position
2025-04-15 21:34:00 +03:00
944141292d Move part of the code from the old repository
Co-Authored-By: sector-a <82838084+sector-a@users.noreply.github.com>
Co-Authored-By: mcagabe19 <egzozu.be.bas@gmail.com>
Co-Authored-By: Mihai Alexandru <77043862+majigsaw77@users.noreply.github.com>
Co-Authored-By: MoonDroid <81515012+moondroidcoder@users.noreply.github.com>
Co-Authored-By: luckydog7 <59097731+luckydog7@users.noreply.github.com>
2025-04-15 21:32:39 +03:00
Cameron TaylorandEric 36997e8b30 variations loading via fnfc fix in progress 2025-03-27 18:00:24 -04:00
EliteMasterEricandCameron Taylor 0bc938d0fa Implement support for Newgrounds Events 2025-03-27 15:49:09 -04:00
EliteMasterEricandCameron Taylor 96e29b7921 Tweaks to medals and leaderboards (split Erect/character remixes, fix test medals not working etc) 2025-03-27 15:48:53 -04:00
Cameron Taylor fa5a80df08 screenshot plugin fix for high dpi / larger window sizes 2025-03-24 17:42:35 -04:00
LasercarandCameron Taylor e51b6147b5 unused code removed and comment cleanup 2025-03-24 17:32:49 -04:00
LasercarandCameron Taylor 2a9712466e Fixed cursor & preview not being reset for state changes 2025-03-24 17:32:49 -04:00
LasercarandCameron Taylor e9891c4d00 Fancy preview is back!
Also now saves on window close/crash.
Also standardised the option descriptions.
2025-03-24 17:32:49 -04:00
LasercarandCameron Taylor 5c47ed4a8c Set screenshotBeingSpammed to false after state change
Because the timer has been killed
2025-03-24 17:32:49 -04:00
LasercarandCameron Taylor 6e4e7008f2 another whoops 2025-03-24 17:32:49 -04:00
LasercarandCameron Taylor 79e31636e2 Save unsaved screenshots in buffer before state change 2025-03-24 17:32:49 -04:00
LasercarandCameron Taylor 8fcd145d53 Option to only show the preview when a screenshot is saved
Enabled by default, the idea is that the less tech savy players won't bother changing the option to false and end up reporting that they lost screenshots after changing states
2025-03-24 17:32:49 -04:00
LasercarandCameron Taylor e30e6ee4ed comment cleanup 2025-03-24 17:32:49 -04:00
LasercarandCameron Taylor bab920dc82 comment typo 2025-03-24 17:32:49 -04:00
LasercarandCameron Taylor ab2dd75986 now it's actually asynchronous
Though with the caveat of unsaved screenshots not being saved after state change
2025-03-24 17:32:49 -04:00
LasercarandCameron Taylor a8440062b8 fixed duplicate screenshot handling code 2025-03-24 17:32:49 -04:00
LasercarandCameron Taylor 824cf7cf1b frame delayed screenshots + timer'd screenshot save 2025-03-24 17:32:49 -04:00