Skip to content

Commit b53b75a

Browse files
typo
1 parent 7710442 commit b53b75a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

apps/scratch-clone/pages/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ export function Index() {
1212
<canvas id="myCanvas" width="300" height="300" style={{ border: "1px solid #000000" }}>
1313
</canvas>
1414

15-
<img src='/apple.png' alt="apple" height={50} />
15+
{/* <img src='/apple.png' alt="apple" height={50} />
1616
17-
<img src='/cat.png' alt="apple" height={50} />
17+
<img src='/cat.png' alt="apple" height={50} /> */}
1818

1919
<button onClick={drawHouse}>DRAW HOUSE</button>
2020
</div>

apps/scratch-clone/sprite/Scratch.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export default class Scratch {
1010
changeXBy(value) {
1111
this.x = this.x + value
1212
}
13-
changeyBy(value) {
13+
changeYBy(value) {
1414
this.y = this.y + value
1515
}
1616
whenGreenFlagClicked() {
@@ -19,7 +19,7 @@ export default class Scratch {
1919
// eslint-disable-next-line no-constant-condition
2020
while(true) {
2121
this.changeXBy(1)
22-
this.changeyBy(-1)
22+
this.changeYBy(-1)
2323
}
2424
}
2525
}

0 commit comments

Comments
 (0)