◤Spring Platformer◢ 

Instructions: :日本語は下です:\nハートと星、拡散お願いします!\nHearts and stars, please spread the word!\n旗3回押してください!\nPress the flag 3 times!\n\nEnglish:_____________________________________\n◀How to use▶\n・arrow keys\n・WASD keys\nto move.\nYou can also play on mobile！\n\n◀Description▶\nIt's already spring (?), so I made a spring-like platformer!\nThis platformer is difficult.\nThere is also a world record, so please do your best!\n: The author is 108 seconds!\n\n日本語:_____________________________________\n◀使い方▶\n・矢印キー\n・WASD キー\nで移動します。\nモバイルでも遊べるようにしました！\n\n◀説明▶\nもう春(?)なので、春っぽいプラットフォーマーを作りました！\nこのプラットフォーマーは難しいです.\n世界記録もありますので頑張ってください！\n:作者は108秒!

@Stage\n\nwhen I receive [rolling v]\nswitch backdrop to (game v)\n\nwhen I receive [reset v]\nhide variable [time v]\nset [stage v] to [1]\nhide variable [☁ world time v]\nswitch backdrop to (senntaku v)\n\nwhen I receive [start v]\nset [time v] to [0]\nforever\n    wait (1) seconds\n    change [time v] by (1)\nend\n\nwhen flag clicked\nbroadcast (reset v)\n\nwhen I receive [start v]\nforever\n    if <(stage) > [9]> then\n        broadcast (修理鵜 v)\n    end\nend\n\nwhen I receive [修理鵜 v]\nstop [other scripts in sprite v]\nswitch backdrop to (game2 v)\nshow variable [☁ world time v]\nshow variable [time v]\nif <(Time) < (☁ World Time)> then\n    set [☁ world time v] to (Time)\nend\n\nwhen I receive [start v]\nforever\n    play sound [Tobu - Hope \(Original Mix\) v] until done\nend\n\n@軽量化\n\nwhen flag clicked\n\ncreate clone of (_myself_ v)\n\ndelete this clone\n\nstop all sounds\n\n@Player\n\ndefine 移動: speed X: (x) 加速力: (acceleration)\nif <<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <<mouse down?> and <(x position) < (mouse x)>>> then\n    change [_speed x v] by (x)\nend\nif <<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<mouse down?> and <(mouse x) < (x position)>>> then\n    change [_speed x v] by ((0) - (x))\nend\nset [_speed x v] to ((_speed X) * (acceleration))\nchange x by (_speed X)\n\ndefine 初期設定 :位置X: (x) Y: (y) size: (size) 待つ時間: (time)\nset [動ける? v] to [no]\nset [_speed x v] to [0]\nset [_speed y v] to [0]\nshow\nclear graphic effects\ngo to [front v] layer\nset size to (size) %\nswitch costume to (1 v)\ngo to x: (x) y: (y)\nset rotation style [left-right v]\npoint in direction (90)\nwait (time) seconds\nset [ghost v] effect to (100)\nrepeat (20)\n    change [ghost v] effect by (-5)\nend\nset [動ける? v] to [yes]\n\nwhen I receive [start v]\nforever\n    if <(動ける?) = [yes]> then\n        移動: speed X: [1] 加速力: [0.88]\n        重力: speed Y: [1] ジャンプ力: [13] 壁ジャンプ: 幅:X: [8] 壁ジャンプ力: [13]\n        Player Costume: 右.1: <<key (right arrow v) pressed?> or <key (d v) pressed?>> 左.1: <<key (left arrow v) pressed?> or <key (a v) pressed?>> 上.1: <<key (up arrow v) pressed?> or <key (w v) pressed?>> モバイル: 右 <<mouse down?> and <(x position) < (mouse x)>> 左.2 <<mouse down?> and <(mouse x) < (x position)>> 上.2 <<mouse down?> and <(y position) < (mouse y)>>\n        NEXT Deathの判定\n    end\nend\n\nwhen I receive [start v]\n初期設定 :位置X: [-190] Y: [50] size: [90] 待つ時間: []\n\nwhen I receive [reset v]\nstop [other scripts in sprite v]\nhide\n\ndefine 重力: speed Y: (y) ジャンプ力: (jump power) 壁ジャンプ: 幅:X: (x) 壁ジャンプ力: (壁jump power)\nif <touching (地面 v)?> then\n    change y by (1)\n    if <touching (地面 v)?> then\n        change y by (1)\n        if <touching (地面 v)?> then\n            change y by (1)\n            if <touching (地面 v)?> then\n                change y by (1)\n                if <touching (地面 v)?> then\n                    change y by (1)\n                    if <touching (地面 v)?> then\n                        change x by ((0) - (_speed X))\n                        change y by (-5)\n                        if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(y position) < (mouse y)>>> then\n                            if <(_speed X) > [0]> then\n                                set [_speed x v] to ((0) - (x))\n                            else\n                                set [_speed x v] to (x)\n                            end\n                            set [_speed y v] to (壁jump power)\n                        else\n                            set [_speed x v] to [0]\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\nchange y by (-1)\nif <touching (地面 v)?> then\n    if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(y position) < (mouse y)>>> then\n        set [_speed y v] to (jump power)\n    end\nend\nchange y by (1)\nchange [_speed y v] by ((0) - (y))\nchange y by (_speed Y)\nif <touching (地面 v)?> then\n    change y by ((0) - (_speed Y))\n    set [_speed y v] to [0]\nend\n\ndefine NEXT Deathの判定\nif <not <(stage) > [9]>> then\n    if <(x position) > [240]> then\n        broadcast (next v)\n    end\nend\nif <<(y position) < [-195]> or <touching (障害物 v)?>> then\n    broadcast (death v)\nend\n\nwhen I receive [next v]\nchange [stage v] by (1)\nstart sound [Zoop v]\n初期設定 :位置X: [-200] Y: [50] size: [90] 待つ時間: [1.5]\n\nwhen I receive [death v]\nDEATH: ジャンプ力: [12] 回転速度: [7] 落下速度: [1]\n初期設定 :位置X: [-200] Y: [50] size: [90] 待つ時間: [0]\n\ndefine Player Costume: 右.1: <右.1> 左.1: <左.1> 上.1: <上.1> モバイル: 右 <右.2> 左.2 <左.2> 上.2 <上.2>\nif <<右.1> or <右.2>> then\n    switch costume to (2 v)\nend\nif <<左.1> or <左.2>> then\n    switch costume to (3 v)\nend\nif <<上.1> or <上.2>> then\n    switch costume to (4 v)\nend\nif <<<右.1> and <上.1>> or <<右.2> and <上.2>>> then\n    switch costume to (5 v)\nend\nif <<<左.1> and <上.1>> or <<左.2> and <上.2>>> then\n    switch costume to (6 v)\nend\nif <not <<<<右.1> or <右.2>> or <<左.1> or <左.2>>> or <<上.1> or <上.2>>>> then\n    switch costume to (1 v)\nend\n\ndefine DEATH: ジャンプ力: (jump power) 回転速度: (rotational speed) 落下速度: (fall speed)\nset rotation style [all around v]\nset [動ける? v] to [no]\nset [_speed y v] to (jump power)\nrepeat (20)\n    change [_speed y v] by ((0) - (fall speed))\n    change [ghost v] effect by (5)\n    turn right (rotational speed) degrees\n    change y by (_speed Y)\nend\n\n@地面\n\nwhen I receive [start v]\nwait (0) seconds\nforever\n    go [forward v] (2) layers\nend\n\nwhen I receive [reset v]\ngo to x: (0) y: (0)\nhide\n\nwhen I receive [next v]\nwait (0) seconds\nswitch costume to (stage)\n\nwhen I receive [start v]\nshow\nswitch costume to (1 v)\n\ngo to [front v] layer\n\nbroadcast (next v)\n\n@ローリング\n\nwhen I receive [rolling v]\ngo to x: (0) y: (0)\nclear graphic effects\ngo to [front v] layer\nshow\nswitch costume to (loding1 v)\nrepeat (3)\n    repeat (3)\n        wait (0.3) seconds\n        next costume\n    end\nend\nset [ghost v] effect to (0)\nrepeat (5)\n    change [ghost v] effect by (20)\nend\nbroadcast (start v)\n\nwhen I receive [reset v]\nhide\n\n@Play\n\nwhen I receive [reset v]\nset [_a v] to [0]\nshow\ngo to [front v] layer\ngo to x: (300) y: (20)\npoint in direction (90)\nwait (.5) seconds\nrepeat until <(round (x position)) = [60]>\n    change x by (((60) - (x position)) / (5))\nend\nforever\n    set [brightness v] effect to (<touching (mouse-pointer v)?> * (-10))\nend\n\nwhen I receive [rolling v]\nhide\n\nwhen I receive [reset v]\nwait until <<mouse down?> and <touching (mouse-pointer v)?>>\nset size to (110) %\nwait (0) seconds\nset size to (100) %\nwait (0.1) seconds\nbroadcast (ROLLING v)\n\n@花粉?\n\nwhen I start as a clone\nset [_dir v] to (pick random (-1) to (1))\nset [_y v] to [0]\nshow\npoint in direction (90)\ngo to [back v] layer\nset size to (pick random (80) to (100)) %\nset rotation style [all around v]\nclear graphic effects\nswitch costume to (コスチューム2 v)\ngo to x: (pick random (-240) to (240)) y: (180)\nrepeat until <<(y position) < [-180]> or <touching (地面 v)?>>\n    turn right ((_dir) * (3)) degrees\n    change [_y v] by (-0.1)\n    change y by (_y)\nend\nrepeat (10)\n    change [ghost v] effect by (10)\nend\ndelete this clone\n\nwhen I receive [start v]\nforever\n    create clone of (_myself_ v)\n    wait (pick random (0.05) to (0.3)) seconds\nend\n\nwhen I receive [reset v]\nhide\n\n@背景\n\nwhen I receive [start v]\nswitch costume to (1 v)\nshow\ngo to x: (0) y: (0)\ngo to [back v] layer\n\nwhen I receive [next v]\nswitch costume to (stage)\n\nwhen I receive [reset v]\nhide\n\n@障害物\n\nwhen I receive [start v]\nwait (0) seconds\nshow\ngo to x: (item (1) of [位置:x v]) y: (item (1) of [位置:y v])\nswitch costume to (1 v)\n\nwhen I receive [next v]\ngo to x: (item (stage) of [位置:x v]) y: ((item (stage) of [位置:y v]) - (3))\nswitch costume to (stage)\n\nwhen I receive [reset v]\nhide\n\nbroadcast (next v)\n\n@NEXT\n\nwhen I start as a clone\nshow\nif <<[1] < (costume [number v])> and <(costume [number v]) < [6]>> then\n    go to x: (450) y: (0)\n    repeat until <(x position) < [1]>\n        go to [front v] layer\n        change x by (((0) - (x position)) / (5))\n    end\n    wait ((costume [name v]) * (0.2)) seconds\n    set [next v] to [-1]\n    if <(costume [number v]) = [5]> then\n        repeat until <(x position) < [-329]>\n            change [next v] by (-3)\n            change x by (NEXT)\n        end\n    else\n        repeat until <(x position) < [-449]>\n            change [next v] by (-3)\n            change x by (NEXT)\n        end\n    end\n    delete this clone\nend\nif <<[6] < (costume [number v])> and <(costume [number v]) < [11]>> then\n    go to x: (0) y: (360)\n    repeat until <(y position) < [1]>\n        go to [front v] layer\n        change y by (((0) - (y position)) / (5))\n    end\n    wait (((costume [name v]) - (4)) * (0.2)) seconds\n    set [next v] to [-1]\n    if <(costume [number v]) = [10]> then\n        repeat until <(y position) < [-349]>\n            change [next v] by (-3)\n            change y by (NEXT)\n        end\n    else\n        repeat until <(y position) < [-359]>\n            change [next v] by (-3)\n            change y by (NEXT)\n        end\n    end\n    delete this clone\nend\n\nwhen flag clicked\nhide\n\ndefine NEXT (色) (明るさ) (方向)\nset [color v] effect to (色)\nset [brightness v] effect to (明るさ)\nswitch costume to (方向)\nrepeat (4)\n    next costume\n    create clone of (_myself_ v)\n    wait (0.1) seconds\nend\n\nwhen I receive [next v]\nNEXT (pick random (0) to (200)) [0] [x]\n\nwhen I start as a clone\nforever\n    go to [front v] layer\nend\n\n@Restart\n\nwhen I receive [start v]\nshow\ngo to x: (-200) y: (-155)\npoint in direction (90)\nforever\n    go [forward v] (10) layers\n    set [brightness v] effect to (<touching (mouse-pointer v)?> * (-10))\nend\n\ngo to [front v] layer\n\nwhen I receive [reset v]\nhide\n\nwhen I receive [start v]\nwait until <<mouse down?> and <touching (mouse-pointer v)?>>\nset size to (110) %\nwait (0) seconds\nset size to (100) %\nwait (0.1) seconds\nbroadcast (reset v)\n\n@サムネ\n\nwhen flag clicked\nhide\n\nwhen [a v] key pressed\nif <(username) = [ojirou123]> then\n    show\n    go to [front v] layer\n    go to x: (0) y: (0)\n    set size to (0) %\n    repeat until <(round (size)) = [100]>\n        change size by (((100) - (size)) / (4))\n    end\n    stop [all v]\nend\n\n