1
0
Fork 0
mirror of https://github.com/ninjamuffin99/Funkin.git synced 2025-08-30 02:14:51 +00:00

Compare commits

...

6 commits

Author SHA1 Message Date
Lasercar eeb287f1c1
Merge 37dc646b8b into 54ad34e5d0 2025-08-29 17:49:37 -04:00
MAJigsaw77 54ad34e5d0 Fix the app icon not working on Linux. 2025-08-27 14:57:20 -07:00
Cameron Taylor f6fb11de4c hardcode 'touch here to play' graphic to be scaled at 0.5x instead FUNK-2710 2025-08-28 03:25:53 +08:00
MoonDroid 83aa45a318 4x4 Compression for all of pico's results animations 2025-08-28 01:19:11 +08:00
MoonDroid 65186a336d Update Mobile build number 2025-08-28 00:40:24 +08:00
Lasercar 37dc646b8b Random cap difficulty & BPM value visible fix 2025-08-03 21:19:27 +10:00
5 changed files with 42 additions and 12 deletions

View file

@ -9,6 +9,18 @@
"asset": "asset/shared/images/resultScreen/results-pico/resultsPERFECT/spritemap1.png",
"blocksize": "4x4"
},
{
"asset": "asset/shared/images/resultScreen/results-pico/resultsGREAT/spritemap1.png",
"blocksize": "4x4"
},
{
"asset": "asset/shared/images/resultScreen/results-pico/resultsGOOD/spritemap1.png",
"blocksize": "4x4"
},
{
"asset": "asset/shared/images/resultScreen/results-pico/resultsSHIT/spritemap1.png",
"blocksize": "4x4"
},
{
"asset": "assets/preload/images/NOTE_assets.png",
"blocksize": "4x4"

View file

@ -37,7 +37,7 @@ class Project extends HXProject
* The build's number and version code.
* Used when publishing the game to mobile app stores. Should increment with each patch.
*/
static final BUILD_NUMBER:Int = 2;
static final BUILD_NUMBER:Int = 51;
/**
* The game's name. Used as the default window title.
@ -489,7 +489,11 @@ class Project extends HXProject
configureHaxelibs();
configureASTCTextures();
configureAssets();
configureIcons();
if (!isLinux())
{
configureIcons();
}
if (FEATURE_MOBILE_ADVERTISEMENTS.isEnabled(this))
{

View file

@ -544,7 +544,7 @@ class SongMenuItem extends FlxSpriteGroup
initData(null, styleData, 1);
y = intendedY(0) + 10;
targetPos.x = x;
alpha = 0.5;
alpha = 0;
songText.visible = false;
favIcon.visible = false;
favIconBlurred.visible = false;

View file

@ -250,7 +250,7 @@ class FunkinPreloader extends FlxBasePreloader
touchHereToPlay = createBitmap(TouchHereToPlayImage, function(bmp:Bitmap) {
// Scale and center the touch to start image.
// We have to do this inside the async call, after the image size is known.
bmp.scaleX = bmp.scaleY = ratio;
bmp.scaleX = bmp.scaleY = ratio * 0.5;
bmp.x = (this._width - bmp.width) / 2;
bmp.y = (this._height - bmp.height) / 2;
});
@ -803,16 +803,12 @@ class FunkinPreloader extends FlxBasePreloader
#if FEATURE_TOUCH_HERE_TO_PLAY
function overTouchHereToPlay(e:MouseEvent):Void
{
touchHereToPlay.scaleX = touchHereToPlay.scaleY = ratio * 1.1;
touchHereToPlay.x = (this._width - touchHereToPlay.width) / 2;
touchHereToPlay.y = (this._height - touchHereToPlay.height) / 2;
scaleAndCenter(touchHereToPlay, ratio * 1.1 * 0.5);
}
function outTouchHereToPlay(e:MouseEvent):Void
{
touchHereToPlay.scaleX = touchHereToPlay.scaleY = ratio * 1;
touchHereToPlay.x = (this._width - touchHereToPlay.width) / 2;
touchHereToPlay.y = (this._height - touchHereToPlay.height) / 2;
scaleAndCenter(touchHereToPlay, ratio * 0.5);
}
function mouseDownTouchHereToPlay(e:MouseEvent):Void
@ -822,8 +818,7 @@ class FunkinPreloader extends FlxBasePreloader
function onTouchHereToPlay(e:MouseEvent):Void
{
touchHereToPlay.x = (this._width - touchHereToPlay.width) / 2;
touchHereToPlay.y = (this._height - touchHereToPlay.height) / 2;
scaleAndCenter(touchHereToPlay, ratio * 0.5);
removeEventListener(MouseEvent.CLICK, onTouchHereToPlay);
touchHereSprite.removeEventListener(MouseEvent.MOUSE_OVER, overTouchHereToPlay);
@ -833,6 +828,13 @@ class FunkinPreloader extends FlxBasePreloader
// This is the actual thing that makes the game load.
immediatelyStartGame();
}
function scaleAndCenter(bmp:Bitmap, scale:Float)
{
bmp.scaleX = bmp.scaleY = scale;
bmp.x = (this._width - bmp.width) / 2;
bmp.y = (this._height - bmp.height) / 2;
}
#end
public static final TOTAL_STEPS:Int = 11;

View file

@ -6,6 +6,11 @@ import haxe.macro.Context;
import haxe.macro.Expr;
#end
#if (linux && !macro)
@:image('art/icons/iconOG.png')
class ApplicationIcon extends lime.graphics.Image {}
#end
@:access(lime.app.Application)
@:access(lime.system.System)
@:access(openfl.display.Stage)
@ -31,6 +36,13 @@ class ApplicationMain
{
var app = new openfl.display.Application();
#if linux
app.onCreateWindow.add(function(window:lime.ui.Window):Void
{
window.setIcon(new ApplicationIcon());
});
#end
#if !disable_preloader_assets
ManifestResources.init(config);
#end