Skip to content

Commit

Permalink
Testando tamanhos menores de fundo considerando que mobiles tem limit…
Browse files Browse the repository at this point in the history
…es de tamanho de texturas
  • Loading branch information
dremendes committed Apr 9, 2020
1 parent 12b8b0c commit 6bf7d86
Show file tree
Hide file tree
Showing 13 changed files with 34 additions and 34 deletions.
42 changes: 21 additions & 21 deletions Bozorun.js

Large diffs are not rendered by default.

Binary file modified assets/images/backgrounds/bgnovo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
Binary file removed assets/images/backgrounds/bgnovo1.png
Binary file not shown.
File renamed without changes
Binary file removed assets/images/backgrounds/bgnovo3.png
Binary file not shown.
Binary file removed assets/images/backgrounds/bgnovo5.png
Binary file not shown.
Binary file removed assets/images/backgrounds/bgnovo7.png
Binary file not shown.
2 changes: 1 addition & 1 deletion manifest/default.json

Large diffs are not rendered by default.

24 changes: 12 additions & 12 deletions source/BozoRunGameState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,9 @@ class BozoRunGameState extends FlxState
private var _pontaDireitaCenario:Int;

// background image
private var _bgImgGrp:FlxGroup;
private var _bgImg0:FlxBackdrop;
private var _bgImg3:FlxBackdrop;
private var _bgImgGrp:FlxSpriteGroup;
private var _fundoCeu:FlxBackdrop;
private var _fundoCenario:FlxBackdrop;
private var _floor:FlxBackdrop;

// collision group for generated platforms
Expand Down Expand Up @@ -130,12 +130,12 @@ class BozoRunGameState extends FlxState

private inline function configurarFundo():Void
{
_bgImg0 = new FlxBackdrop(AssetPaths.sky__png, 0.1, 0, true, false, 0, 0);
_bgImg3 = new FlxBackdrop(AssetPaths.bgnovo__png, 0.4, 0, true, false, 0, 0);
_bgImgGrp = new FlxGroup();
_fundoCeu = new FlxBackdrop(AssetPaths.sky__png, 0.1, 0, true, false, 0, 0);
_fundoCenario = new FlxBackdrop(AssetPaths.bgnovo__png, 0.4, 0, true, false, 0, 0);
_bgImgGrp = new FlxSpriteGroup();

_bgImgGrp.add(_bgImg0);
_bgImgGrp.add(_bgImg3);
_bgImgGrp.add(_fundoCeu);
_bgImgGrp.add(_fundoCenario);

this.add(_bgImgGrp);
}
Expand Down Expand Up @@ -223,8 +223,8 @@ class BozoRunGameState extends FlxState
_laranja3.visible = false;
add(_laranja3);

_bgImg3.y += 30;
_bgImg0.y -= 70;
_fundoCenario.y += 30;
_fundoCeu.y -= 70;

_score = _record;
}
Expand Down Expand Up @@ -536,8 +536,8 @@ class BozoRunGameState extends FlxState
_laranja2.destroy();
_laranja3.destroy();
_ghost.destroy();
_bgImg0.destroy();
_bgImg3.destroy();
_fundoCeu.destroy();
_fundoCenario.destroy();
_floor.destroy();
_bgImgGrp.destroy();
_collisions.destroy();
Expand Down

0 comments on commit 6bf7d86

Please sign in to comment.