-
-
Save Nick0603/8552c10b3d3453a76830694359ab54ad to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 創造角色 | |
var face = createSprite( ["bear.png","cat.png","cow.png"] ); | |
// 重複執行 | |
forever(function() { | |
// 如果 角色 碰觸到 滑鼠 | |
if(face.touched(cursor)) { | |
// 角色 切換下一個 造型 | |
face.nextCostume(); | |
} | |
}); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment