This commit is contained in:
RandomityGuy 2024-06-30 00:03:03 +05:30
parent 927fa6e700
commit c14b3430d9
3 changed files with 9 additions and 1 deletions

View file

@ -40,7 +40,7 @@ class MarbleGame {
static var canvas:Canvas;
static var instance:MarbleGame;
static var currentVersion = "1.1.2";
static var currentVersion = "1.1.3";
var world:MarbleWorld;
var previewWorld:PreviewWorld;

View file

@ -23,11 +23,13 @@ class Canvas extends GuiControl {
this.extent = new Vector(640, 480);
this.horizSizing = Width;
this.vertSizing = Height;
#if hl
Window.getInstance().addResizeEvent(() -> {
var wnd = Window.getInstance();
onResize(wnd.width, wnd.height);
Console.log('Window resized to ${wnd.width} x ${wnd.height}, scene ${scene2d.width} x ${scene2d.height}');
});
#end
}
public function setContent(content:GuiControl) {

View file

@ -62,6 +62,12 @@ class TouchOptionsGui extends GuiImage {
optionCollection.extent = new Vector(815, 500);
innerCtrl.addChild(optionCollection);
var dynamicJoystick = optionCollection.addOption(1, "Joystick Position", ["Fixed", "Dynamic"], (idx) -> {
Settings.touchSettings.dynamicJoystick = idx == 1;
return true;
}, 0.5, 118);
dynamicJoystick.setCurrentOption(Settings.touchSettings.dynamicJoystick ? 1 : 0);
var cameraMultiplier = optionCollection.addOption(1, "Button-Camera Factor", ["0.5", "1", "1.5", "2", "2.5", "3", "3.5"], (idx) -> {
Settings.touchSettings.buttonJoystickMultiplier = 0.5 + (idx * 0.5);
return true;