Skip to content

Commit

Permalink
android
Browse files Browse the repository at this point in the history
  • Loading branch information
JordanSantiagoYT committed Nov 10, 2023

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
1 parent aa94bbd commit 0fb6c16
Showing 3 changed files with 8 additions and 2 deletions.
4 changes: 3 additions & 1 deletion source/CoolUtil.hx
Original file line number Diff line number Diff line change
@@ -34,7 +34,7 @@ class CoolUtil

public static var difficulties:Array<String> = [];

public static var defaultSongs:Array<String> = ['tutorial', 'bopeebo', 'fresh', 'dad-battle', 'spookeez', 'south', 'monster', 'pico', 'philly-nice', 'blammed', 'satin-panties', 'high', 'milf', 'cocoa', 'eggnog', 'winter-horrorland', 'senpai', 'roses', 'thorns', 'ugh', 'guns', 'stress'];
public static var defaultSongs:Array<String> = ['tutorial', 'bopeebo', 'fresh', 'dad battle', 'spookeez', 'south', 'monster', 'pico', 'philly nice', 'blammed', 'satin panties', 'high', 'milf', 'cocoa', 'eggnog', 'winter horrorland', 'senpai', 'roses', 'thorns', 'ugh', 'guns', 'stress'];

inline public static function quantize(f:Float, snap:Float){
// changed so this actually works lol
@@ -43,6 +43,7 @@ class CoolUtil
return (m / snap);
}

#if desktop
public static var resW:Float = 1;
public static var resH:Float = 1;
public static var baseW:Float = 1;
@@ -51,6 +52,7 @@ class CoolUtil
resW = wid/baseW;
resH = height/baseH;
}
#end

public static function getUsername():String
{
2 changes: 1 addition & 1 deletion source/SUtil.hx
Original file line number Diff line number Diff line change
@@ -36,7 +36,7 @@ class SUtil
if (aDir != null && aDir.length > 0)
return aDir;
else
return aDir = Tools.getExternalStorageDirectory() + '/.PsychEngine/'; // i wanna do this to have the ability to use same mods from other ports without making storage full
return aDir = Tools.getExternalStorageDirectory() + '/.JSEngine/'; // while using .PsychEngine does save more space, just.. it causes problems with this engine
#else
return '';
#end
4 changes: 4 additions & 0 deletions source/options/GraphicsSettingsSubState.hx
Original file line number Diff line number Diff line change
@@ -102,6 +102,7 @@ class GraphicsSettingsSubState extends BaseOptionsMenu
addOption(option);

#if !html5
#if desktop
//different res cant really be done on browser lol
var option:Option = new Option('Resolution: ',
"What resolution do you want the game to run in?",
@@ -112,6 +113,7 @@ class GraphicsSettingsSubState extends BaseOptionsMenu
['16x9', '32x18', '64x36', '128x72', '214x120', '256x144', '480x270', '640x360', '960x540', '1280x720', '1920x1080', '2560x1440', '3840x2160']);
addOption(option);
option.onChange = onChangeResolution;
#end

//Apparently other framerates isn't correctly supported on Browser? Probably it has some V-Sync shit enabled by default, idk
var option:Option = new Option('Framerate',
@@ -159,6 +161,7 @@ class GraphicsSettingsSubState extends BaseOptionsMenu
}
}
function onChangeResolution() {
#if desktop
var resolutionValue = cast(ClientPrefs.resolution, String); // Assuming 'clientprefs.resolution' holds the selected resolution

if (resolutionValue != null) {
@@ -176,5 +179,6 @@ class GraphicsSettingsSubState extends BaseOptionsMenu
}
}
}
#end
}
}

0 comments on commit 0fb6c16

Please sign in to comment.