Learn about Tynker
Javascript Maze

Javascript Maze

by JDM2007

Remix Project
0 0

Description

this.onStart(function() { while (true) { this.wait(0.2); this.looks.nextCostume(); } }); this.onKeyPress("left arrow", function () { this.motion.pointTowards("left edge"); this.motion.move(10); }); this.onKeyPress("right arrow", function () { this.motion.pointTowards("right edge"); this.motion.move(10); }); this.onKeyPress("up arrow", function () { this.motion.pointTowards("top edge"); this.motion.move(10); }); this.onKeyPress("down arrow", function () { this.motion.pointTowards("bottom edge"); this.motion.move(10); });

Tags

5-7, 8-9, 10-12, 13-14, 15-17

Share with Friends
f t w