{"id":199288,"student_id":10,"content":"import game\nimport random \n\ngame.game.set_backdrop('sky.jpg')\n\nsnow = []\n\nfor i in range(300):\n s = game.create_sprite('snow.png')\n s.x = random.randrange(1200)\n s.y = random.randrange(900)\n s.scale = random.random()\n s.opacity = random.random()\n snow.append(s) \n\n\ndef loop():\n for s in snow:\n s.x += 1 * s.scale + 0.1\n s.y += 2 * s.scale + 0.1\n if s.x \u003e 1230: s.x -= 1260\n if s.y \u003e 930: s.y -= 960\n\ngame.game.forever(loop)","created_at":"2020-10-28T18:24:21.997+08:00","updated_at":"2024-08-22T17:22:15.854+08:00","name":"模擬下雪(完整版)","language":"python","screenshot":{"url":"https://cdn5.koding.school/uploads/project/screenshot/199288/9322f730fe37fe9e086846a2721f235b.jpg"},"parent_id":4,"plugin":"","description":null,"note":null,"status":"public","like_student_ids":[],"is_featured":false,"views":239,"hashid":"36ysme3qv","is_content_changed":false,"review_status":"unsubmitted","submitted_at":null,"reviewed_at":null,"advise":null,"is_deleted":false}
[{"id":3428267,"file_name":"sky.jpg","project_id":199288,"asset_id":274937,"created_at":"2020-10-28T18:24:32.195+08:00","updated_at":"2020-10-28T18:24:32.195+08:00"},{"id":3428268,"file_name":"snow.png","project_id":199288,"asset_id":16812,"created_at":"2020-10-28T18:24:33.249+08:00","updated_at":"2020-10-28T18:24:33.249+08:00"}]
橘蘋學習平台
橘蘋學習平台
我的作品
檢視專案頁
匯出
複製
匯入
刪除
截圖
幫助
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦