Merge pull request #102 from Simon-Mong/patch-25

Update objects.js (sprite scale)
pull/108/head
Michael Aschauer 2021-09-15 11:57:14 +02:00 zatwierdzone przez GitHub
commit abefbaf614
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 3 dodań i 1 usunięć

Wyświetl plik

@ -35,6 +35,7 @@ SpriteMorph.prototype.blockColor = {
SpriteMorph.prototype.origInit = SpriteMorph.prototype.init; SpriteMorph.prototype.origInit = SpriteMorph.prototype.init;
SpriteMorph.prototype.init = function(globals) { SpriteMorph.prototype.init = function(globals) {
this.origInit(globals); this.origInit(globals);
this.scale = 0.1;
this.hide(); this.hide();
this.lastJumped = false; this.lastJumped = false;
this.turtle = null; this.turtle = null;
@ -1350,6 +1351,7 @@ SpriteMorph.prototype.resetAll = function () {
myself.isRunning = false; myself.isRunning = false;
myself.setColor(StageMorph.prototype.defaultPenColor); myself.setColor(StageMorph.prototype.defaultPenColor);
myself.parentThatIsA(StageMorph).setPenSize(1); myself.parentThatIsA(StageMorph).setPenSize(1);
myself.scale = 0.1;
myself.gotoXY(0,0); myself.gotoXY(0,0);
myself.setHeading(90); myself.setHeading(90);
myself.clear(); myself.clear();
@ -2645,7 +2647,7 @@ StageMorph.prototype.renderCycle = function () {
this.renderer.changed = false; this.renderer.changed = false;
// this is a hack but it seems to be need for a clear render! // this is a hack but it seems to be need for a clear render!
setTimeout(()=> this.changed(), 5) // setTimeout(()=> this.changed(), 5)
} }
// this.render(); // this.render();
// this.changed(); // this.changed();