Winter/冬 【Platformer】モバイル対応/Mobile friendly   #all #games

Instructions: Winter/冬 【Platformer】　2021 12/2\n\n@GOLDBIKKYさんとのコラボです!\nIn collaboration with @GOLDBIKKY!\n⬇︎⬇︎⬇︎⬇︎\n| https://scratch.mit.edu/projects/605731332/ |\n\n\n\n✧Crystal Basket✧ ▾\nhttps://scratch.mit.edu/projects/584346512\n三目並べ/Tic-tac-toe ▾\nhttps://scratch.mit.edu/projects/558043063/\n\n\n\n❖Hᴏᴡ ᴛᴏ ᴘʟᴀʏ❖\nスキップは2回までで、スキップを使うとタイムが記録されません。\nSkipping is limited to two times and no time will be recorded if skipping is used.\n\n　▽PC▽\n左右キー,上キー / left,right keys ,app keys\n\n　▽Mobile▽\n左側,右側,上側タップ / Tap left,right ,Tap top\n\n\n❖Cʀᴇᴅɪᴛꜱ❖\nMusic /  William Ekh - Adventures (feat. Alexa Lusader) [NCS Release]\nBackground / @hati32\nPartial programme / @Crown-Games\n\n_________________________________________________\n\n#all #music #games #art #game\n#platformer #Winter #mariokenta\n#冬 #プラットフォーマー

@Stage\n\nwhen flag clicked\nswitch backdrop to (もと3 v)\nset [timer v] to [0]\nforever\n    change [timer v] by ((1) / (30))\n    next backdrop\nend\n\n@Player\n\ndefine 動作 (スピード)\ngo to [front v] layer\nif <<key (right arrow v) pressed?> or <<mouse down?> and <[0] < (mouse x)>>> then\n    change [xの力 v] by (スピード)\nend\nif <<key (left arrow v) pressed?> or <<mouse down?> and <(mouse x) < [0]>>> then\n    change [xの力 v] by ((スピード) * (-1))\nend\npoint in direction (((xの力) * (2)) + (90))\nset [xの力 v] to ((xの力) * (0.9))\nchange x by (xの力)\nrepeat (5)\n    change y by <touching (stage v)?>\nend\nif <touching (stage v)?> then\n    change x by ((xの力) * (-1))\n    change y by (-5)\n    if <<key (up arrow v) pressed?> or <<mouse down?> and <[0] < (mouse y)>>> then\n        start sound [ジャンプ v]\n        if <<key (right arrow v) pressed?> or <<mouse down?> and <[0] < (mouse x)>>> then\n            set [xの力 v] to [-6.5]\n        else\n            if <<key (left arrow v) pressed?> or <<mouse down?> and <(mouse x) < [0]>>> then\n                set [xの力 v] to [6.5]\n            end\n        end\n        set [yの力 v] to [10.5]\n        change y by (-2)\n    else\n        set [xの力 v] to [0]\n    end\nend\nchange y by (-3)\nif <<touching (stage v)?> and <<key (up arrow v) pressed?> or <<mouse down?> and <[0] < (mouse y)>>>> then\n    start sound [ジャンプ v]\n    set [yの力 v] to [10]\nend\nchange y by (3)\nchange [yの力 v] by (-0.8)\nchange y by (yの力)\nif <touching (stage v)?> then\n    change y by ((yの力) * (-1))\n    set [yの力 v] to [0]\nend\n\nwhen I receive [game start v]\nswitch costume to (目 v)\ncreate clone of (_myself_ v)\nswitch costume to (目無し v)\nshow\npoint in direction (90)\nset [xの力 v] to [0]\nset [yの力 v] to [0]\ngo to x: (-200) y: (0)\nset size to (115) %\nforever\n    if <(リセット) = [0]> then\n        動作 [0.8]\n    end\nend\n\nwhen I receive [game start v]\nforever\n    if <(リセット) = [0]> then\n        switch costume to (影 v)\n        create clone of (_myself_ v)\n        switch costume to (目無し v)\n    end\n    go [backward v] (5) layers\n    if <[220] < (x position)> then\n        broadcast (NEXT v)\n        set [ghost v] effect to (0)\n        repeat (10)\n            change [ghost v] effect by (10)\n        end\n        set x to (0)\n    end\nend\n\nwhen I receive [game start v]\nset [リセット v] to [0]\nforever\n    if <<(y position) < [-150]> or <touching (障害物 v)?>> then\n        set [リセット v] to [1]\n        switch costume to (目あり v)\n        start sound [ﾀﾋぬ v]\n        change y by (8)\n        set [yの力 v] to [8]\n        repeat until <(y position) < [-200]>\n            change y by (yの力)\n            change [yの力 v] by (-0.5)\n            turn right (3.5) degrees\n        end\n        switch costume to (目無し v)\n        point in direction (90)\n        wait (.1) seconds\n        リセット\n    end\nend\n\nwhen flag clicked\npoint in direction (90)\nhide\nbroadcast (Game Start v)\nforever\n    set volume to ([volume v] of [音 v]) %\nend\n\ndefine リセット\ngo to x: (-200) y: (0)\nset [ghost v] effect to (100)\nset [リセット v] to [0]\nset [yの力 v] to [0]\nshow\nchange [xの力 v] by (0.3)\nchange [yの力 v] by (-0.8)\nchange y by (yの力)\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\n\nwhen I receive [次 v]\nリセット\n\nwhen I start as a clone\nif <(costume [name v]) = [影]> then\n    go [backward v] (12) layers\n    clear graphic effects\n    repeat (10)\n        change [ghost v] effect by (30)\n    end\n    delete this clone\nelse\n    if <(costume [name v]) = [目]> then\n        show\n        clear graphic effects\n        forever\n            go to [front v] layer\n            change [eye_x v] by (((xの力) - (eye_x)) * (.1))\n            change [eye_y v] by (((yの力) - (eye_y)) * (.1))\n            go to x: (([x position v] of [player v]) + ((eye_x) * (.9))) y: (([y position v] of [player v]) + ((eye_y) * (1.4)))\n            if <[4] < (([y position v] of [player v]) - (y position))> then\n                change [eye_y v] by (.75)\n            end\n            set [ghost v] effect to ((リセット) * (100))\n        end\n    end\nend\n\nset [☁ best time v] to [100]\n\n@Stage\n\nwhen I receive [次 v]\nnext costume\ngo to [front v] layer\n\nwhen I receive [game start v]\ngo to x: (0) y: (0)\nshow\nswitch costume to (stage1 v)\nwait () seconds\nforever\n\nwhen flag clicked\nhide\n\ngo [forward v] (1) layers\n\ngo to x: (0) y: (0)\n\n@障害物\n\nwhen I receive [次 v]\nnext costume\n\ngo [forward v] (5) layers\n\nwhen I receive [game start v]\nshow\nset size to (100) %\nswitch costume to (stage1 v)\ngo to x: (0) y: (0)\nforever\n    set y to (([sin v] of ((Timer) * (300)) ) * (5))\nend\n\nwhen flag clicked\nhide\n\n@光\n\nwhen I receive [次 v]\ngo to [back v] layer\nnext costume\n\nwhen I receive [game start v]\nshow\nswitch costume to (stage1 v)\nforever\n    go to (障害物 v)\nend\n\nwhen flag clicked\nhide\n\n@音\n\nwhen this sprite clicked\nif <(volume) = [100]> then\n    set volume to (0) %\n    switch costume to (ミュート v)\nelse\n    set volume to (100) %\n    switch costume to ( v)\nend\n\nwhen I receive [game start v]\nwait (1) seconds\nforever\n    play sound [William Ekh - Adventures \(feat. Alexa Lusader\) \[NCS Release\] v] until done\nend\n\nwhen I receive [game start v]\nshow\nset size to (70) %\nset volume to (100) %\nswitch costume to ( v)\ngo to x: (-100) y: (155)\nforever\n    change size by (([sin v] of ((Timer) * (300)) ) * (0.8))\nend\n\nwhen flag clicked\nhide\n\n@スキップ\n\nwhen flag clicked\nforever\n    change size by (([sin v] of ((Timer) * (300)) ) * (0.8))\nend\n\nwhen this sprite clicked\nrepeat (10)\n    set [brightness v] effect to (0)\nend\n\ndefine ブロック名\nrepeat (10)\n    change [ghost v] effect by (10)\nend\nhide\n\nwhen this sprite clicked\nchange [skip数 v] by (1)\nif <(SKIP数) < [3]> then\n    if <(リセット) = [0]> then\n        broadcast (Player v)\n        broadcast (NEXT v)\n        if <(SKIP数) = [2]> then\n            ブロック名\n        end\n    end\nend\n\nwhen I receive [game start v]\nset [skip数 v] to [0]\nset [brightness v] effect to (0)\nshow\nset [ghost v] effect to (100)\nset size to (70) %\nrepeat (20)\n    change [ghost v] effect by (-5)\nend\nrepeat until <([costume # v] of [stage v]) = [9]>\n    if <touching (mouse-pointer v)?> then\n        set [brightness v] effect to (-15)\n    else\n        set [brightness v] effect to (0)\n    end\nend\nブロック名\n\nwhen flag clicked\nhide\n\n@サムネ\n\nwhen flag clicked\ngo to x: (0) y: (0)\nhide\nforever\n    reset timer\nend\n\nwhen [timer v] > (0)\ngo to x: (0) y: (-200)\nset [ghost v] effect to (100)\nswitch costume to (サムネ v)\ngo to [front v] layer\nshow\nrepeat until <(round (y position)) = [0]>\n    change y by (((0) - (y position)) * (0.1))\n    change [ghost v] effect by (-5)\nend\n\n@NEXT\n\nwhen I receive [next v]\nset [リセット v] to [1]\nshow\ngo to x: (-300) y: (0)\nset [ghost v] effect to (0)\nrepeat until <(round (x position)) = [0]>\n    change x by (((0) - (x position)) / (5))\nend\nset [xの力 v] to [1]\nset [i v] to [0]\nrepeat (8)\n    change x by (i)\n    change [i v] by (((i) / (10)) + (1))\nend\nbroadcast (次 v)\nrepeat (17)\n    change x by (i)\n    change [i v] by (((i) / (10)) + (1))\nend\nhide\n\nwhen I receive [game start v]\nhide\nforever\n    go to [front v] layer\nend\n\nwhen I receive [next v]\ngo to [front v] layer\n\nrepeat until <(round (x position)) = [450]>\n    change x by (((450) - (x position)) / (5))\n    change [ghost v] effect by (1)\nend\n\nwhen I receive [次 v]\ngo to [front v] layer\n\n@Time\n\nwhen I start as a clone\ngo to [front v] layer\nshow\nswitch costume to (letter (桁) of (保存))\nwait () seconds\ndelete this clone\n\ndefine ブロック名\nset [桁 v] to (length of (保存))\ngo to x: (-80) y: (-140)\nrepeat (length of (保存))\n    change x by (-25)\n    create clone of (_myself_ v)\n    change [桁 v] by (-1)\nend\n\nwhen flag clicked\nhide\nset [保存 v] to [0]\n\nwhen I receive [game start v]\nset [timer v] to [0]\n\nwhen I receive [next v]\nif <([costume # v] of [stage v]) = [8]> then\n    if <(SKIP数) = [0]> then\n        set [保存 v] to (round (Timer))\n        if <(保存) < (☁ Best time)> then\n            set [☁ best time v] to (保存)\n        end\n        wait (0.8) seconds\n        forever\n            ブロック名\n        end\n    else\n        go to x: (-105) y: (-140)\n        switch costume to (コスチューム1 v)\n        wait (0.8) seconds\n        show\n        forever\n            go to [front v] layer\n        end\n    end\nend\n\nforever\n    set [保存 v] to (round (timer))\n    ブロック名\nend\n\n@Best time\n\nwhen I start as a clone\ngo to [front v] layer\nshow\nswitch costume to (letter (桁) of (☁ Best time))\nwait () seconds\ndelete this clone\n\ndefine ブロック名\nset [桁 v] to (length of (☁ Best time))\ngo to x: (90) y: (-140)\nrepeat (length of (☁ Best time))\n    change x by (-25)\n    create clone of (_myself_ v)\n    change [桁 v] by (-1)\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [next v]\nif <([costume # v] of [stage v]) = [8]> then\n    wait (0.8) seconds\n    forever\n        ブロック名\n    end\nend\n\nforever\n    set [保存 v] to (round (timer))\n    ブロック名\nend\n\nset [☁ best time v] to [100]\n\n@スプライト1\n\nwhen flag clicked\nset size to (100) %\ngo to x: (225) y: (180)\nforever\n    change size by (([sin v] of ((Timer) * (300)) ) * (0.8))\nend\n\n@雪\n\nwhen flag clicked\nhide\nforever\n    switch costume to (コスチューム1 v)\n    glide (pick random (.3) to (.7)) secs to x: (pick random (230) to (-230)) y: (205)\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nclear graphic effects\nset size to (100) %\nshow\nif <(costume [number v]) = [1]> then\n    set [r v] to (pick random (1) to (100))\n    repeat until <<(y position) < [-205]> or <<touching (stage v)?> or <touching (player v)?>>>\n        change y by (-2)\n        change x by (([sin v] of ((Timer) * (r)) ) * (.8))\n    end\n    if <touching (player v)?> then\n        repeat (50)\n            change [ghost v] effect by (2)\n            change y by (-2)\n            change x by (([sin v] of ((Timer) * (r)) ) * (.8))\n        end\n    else\n        if <touching (stage v)?> then\n            repeat (50)\n                change [ghost v] effect by (2)\n                change y by (-.5)\n                change x by (([sin v] of ((Timer) * (r)) ) * (.2))\n            end\n        else\n            delete this clone\n        end\n        delete this clone\n    end\n    delete this clone\nend\n\n