-Lockdown- -A Scrolling Platformer
@Stage\n\nwhen I receive [game start v]\nforever\n    play sound [Close to the sun v] until done\nend\n\nwhen I receive [game start v]\nforever\n    switch backdrop to (join [#SCANE] (#SCANE))\nend\n\n@Player\n\nwhen flag clicked\nbroadcast (Game Start v)\n\nwhen I receive [game start v]\nset [ty v] to [n]\nStart Program [-200] [light]\nwait (0) seconds\nforever\n    移動 <<key (right arrow v) pressed?> or <<mouse down?> and <[0] < (mouse x)>>> <<key (left arrow v) pressed?> or <<mouse down?> and <(mouse x) < [0]>>>\n    床 <touching (地面 v)?>\n    jump <<key (up arrow v) pressed?> or <<mouse down?> and <[0] < (mouse y)>>>\n    Next Program <[240] < (x position)>\n    restart <<touching (トゲ v)?> or <(y position) < [-180]>>\n    if <(ty) = [y]> then\n        stop [this script v]\n    end\nend\n\ndefine Start Program (左右) (コスチューム)\nclear graphic effects\nset size to (120) %\nswitch costume to (コスチューム)\ngo to x: (左右) y: (0)\nset [player x v] to [0]\nset [player y v] to [0]\nset [重力 v] to ((0) - ([abs v] of ((重力) - <[5] < [1]>) ))\nset [player jump v] to [14]\n\ndefine 移動 <右> <左>\nif <右> then\n    switch costume to (light v)\n    change [player x v] by (1)\nend\nif <左> then\n    switch costume to (left v)\n    change [player x v] by (-1)\nend\nset [player x v] to ((Player X) * ((((0) - (([abs v] of (Player jump) ) / (1))) + (14.9)) + (pick random (0.000000001) to (0.000000002))))\nchange x by ((Player X) + ())\n\ndefine 床 <地面>\nif <<touching (地面 v)?> or <touching (地面3 v)?>> then\n    change x by ((Player X) * (-1))\nend\n\ndefine jump <上>\nchange y by ((0) - ([abs v] of ((重力) - <[5] < [1]>) ))\nif <上> then\n    if <<touching (地面 v)?> or <touching (地面3 v)?>> then\n        set [player y v] to (Player jump)\n    end\nend\nchange y by ([abs v] of ((重力) - <[5] < [1]>) )\nchange [player y v] by (重力)\nchange y by (Player Y)\nif <<touching (地面 v)?> or <touching (地面3 v)?>> then\n    change y by ((Player Y) * ((0) - ([abs v] of ((重力) - <[5] < [1]>) )))\n    set [player y v] to [0]\nend\n\ndefine Next Program <端>\nif <端> then\n    if <<(#SCANE) = [8]> or <<(#SCANE) = [9]> or <(#SCANE) = [10]>>> then\nend\nif <<(#SCANE) = [8]> or <(#SCANE) = [9]>> then\n    if <(x position) < [-240]> then\n        broadcast (next v)\n        Start Program [200] [left]\n    end\nend\n\ndefine restart <トゲ>\nif <トゲ> then\n    if <<(#SCANE) = [9]> or <(#SCANE) = [10]>> then\n        Start Program [200] [left]\n    else\n        Start Program [-200] [light]\n    end\nend\nif <touching (水 v)?> then\n    set [重力 v] to [-0.5]\n    change [player y v] by (1)\nelse\n    set [重力 v] to [-1]\nend\n\nwhen I receive [game start v]\nforever\n    if <touching (センサー v)?> then\n        if <(#SCANE) = [1]> then\n            broadcast (t1 v)\n        end\n        if <(#SCANE) = [2]> then\n            broadcast (t2 v)\n        end\n        if <(#SCANE) = [3]> then\n            broadcast (t3 v)\n        end\n        if <(#SCANE) = [5]> then\n            broadcast (t4 v)\n        end\n        if <(#SCANE) = [6]> then\n            broadcast (t5 v)\n        end\n        if <(#SCANE) = [8]> then\n            broadcast (j1 v)\n        end\n        if <(#SCANE) = [10]> then\n            broadcast (j2 v)\n        end\n        wait until <not <touching (センサー v)?>>\n    end\nend\n\nwhen I receive [動け v]\nswitch costume to (light v)\nglide (2) secs to x: (0) y: (-72)\n\nwhen flag clicked\nset [ty v] to [n]\n\n@地面3\n\nwhen flag clicked\nhide\n\nwhen I receive [game start v]\nhide\ngo to x: (230) y: (-500)\nforever\n    switch costume to (join [#SCANE] (#SCANE))\nend\n\nwhen I receive [j1 v]\nshow\ngo to x: (230) y: (-500)\nrepeat (40)\n    change y by (((0) - (y position)) / (6))\nend\n\nwhen I receive [j2 v]\nshow\ngo to x: (-230) y: (-500)\nrepeat (40)\n    change y by (((0) - (y position)) / (6))\nend\nset [ty v] to [y]\nbroadcast (動け v)\n\nwhen I receive [next v]\nhide\n\n@水\n\nwhen flag clicked\nhide\n\nwhen I receive [game start v]\nshow\ngo to [back v] layer\nforever\n    switch costume to (join [#SCANE] (#SCANE))\nend\n\n@地面\n\nwhen I receive [game start v]\nset [#scane v] to [1]\n\nwhen I receive [game start v]\nforever\n    switch costume to (join [#SCANE] (#SCANE))\nend\n\nwhen I receive [next v]\nchange [#scane v] by (1)\n\n@地面2\n\nwhen I receive [game start v]\nforever\n    switch costume to (join [#SCANE] (#SCANE))\nend\n\nwhen I receive [game start v]\nforever\n    if <touching (player v)?> then\n        change [ghost v] effect by (5)\n    else\n        change [ghost v] effect by (-5)\n    end\nend\n\n@トゲ\n\nwhen I receive [game start v]\ngo to [back v] layer\nshow\ngo to x: (111) y: (-999)\nforever\n    switch costume to (join [#SCANE] (#SCANE))\nend\n\nwhen I receive [game start v]\nforever\n    set [距離 v] to (distance to [player v])\nend\n\nwhen I receive [t1 v]\nshow\ngo to x: (120) y: (-300)\nrepeat (30)\n    change y by (((20) - (y position)) / (3))\nend\n\nwhen I receive [next v]\nhide\n\nwhen I receive [t2 v]\nshow\ngo to x: (120) y: (-300)\nrepeat (30)\n    change y by (((-80) - (y position)) / (3))\nend\n\nwhen I receive [t3 v]\nshow\ngo to x: (150) y: (-300)\nrepeat (30)\n    change y by (((-70) - (y position)) / (3))\nend\n\nwhen I receive [t4 v]\nshow\ngo to x: (300) y: (-25)\nrepeat (30)\n    change x by (((0) - (x position)) / (10))\nend\nhide\n\nwhen I receive [t5 v]\nshow\ngo to x: (0) y: (300)\nrepeat (30)\n    change y by (((-70) - (y position)) / (6))\nend\nhide\n\n@センサー\n\nwhen I receive [game start v]\ngo to [back v] layer\nif <(username) = [takuno]> then\n    set [ghost v] effect to (100)\nelse\n    set [ghost v] effect to (100)\nend\nforever\n    switch costume to (join [#SCANE] (#SCANE))\nend\n\n@サムネイル\n\nwhen flag clicked\nhide\ngo to [front v] layer\ngo to x: (0) y: (0)\nforever\n    set [timer v] to (timer)\nend\n\nwhen [timer v] > (Timer)\nshow\nset [ghost v] effect to (100)\nrepeat (34)\n    change [ghost v] effect by (-3)\nend\n\n@Thank you for Playing\n\nwhen flag clicked\nhide\n\nwhen I receive [動け v]\nshow\ngo to x: (999) y: (50)\nrepeat (80)\n    change x by (((12) - (x position)) / (15))\nend\n\nwhen I receive [game start v]\nset [☁ time v] to [0]\nrepeat until <(ty) = [y]>\n    wait (1) seconds\n    change [☁ time v] by (1)\nend\n\n@Detector\n\nwhen flag clicked\nhide\nset [★ v] to [0]\nset [♥ v] to [0]\nset [どっち v] to [0]\ncreate clone of (_myself_ v)\nwait (0.2) seconds\nset [どっち v] to [1]\ncreate clone of (_myself_ v)\nwait until <<(♥) = [1]> and <(★) = [1]>>\nbroadcast (♥と★ v)\n\nwhen I start as a clone\nif <(どっち) = [0]> then\n    go to x: (-15) y: (0)\n    set [♥ v] to [0]\n    switch costume to (love v)\n    forever\n        set [♥? v] to <touching (mouse-pointer v)?>\n        if <touching (mouse-pointer v)?> then\n            set [♥ v] to [1]\n        end\n    end\nend\nif <(どっち) = [1]> then\n    go to x: (0) y: (0)\n    switch costume to (fave v)\n    set [★ v] to [0]\n    forever\n        set [星? v] to <touching (mouse-pointer v)?>\n        if <touching (mouse-pointer v)?> then\n            set [★ v] to [1]\n        end\n    end\nend\n\n@♡&☆\n\nwhen flag clicked\nhide\n\nwhen I receive [♥と★ v]\nshow\nset [ghost v] effect to (100)\nrepeat (34)\n    change [ghost v] effect by (-3)\nend\nrepeat (34)\n    change [ghost v] effect by (3)\nend\nhide\n\n
    —————— DESCRIPTION ——————\nIn this game, the pen really is mightier than the sword. Create platforms to solve puzzles! Use different pen colors to defeat enemies and erase walls! Can you beat all 64 levels without running out of ink?\n\n   —————— CONTROLS ——————\nArrow keys/WAD — Move\nClick and drag — Draw\nSpace — Switch pen (after level 20)\nR — Restart, regain ink at 0%\nZ — Skip forward a level (uses up ink)\nX — Skip backward a level\nC — View level help screen\nP — Pause (or restart secret mode)\nM — Mute music\n\n     —————— FAQ ——————\n• "How do I beat this level/boss?" — Press C to view the help screen. If you're really having trouble, press Z to skip most levels.\n• "How do I erase?" — You can press R to restart the level. You also gain an eraser on level 25.\n• "I've run out of ink!" — If you have 0% ink, restart the level with R and it'll restore 25%.\n• "Can I remix without changing anything?" — No.\n\n    ——————— MORE ———————\nTry the demo for Draw: The Sequel! https://scratch.mit.edu/projects/506927281\n\nFor more of a challenge, try out the game's hard mode here: https://scratch.mit.edu/projects/487061075/\n\nCreate your own levels with @Mrk20200's great level editor: https://scratch.mit.edu/projects/366352101/\n\n...All right, that's enough. You don't need to love and favorite this anymore, the quota's been reached. I've made better projects than this, go look at those instead. @CoolGuyBug\n\n    —————— CREDITS ——————\n@djpro — Player movement\nEdward Shallow — Music\nSound Jay and FesliyanStudios — Sounds