MCPcopy Create free account
hub / github.com/braziljs/eloquente-javascript / updateView

Method updateView

code/animatevillage.js:62–68  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

60
61
62 updateView() {
63 let pos = places[this.worldState.place]
64 this.robotElt.style.top = (pos.y - 38) + "px"
65 this.robotElt.style.left = (pos.x - 16) + "px"
66
67 this.text.textContent = ` Turn ${this.turn} `
68 }
69
70 updateParcels() {
71 while (this.parcels.length) this.parcels.pop().remove()

Callers 2

constructorMethod · 0.95
tickMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected