Skip to content

Commit

Permalink
Small mobile improvements
Browse files Browse the repository at this point in the history
Small mobile improvements,
Youtube video added to extreme levels,
closure added
  • Loading branch information
NewKrok committed Mar 26, 2018
1 parent 26149b0 commit e13f9e1
Showing 5 changed files with 19 additions and 13 deletions.
2 changes: 1 addition & 1 deletion Project.xml
Original file line number Diff line number Diff line change
@@ -38,7 +38,7 @@
<haxelib name="nape" />
<haxelib name="flixel-ui" />
<haxelib name="howlerjs" />
<!--<haxelib name="closure" /> --><!--Remove it for faster build-->
<haxelib name="closure" /><!--Remove it for faster build-->
<haxelib name="hpp" src="git://github.com/NewKrok/HPP-Package.git" />
<haxelib name="replaykit" src="git://github.com/apostx/haxe_replaykit.git" />

5 changes: 3 additions & 2 deletions ValleyRace.hxproj
Original file line number Diff line number Diff line change
@@ -23,6 +23,7 @@
<class path="C:\work\sdk\haxe\haxe-3.4.3-win\lib\nape\2,0,20" />
<class path="C:\work\sdk\haxe\haxe-3.4.3-win\lib\flixel-ui\2,2,0" />
<class path="C:\work\sdk\haxe\haxe-3.4.3-win\lib\howlerjs\2,0,4\src" />
<class path="C:\work\sdk\haxe\haxe-3.4.3-win\lib\closure\0,2,0\src" />
<class path="C:\work\sdk\haxe\haxe-3.4.3-win\lib\hpp\git" />
<class path="C:\work\sdk\haxe\haxe-3.4.3-win\lib\replaykit\git" />
<class path="source" />
@@ -31,12 +32,12 @@
</classpaths>
<!-- Build options -->
<build>
<option directives="flixel=4.3.0&#xA;openfl=3.6.1&#xA;lime=2.9.1&#xA;hscript=2.1.1&#xA;nape=2.0.20&#xA;flixel-ui=2.2.0&#xA;howlerjs=2.0.4&#xA;hpp=0.0.0&#xA;replaykit=0.0.0&#xA;HXCPP_QUIET&#xA;openfl-next&#xA;tools=2.9.1&#xA;FLX_NO_DEBUG&#xA;no-compilation&#xA;openfl-html5&#xA;canvas&#xA;NAPE_RELEASE_BUILD&#xA;lime-html5&#xA;html5&#xA;web&#xA;html5&#xA;display" />
<option directives="flixel=4.3.0&#xA;openfl=3.6.1&#xA;lime=2.9.1&#xA;hscript=2.1.1&#xA;nape=2.0.20&#xA;flixel-ui=2.2.0&#xA;howlerjs=2.0.4&#xA;closure=0.2.0&#xA;hpp=0.0.0&#xA;replaykit=0.0.0&#xA;HXCPP_QUIET&#xA;openfl-next&#xA;tools=2.9.1&#xA;FLX_NO_DEBUG&#xA;no-compilation&#xA;openfl-html5&#xA;canvas&#xA;NAPE_RELEASE_BUILD&#xA;lime-html5&#xA;html5&#xA;web&#xA;html5&#xA;display" />
<option flashStrict="False" />
<option noInlineOnDebug="False" />
<option mainClass="ApplicationMain" />
<option enabledebug="False" />
<option additional="--remap flash:openfl&#xA;--macro flixel.system.macros.FlxDefines.run()&#xA;--macro allowPackage(&quot;flash&quot;)" />
<option additional="--macro closure.Compiler.use()&#xA;--remap flash:openfl&#xA;--macro flixel.system.macros.FlxDefines.run()&#xA;--macro allowPackage(&quot;flash&quot;)" />
</build>
<!-- haxelib libraries -->
<haxelib>
10 changes: 5 additions & 5 deletions source/valleyrace/game/substate/StartLevelPanel.hx
Original file line number Diff line number Diff line change
@@ -30,11 +30,11 @@ import valleyrace.util.SavedDataUtil.LevelSavedData;
class StartLevelPanel extends FlxSubState
{
var youtubeHelps:Array<String> = [
"https://www.youtube.com/watch?v=rXURdr8JVrg",
"https://www.youtube.com/watch?v=rXURdr8JVrg",
"https://www.youtube.com/watch?v=rXURdr8JVrg",
"https://www.youtube.com/watch?v=rXURdr8JVrg",
"https://www.youtube.com/watch?v=rXURdr8JVrg"
"https://www.youtube.com/watch?v=WSVMh8Ivqb8",
"https://www.youtube.com/watch?v=kuA5VwsPhJs",
"https://www.youtube.com/watch?v=lCeuKF9ni3Y",
"https://www.youtube.com/watch?v=k8nDp-Qczyg",
"https://www.youtube.com/watch?v=6mVm_jZ3Mg0"
];

var header:FlxSpriteGroup;
1 change: 1 addition & 0 deletions source/valleyrace/menu/view/UpgradeButton.hx
Original file line number Diff line number Diff line change
@@ -107,6 +107,7 @@ class UpgradeButton extends ExtendedButtonWithTween
if (level < carData.price.length - 1)
{
priceText.text = NumberUtil.formatNumber(carData.price[level + (isUnlocked ? 1 : 0)]);
title.text = isUnlocked ? "UPGRADE" : "UNLOCK";
}
else
{
14 changes: 9 additions & 5 deletions source/valleyrace/state/GameState.hx
Original file line number Diff line number Diff line change
@@ -243,10 +243,10 @@ class GameState extends FlxState
case 5:
createOpponentCars();
createStaticElements();
createCarFogs();
if (AppConfig.IS_DESKTOP_DEVICE) createCarFogs();
createCar();
createBridges();
createSmallRocks();
if (AppConfig.IS_DESKTOP_DEVICE) createSmallRocks();

case 6:
for (i in 0...levelData.polygonGroundData.length)
@@ -339,7 +339,7 @@ class GameState extends FlxState
coins[ i ].reset(levelData.collectableItems[ i ].x, levelData.collectableItems[ i ].y);
}

for (i in 0...smallRocks.length) smallRocks[ i ].reset(0, 0);
if (AppConfig.IS_DESKTOP_DEVICE) for (rock in smallRocks) rock.reset(0, 0);

//car.teleportTo(levelData.startPoint.x - 540, levelData.startPoint.y); // -180 / -360 / -540 for ghosts
car.teleportTo(levelData.startPoint.x, levelData.startPoint.y);
@@ -833,8 +833,12 @@ class GameState extends FlxState
}

updateBridges();
updateSmallRocks();
updateCarFogs();

if (AppConfig.IS_DESKTOP_DEVICE)
{
updateSmallRocks();
updateCarFogs();
}

if (!isLost)
{

0 comments on commit e13f9e1

Please sign in to comment.