{"id":208526,"student_id":10,"content":"from game import *\nfrom random import randrange\n\ncoins = []\nclock = 0\n\nbg = create_sprite('bgg.png')\nplayer = create_sprite('skull.png')\nplayer.x = 1200\nplayer.y = 900\n\nfor i in range(60):\n c = create_sprite('coin.png')\n c.x = randrange(1200)\n c.y = randrange(900)\n coins.append(c)\n\n\n \ndef loop():\n global clock\n \n clock += 1\n \n if clock == 300:\n bg.layer = 1\n \n for c in coins:\n if c.touched(player):\n for c in coins: c.opacity = 1\n stop()\n \n if key.right: player.x += 3\n if key.left: player.x -= 3\n if key.up: player.y -= 3\n if key.down: player.y += 3\n \nforever(loop)","created_at":"2020-11-30T14:27:25.334+08:00","updated_at":"2020-11-30T14:36:12.615+08:00","name":"地雷區","language":"python","screenshot":{"url":"https://cdn2.koding.school/uploads/project/screenshot/208526/bcb68234917a7f104f887f59838f50b6.jpg"},"parent_id":4,"plugin":"","description":null,"note":null,"status":"public","like_student_ids":[],"is_featured":false,"views":210,"hashid":"kdms66d55","is_content_changed":false,"review_status":"unsubmitted","submitted_at":null,"reviewed_at":null,"advise":null,"is_deleted":false}
[{"id":3631589,"file_name":"coin.png","project_id":208526,"asset_id":287185,"created_at":"2020-11-30T14:27:55.857+08:00","updated_at":"2020-11-30T14:27:55.857+08:00"},{"id":3631591,"file_name":"bgg.png","project_id":208526,"asset_id":287186,"created_at":"2020-11-30T14:31:04.828+08:00","updated_at":"2020-11-30T14:31:09.099+08:00"},{"id":3631590,"file_name":"skull.png","project_id":208526,"asset_id":30797,"created_at":"2020-11-30T14:27:59.404+08:00","updated_at":"2020-11-30T14:27:59.404+08:00"}]
橘蘋學習平台
橘蘋學習平台
我的作品
檢視專案頁
匯出
複製
匯入
刪除
截圖
幫助
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦