Skip to content

Commit de34775

Browse files
committed
Update main.blocks, main.ts
1 parent 50c0b9f commit de34775

File tree

4 files changed

+7
-2
lines changed

4 files changed

+7
-2
lines changed

.github/makecode/blocks.png

12.8 KB
Loading

.github/makecode/blocksdiff.png

6.83 KB
Loading

main.blocks

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<xml xmlns="https://developers.google.com/blockly/xml"><block type="pxt-on-start" id="jklA:2+%8I!;1ybm8^#j" x="0" y="0"/></xml>
1+
<xml xmlns="https://developers.google.com/blockly/xml"><block type="pxt-on-start" id="jklA:2+%8I!;1ybm8^#j" x="70" y="170"/><block type="keyonevent" id="+X5IMjXuG:wHI*:u7D:`" x="310" y="230"><field name="button">controller.A</field><field name="event">ControllerButtonEvent.Pressed</field></block><block type="gameupdate" id="M}26)Y+Dr,%U2}-bj^Zp" x="310" y="450"/></xml>

main.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,6 @@
1-
1+
controller.A.onEvent(ControllerButtonEvent.Pressed, function () {
2+
3+
})
4+
game.onUpdate(function () {
5+
6+
})

0 commit comments

Comments
 (0)