Can You Make a Scratch Game WITHOUT a Mouse? (via tosh)

Sdílet
Vložit
  • čas přidán 23. 07. 2024
  • Scratch was designed to be used with a mouse, so making a Scratch game with just the keyboard is likely impossible. But if you use a text-based Scratch mod known as tosh, can you still make a Scratch game with only a keyboard?
    0:00 Introduction
    0:46 Rules
    1:06 Me talking for 26 seconds too many
    1:32 Pressing the green/orange flag
    1:49 Limitations with no mouse (100% pen projects)
    2:39 Drawing the field
    3:18 Opening the project
    4:55 More coding
    5:03 Variables workaround
    6:24 Math and storing data
    7:25 More relaxing coding
    7:51 Keyboard shortcuts: a quick tutorial
    8:17 Computers don't like decimals
    9:19 Adding a variable?
    9:57 Simplifying
    10:34 Importing into Scratch?
    11:18 Challenge complete?
    11:47 Outro
    If you’re interested in round off errors, here’s a Stack Overflow answer explaining how it works in more detail: stackoverflow.com/a/588014
    Subscribe to the channel: / stemmc
    Credits (I used a lot of music by Kevin MacLeod, so thanks to him):
    Merry Go - Silent Film Light by Kevin MacLeod is licensed under a Creative Commons Attribution 4.0 license. creativecommons.org/licenses/...
    Source: incompetech.com/music/royalty-...
    Artist: incompetech.com/
    "The Builder" Kevin MacLeod (incompetech.com)
    Licensed under Creative Commons: By Attribution 4.0 License
    creativecommons.org/licenses/b...
    "Marty Gots a Plan" Kevin MacLeod (incompetech.com)
    Licensed under Creative Commons: By Attribution 4.0 License
    creativecommons.org/licenses/b...
    "Look Busy" Kevin MacLeod (incompetech.com)
    Licensed under Creative Commons: By Attribution 4.0 License
    creativecommons.org/licenses/b...
    Record Scratch: freesound.org/people/luffy/so...
    Mouse click: freesound.org/people/pbimal/s...
    Windows XP error sound by Windows
    Sun time lapse video by Toni.063371 - Antonio Sáez: www.pexels.com/video/time-lap...
    Explosion sound by Orange Free Sounds
    "Rollin at 5" Kevin MacLeod (incompetech.com)
    Licensed under Creative Commons: By Attribution 4.0 License
    creativecommons.org/licenses/b...
    "Happy Alley" Kevin MacLeod (incompetech.com)
    Licensed under Creative Commons: By Attribution 4.0 License
    creativecommons.org/licenses/b...
    Scratch is a project of the Scratch Foundation, in collaboration with the Lifelong Kindergarten Group at the MIT Media Lab. It is available for free at scratch.mit.edu.
    #scratch3
    #coding
    #scratch
  • Věda a technologie

Komentáře • 31

  • @Kahoneki
    @Kahoneki Před 4 měsíci +4

    never really cared all that much for scratch tbh, but youtube decided to serve up this hidden gem to me and im incredibly glad, this video was captivating from start to finish! :)

  • @TNTISGOOD
    @TNTISGOOD Před 4 měsíci +1

    the timelapse music was soooo cool and catchy, loved it!

    • @STEMMC
      @STEMMC  Před 4 měsíci

      Haha, it's got a nice melody about 15 seconds in, but I stopped it right before! I'm going to have to use it again lol
      (btw it is not mine just in case you were wondering)

    • @TNTISGOOD
      @TNTISGOOD Před 4 měsíci

      @@STEMMCYeah, it is pretty awesome, also this video was great and definitely worth watching! (Also, i gave the ol' sub button a little tap )

    • @STEMMC
      @STEMMC  Před 4 měsíci

      Thank you! Glad you enjoyed the video!

  • @CrypticConsole
    @CrypticConsole Před 4 měsíci +1

    You should have used ctrl-shift-i, navigated to the browser console and enabled either vim or emacs mode. This would have given so so so many more keyboard shortcuts, as well as a command execution mode.

  • @filval387
    @filval387 Před 4 měsíci +1

    I wonder if you could have potentially stored data by having the pen tool draw dots on a part of the screen and use the touching color block (if it exists in tosh) since that would probably have no issues with the amount of data to store.

    • @STEMMC
      @STEMMC  Před 4 měsíci

      Ahh that is an awesome idea! I've heard about it before for constant storage, but I never considered the idea of using it as a replacement for variables. The only complication I can think of would be that the dots would have to be visible and can't be drawn on. Thank you so much, I'm definitely going to have to try this!

  • @indi3_notfound
    @indi3_notfound Před 3 měsíci

    What do i do when tosh says " expected a blank line"?

    • @STEMMC
      @STEMMC  Před 3 měsíci

      i think tosh uses blank or empty lines to separate scripts, so tosh would give an error in this code for example:
      when green flag clicked
      my block
      # tosh will give an error if this is not an empty line
      define my block
      move 10 steps

  • @Pjgmer
    @Pjgmer Před 18 dny

    for some reason i want you to put the code into the description so anyone can play the game by just copy and pasting the code
    into tosh

  • @TaelyrDainsberg
    @TaelyrDainsberg Před 3 měsíci +1

    Common lets get him to 2k subs!

  • @user-lm2ve6di8f
    @user-lm2ve6di8f Před 4 měsíci +3

    ribbit ribbit

  • @Greyistt
    @Greyistt Před 3 měsíci

    i remember using tosh and i hated the fact you cant make stuff sense other sprites, they can only sense a mouse pointer and can only clone themselves.

    • @STEMMC
      @STEMMC  Před 2 měsíci

      I think that Scratch 2, which tosh is based off of, only allowed a sprite to clone itself. I believe you can also sense other sprites by using and then putting the sprite in quotes. Hope this helps!

  • @user-lm2ve6di8f
    @user-lm2ve6di8f Před 4 měsíci

    A video!!!!

  • @sTrandedVibez
    @sTrandedVibez Před 4 měsíci

    you should have loads more likes and subs and views :)

  • @kiendra
    @kiendra Před 4 měsíci

    I'm the 1000th viewer :D

  • @lazynooboffical
    @lazynooboffical Před 2 měsíci

    101th like!

  • @amybultman9062
    @amybultman9062 Před 4 měsíci

    you should try making a roblox game I think you would be great at that

  • @HexaflexagonFan
    @HexaflexagonFan Před 3 měsíci

    wait until this guy finds out what vim is XD

    • @STEMMC
      @STEMMC  Před 3 měsíci

      Believe it or not, I enabled the vim mode for tosh for a portion of a day, but I just started learning vim so I felt like it slowed me down lol

    • @HexaflexagonFan
      @HexaflexagonFan Před 3 měsíci

      @@STEMMC oh, cool

  • @WouldYouPleaseSignMyPetition

    make a scratch game with no keyboard (also first)

    • @STEMMC
      @STEMMC  Před 4 měsíci

      That would be fun! I'll add it to the ideas list

  • @_code1337
    @_code1337 Před 4 měsíci

    Could’ve used the keyboard mouse on Windows. It actually wouldn’t be too much o a cheat, as the keyboard mouse is just awful to use.

    • @STEMMC
      @STEMMC  Před 4 měsíci

      That is a great idea! However, I wanted the extra challenge of not being able to emulate a mouse or replicate mouse movements. Thanks for the suggestion though, and I will look into it!

  • @Milkvr31
    @Milkvr31 Před 3 měsíci

    This comet not get like😭😭😭😭😭

  • @trollsansofficial
    @trollsansofficial Před 4 měsíci

    Just use a tablet