These are chat archives for ESova/program

11th
Dec 2016
esova-nemanja-1234
@esova-nemanja-1234
Dec 11 2016 23:13
Meni u 82-oj lekciji nece da prihvati ovaj kod

gems = this.findItems();

while (hero.pos.x < 20) {
// move() takes objects with x and y properties, not just numbers.
hero.move({'x': 20, 'y': 35});
}

while (hero.pos.x < 25) {
// A gem's position is an object with x and y properties.
gem0 = gems[0];
hero.move(gem0.pos);
}
while (this.pos.x < 30) {
this.move({'x': 30, 'y': 35});
}
while (this.pos.x < 35) {
gem1 = gems[1];
this.move(gem1.pos);
}
while (this.pos.x < 40) {
this.move({'x': 40, 'y': 35});
}
while (this.pos.x < 45) {
gem2 = gems[2];
this.move(gem2.pos);
}
while (this.pos.x < 50) {
this.move({'x': 50, 'y': 35});
}
while (this.pos.x < 55) {
gem3 = gems[3];
this.move(gem3.pos);
}

Milan Avramović
@mikintosh
Dec 11 2016 23:15
@esova-nemanja-1234 Posalji nam screenshot sa problemom koji je izasao
esova-nemanja-1234
@esova-nemanja-1234
Dec 11 2016 23:15
Pise da moram varijablu var gems da napisem
Milan Avramović
@mikintosh
Dec 11 2016 23:16
@esova-nemanja-1234 Ako moras da pojedes zabu, pojedi je odmah nemoj mnogo da je gledas. Ako moras da pojedes vise zaba, prvo pojedi najvecu...
to verovatno znaci: var gems = this.findItems();
esova-nemanja-1234
@esova-nemanja-1234
Dec 11 2016 23:18
Probao sam tako nece opet :D
Milan Avramović
@mikintosh
Dec 11 2016 23:18
daj screenshot
esova-nemanja-1234
@esova-nemanja-1234
Dec 11 2016 23:30
Uspeo sam da uradim :D