Tidying up a little.
This commit is contained in:
parent
7601a60842
commit
f5a40f0ebe
|
@ -66,7 +66,6 @@ function drawTitleScreen() {
|
||||||
snd_select.Play();
|
snd_select.Play();
|
||||||
mus_title.Stop();
|
mus_title.Stop();
|
||||||
mus_sail.Play();
|
mus_sail.Play();
|
||||||
// Run Load Data
|
|
||||||
guiControl.title.show = false;
|
guiControl.title.show = false;
|
||||||
G.gameStarted = true;
|
G.gameStarted = true;
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -62,13 +62,11 @@ pr_ship.Do = function () {
|
||||||
this.moveStepProgress += this.currentSpeed * this.moveStepAmount;
|
this.moveStepProgress += this.currentSpeed * this.moveStepAmount;
|
||||||
if (this.moveStepProgress >= this.moveStepSize) {
|
if (this.moveStepProgress >= this.moveStepSize) {
|
||||||
this.moveStepProgress -= this.moveStepSize;
|
this.moveStepProgress -= this.moveStepSize;
|
||||||
console.log("take step");
|
|
||||||
this.doTakeStep = true;
|
this.doTakeStep = true;
|
||||||
} else {
|
} else {
|
||||||
this.doTakeStep = false;
|
this.doTakeStep = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
this.SeamlessScroll();
|
this.SeamlessScroll();
|
||||||
// console.log(G.player.name + " created at " + G.player.x + ", " + G.player.y);
|
// console.log(G.player.name + " created at " + G.player.x + ", " + G.player.y);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue