{"id":1023736,"student_id":2589,"content":"import game\nimport random\n\n\ngame.set_backdrop(\"bg.jpg\")\nswing = game.create_sprite(\"swing_0.png\", \"swing_1.png\")\napple = game.create_sprite(\"apple.png\")\narcher = game.create_sprite(\"archer.png\")\nbow = game.create_sprite(\"bow.png\")\narrow = game.create_sprite(\"arrow_0.png\", \"arrow_1.png\")\nlife = game.create_sprite(\"0.png\", \"1.png\", \"2.png\", \"3.png\", \"4.png\", \"5.png\")\n\nlife.x = 200\nlife.y = 75\nlife.costume_id = 5\n\nswing.x = 900\napple.x = 900\nswing.y = 400\napple.y = 400\n\narcher.y = 600\narcher.x = 300\nbow.y = 600\nbow.x = 300\narrow.y = 600\narrow.x = 300\n\nbow.direction = 135\narrow.direction = 135\n\nactive = False\nscore = 0\n\n\ndef loop():\n global active, score\n\n if game.cursor.is_down == True and bow.direction \u003e 30 and arrow.x == 300:\n bow.direction = bow.direction - 2\n arrow.direction = arrow.direction - 2\n active = True\n\n if game.cursor.is_down == False and active == True:\n arrow.step_forward(25)\n arrow.direction = arrow.direction + 1\n\n if arrow.touched(apple) == True:\n apple.hidden = True\n arrow.costume_id = 1\n score = score + 1\n\n if arrow.x \u003e 1200 or arrow.y \u003e 900:\n arrow.x = 300\n arrow.y = 600\n active = False\n bow.direction = 135\n arrow.direction = 135\n apple.hidden = False\n\n if arrow.costume_id == 1:\n rand = random.randrange(200, 700)\n apple.y = rand\n swing.y = rand\n else:\n life.costume_id = life.costume_id - 1\n\n arrow.costume_id = 0\n\n if life.costume_id == 0:\n game.create_sprite(\"gameover.png\")\n game.stop()\n\n game.draw_text(score, 1080, 50, \"white\", 60)\n\n if arrow.touched(swing) == True:\n swing.costume_id = 1\n else:\n swing.costume_id = 0\n\n\ngame.forever(loop)\n","created_at":"2025-05-29T10:08:39.289+08:00","updated_at":"2025-05-29T10:08:45.442+08:00","name":"4_B_B_射蘋果高手_綜合練習_【講解】驚嚇的叩叮表情 副本","language":"python","screenshot":{"url":null},"parent_id":1011554,"plugin":"","description":null,"note":null,"status":"public","like_student_ids":[],"is_featured":false,"views":41,"hashid":"jzmsrrpwn","is_content_changed":false,"review_status":"unsubmitted","submitted_at":null,"reviewed_at":null,"advise":null,"is_deleted":false}
[{"id":38684906,"file_name":"gameover.png","project_id":1023736,"asset_id":267838,"created_at":"2025-05-29T10:08:39.294+08:00","updated_at":"2025-05-29T10:08:39.294+08:00"},{"id":38684907,"file_name":"bg.jpg","project_id":1023736,"asset_id":267839,"created_at":"2025-05-29T10:08:39.296+08:00","updated_at":"2025-05-29T10:08:39.296+08:00"},{"id":38684908,"file_name":"swing_1.png","project_id":1023736,"asset_id":267840,"created_at":"2025-05-29T10:08:39.297+08:00","updated_at":"2025-05-29T10:08:39.297+08:00"},{"id":38684909,"file_name":"swing_0.png","project_id":1023736,"asset_id":267841,"created_at":"2025-05-29T10:08:39.298+08:00","updated_at":"2025-05-29T10:08:39.298+08:00"},{"id":38684910,"file_name":"0.png","project_id":1023736,"asset_id":267842,"created_at":"2025-05-29T10:08:39.299+08:00","updated_at":"2025-05-29T10:08:39.299+08:00"},{"id":38684911,"file_name":"1.png","project_id":1023736,"asset_id":267843,"created_at":"2025-05-29T10:08:39.300+08:00","updated_at":"2025-05-29T10:08:39.300+08:00"},{"id":38684912,"file_name":"2.png","project_id":1023736,"asset_id":267844,"created_at":"2025-05-29T10:08:39.301+08:00","updated_at":"2025-05-29T10:08:39.301+08:00"},{"id":38684913,"file_name":"3.png","project_id":1023736,"asset_id":267845,"created_at":"2025-05-29T10:08:39.301+08:00","updated_at":"2025-05-29T10:08:39.301+08:00"},{"id":38684914,"file_name":"4.png","project_id":1023736,"asset_id":267846,"created_at":"2025-05-29T10:08:39.302+08:00","updated_at":"2025-05-29T10:08:39.302+08:00"},{"id":38684915,"file_name":"5.png","project_id":1023736,"asset_id":267847,"created_at":"2025-05-29T10:08:39.303+08:00","updated_at":"2025-05-29T10:08:39.303+08:00"},{"id":38684916,"file_name":"arrow_1.png","project_id":1023736,"asset_id":267848,"created_at":"2025-05-29T10:08:39.304+08:00","updated_at":"2025-05-29T10:08:39.304+08:00"},{"id":38684917,"file_name":"archer.png","project_id":1023736,"asset_id":267849,"created_at":"2025-05-29T10:08:39.305+08:00","updated_at":"2025-05-29T10:08:39.305+08:00"},{"id":38684918,"file_name":"arrow_0.png","project_id":1023736,"asset_id":267850,"created_at":"2025-05-29T10:08:39.306+08:00","updated_at":"2025-05-29T10:08:39.306+08:00"},{"id":38684919,"file_name":"bow.png","project_id":1023736,"asset_id":267851,"created_at":"2025-05-29T10:08:39.307+08:00","updated_at":"2025-05-29T10:08:39.307+08:00"},{"id":38684920,"file_name":"apple.png","project_id":1023736,"asset_id":267852,"created_at":"2025-05-29T10:08:39.308+08:00","updated_at":"2025-05-29T10:08:39.308+08:00"}]
橘蘋學習平台
我的作品
檢視專案頁
匯出
複製
匯入
刪除
截圖
繁中
简中
English
日本語
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦