Skip to content

Commit

Permalink
Build 1735
Browse files Browse the repository at this point in the history
  • Loading branch information
Auroriax committed Feb 14, 2023
1 parent 3b71ca4 commit 836b607
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 22 deletions.
2 changes: 1 addition & 1 deletion .build/buildnumber.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1733
1735
40 changes: 19 additions & 21 deletions src/standalone_inlined.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5552,9 +5552,13 @@ function generateTitleScreen()
}

if (IsMouseGameInputEnabled()) {
titleImage[10]="..................................";
titleImage[11]=".MOUSE to interact................";
titleImage[12]=".MMB to undo, R to restart........";
if (state.metadata.mouse_drag !== undefined || state.metadata.mouse_rdrag !== undefined) {
titleImage[10]=".Click, Tap, or Drag to interact..";
} else {
titleImage[10]=".Click or Tap to interact.........";
}
titleImage[11]=".Z or Middle Mouse Button to undo.";
titleImage[12]=".R to restart.....................";
}
for (var i=0;i<titleImage.length;i++)
{
Expand Down Expand Up @@ -14889,7 +14893,7 @@ function checkKey(e,justPressed) {
break;
}
if (titleScreen===false || titleMode > 1) {
if ((timer/1000>0.5 || titleMode > 1) && !quittingTitleScreen) {
if ((timer/1000>0.5 || titleMode > 1) && !quittingTitleScreen && justPressed) {

titleSelection = 0;

Expand Down Expand Up @@ -15162,33 +15166,27 @@ function update() {
}
}

var looping=false;
var prevTimestamp;
// Lights, camera…function!
var loop = function(){
looping=true;
var loop = function(timestamp){
if (prevTimestamp !== undefined) {
deltatime = timestamp - prevTimestamp
}
prevTimestamp = timestamp
try {
update();
}
catch (e) {
//Something went wrong, but it's more important that the loop doesn't crash during errors
console.error(e);
}
if (document.visibilityState==='hidden'){
looping=false;
return;
};
setTimeout(loop,deltatime);
// requestAnimationFrame will call loop() at the
// browser's refresh rate (generally 60fps)
// and will auto pause/unpause when the window is minimized
window.requestAnimationFrame(loop);
}

document.addEventListener('visibilitychange', function logData() {
if (document.visibilityState === 'visible') {
if (looping===false){
loop();
}
}
});

loop();</script> <script>/*
window.requestAnimationFrame(loop);</script> <script>/*
* Add gesture support for mobile devices.
*/

Expand Down

0 comments on commit 836b607

Please sign in to comment.