Skip to content

Commit

Permalink
FarshArAllRunning
Browse files Browse the repository at this point in the history
  • Loading branch information
saadjumani authored Jul 17, 2022
1 parent 239e523 commit 96b961f
Show file tree
Hide file tree
Showing 15 changed files with 18 additions and 20 deletions.
2 changes: 1 addition & 1 deletion 1390892.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion __game-scripts.js

Large diffs are not rendered by default.

24 changes: 11 additions & 13 deletions __loading__.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ pc.script.createLoadingScreen(function (app) {
splash.style.display = 'none';

var logo = document.createElement('img');
logo.src = ASSET_PREFIX + 'logo.png';
logo.src = 'https://farsh-mobile.s3.me-south-1.amazonaws.com/farsh_logo_high_res_1.png';
splash.appendChild(logo);
logo.onload = function () {
splash.style.display = 'block';
Expand All @@ -35,7 +35,7 @@ pc.script.createLoadingScreen(function (app) {

var setProgress = function (value) {
var bar = document.getElementById('progress-bar');
if (bar) {
if(bar) {
value = Math.min(1, Math.max(0, value));
bar.style.width = value * 100 + '%';
}
Expand All @@ -46,46 +46,46 @@ pc.script.createLoadingScreen(function (app) {
'body {',
' background-color: #283538;',
'}',

'',
'#application-splash-wrapper {',
' position: absolute;',
' top: 0;',
' left: 0;',
' height: 100%;',
' width: 100%;',
' background-color: #283538;',
' background-color: #ffffff;',
'}',

'',
'#application-splash {',
' position: absolute;',
' top: calc(50% - 28px);',
' width: 264px;',
' left: calc(50% - 132px);',
'}',

'',
'#application-splash img {',
' width: 100%;',
'}',

'',
'#progress-bar-container {',
' margin: 20px auto 0 auto;',
' height: 2px;',
' width: 100%;',
' background-color: #1d292c;',
'}',

'',
'#progress-bar {',
' width: 0%;',
' height: 100%;',
' background-color: #f60;',
' background-color: #eeeeee;',
'}',
'',
'@media (max-width: 480px) {',
' #application-splash {',
' width: 170px;',
' left: calc(50% - 85px);',
' }',
'}'

].join('\n');

var style = document.createElement('style');
Expand All @@ -99,14 +99,12 @@ pc.script.createLoadingScreen(function (app) {
document.head.appendChild(style);
};


createCss();

showSplash();

app.on('preload:end', function () {
app.off('preload:progress');
});
app.on('preload:progress', setProgress);
app.on('start', hideSplash);
});
});
4 changes: 2 additions & 2 deletions __settings__.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ CONTEXT_OPTIONS = {
'alpha': false,
'preserveDrawingBuffer': false,
'preferWebGl2': true,
'powerPreference': "default"
'powerPreference': "high-performance"
};
SCRIPTS = [ 77854887, 78097772, 78382718, 79014545, 79153391, 79459251, 79465795, 79469394, 82175600, 82307731, 85572451, 86079364, 86144986, 86147006, 86182389 ];
SCRIPTS = [ 77854887, 78097772, 78382718, 79014545, 79153391, 79459251, 79465795, 79469394, 82175600, 82307731, 86079364, 86144986, 86147006, 86182389, 86761091, 89559195, 89696259, 89697541, 89706577, 89717413, 91478011, 91628463, 92663277, 92668910, 92676263, 93407776 ];
CONFIG_FILENAME = "config.json";
INPUT_SETTINGS = {
useKeyboard: true,
Expand Down
2 changes: 1 addition & 1 deletion config.json

Large diffs are not rendered by default.

Binary file modified files/assets/86173568/1/SliderKnot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified files/assets/86174925/1/HorAlpha.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added files/assets/87530980/1/LadyModel.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added files/assets/89683130/1/VertSlider.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added files/assets/91587903/1/Resize.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added files/assets/91591081/1/Blank.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added files/assets/92380612/1/Heli.blend
Binary file not shown.
4 changes: 2 additions & 2 deletions playcanvas-stable.min.js

Large diffs are not rendered by default.

0 comments on commit 96b961f

Please sign in to comment.