Skip to content

Commit

Permalink
and roid
Browse files Browse the repository at this point in the history
fixed android tghign
  • Loading branch information
JordanSantiagoYT committed Nov 18, 2023
1 parent ec1181c commit ed28aef
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion source/android/AndroidControls.hx
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ import flixel.math.FlxPoint;




class AndroidControls extends FlxSpriteGroup {
public var virtualPad:FlxVirtualPad;
public var hitbox:FlxHitbox;
public var newHitbox:FlxNewHitbox;

public function new() {
super();
cameras = [FlxG.cameras.list[FlxG.cameras.list.length-1]];

switch (AndroidControls.getMode()) {
case 0: // RIGHT_FULL
Expand Down
2 changes: 2 additions & 0 deletions source/android/AndroidControlsSettingsSubState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,13 @@ import haxe.Json;
import options.BaseOptionsMenu;
import options.Option;
import openfl.Lib;
import flixel.FlxG;

using StringTools;

class AndroidControlsSettingsSubState extends BaseOptionsMenu {
public function new() {
cameras = [FlxG.cameras.list[FlxG.cameras.list.length-1]];
title = 'Android settings for virtual pads and hitbox';
rpcTitle = 'Virtual pads and hitbox Menu';

Expand Down
1 change: 1 addition & 0 deletions source/android/AndroidControlsSubState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ class AndroidControlsSubState extends FlxSubState {
var velocityBackground:FlxBackdrop;

override function create() {
cameras = [FlxG.cameras.list[FlxG.cameras.list.length-1]];
background = new FlxSprite().makeGraphic(FlxG.width, FlxG.height, FlxColor.fromHSB(FlxG.random.int(0, 359), FlxG.random.float(0, 0.8), FlxG.random.float(0.3, 1)));
background.alpha = 0.00001;
background.scrollFactor.set();
Expand Down

0 comments on commit ed28aef

Please sign in to comment.