Making a Game in a Calculator (Desmos)

Поделиться
HTML-код
  • Опубликовано: 8 сен 2024
  • Graph: www.desmos.com...
    Music: • Endgame
    I'm still on my irregular upload schedule don't worry :)
    #Desmos

Комментарии • 274

  • @GDColon
    @GDColon 2 года назад +1722

    No idea why it took so long for me to come across this but it's nothing short of incredible omg, you're gonna do crazy stuff in the future I can tell

    • @silvia-narity
      @silvia-narity 2 года назад +43

      Okay Mr. Kitsune GD man

    • @ItsGman
      @ItsGman 2 года назад +18

      Hi GD Colon, love your vids :)

    • @tev5040
      @tev5040 2 года назад +6

      yeah this is awesome

    • @JohnDoesStuffLol
      @JohnDoesStuffLol  2 года назад +168

      its so surreal to see you here after having looked up to you in the gd community for years, thank you so much Colon!

    • @strebicux6174
      @strebicux6174 2 года назад +3

      Furry

  • @captaindoggo119lol5
    @captaindoggo119lol5 3 года назад +2006

    “Nice game, what coding software did you use?”
    “A calculator.”
    “What?”
    *“Did I stutter?”*

    • @lolpro12
      @lolpro12 2 года назад +37

      @@UCgx7OseCrundqkE8oEVeobg yes it is TI Nspire CX software has a built-in IDE(which kinda sucks)

    • @Bananooey
      @Bananooey 2 года назад +15

      @@UCgx7OseCrundqkE8oEVeobg And this is not a serious comment

    • @SeanGonzalezMDHEXT
      @SeanGonzalezMDHEXT 2 года назад +2

      @@lolpro12 and with the CX II, python!!!

    • @lolpro12
      @lolpro12 2 года назад

      @@UCgx7OseCrundqkE8oEVeobg nope its built in

    • @tae5216
      @tae5216 2 года назад

      At this point it isn’t even a surprise lol you can run so many games on the CX II

  • @AJLord
    @AJLord 2 года назад +89

    "I would build up suspense, but that takes effort, so here it is."
    Excellent quote

  • @SkyenNovaA
    @SkyenNovaA 2 года назад +609

    Virgins: Pre-Made game engine
    Chads: Write own game engine
    Giga omega sigma chads: calculator

    • @MouseGoat
      @MouseGoat 2 года назад +15

      lol yeah this is just flexing power that no one should have XD

    • @Golden_Projects
      @Golden_Projects 2 года назад +7

      I mean why waste your time and effort making a game engine when you can just use one and save years of work + being able to talk to other people experienced in it.

    • @SkyenNovaA
      @SkyenNovaA 2 года назад +26

      @@Golden_Projects people who do it for:
      fun
      learn how to use low level graphics apis
      companies that do not want to pay the fees for engines
      specific features that engines on the market dont have

    • @stickguy9109
      @stickguy9109 2 года назад +14

      Ultra mega tera sigma chad: builds own game engine in calculator

    • @sunnymoon1173
      @sunnymoon1173 2 года назад +9

      @@SkyenNovaA Personally, I used to make game clones in the Unity game engine, but after watching JohnDoesStuff's videos, never again.
      Now I want to only make my own games on Unity.

  • @lotsofloops
    @lotsofloops 3 года назад +181

    Here are some interesting things I found looking into that regression issue I found by analysing the Desmos worker and frontend code:
    - It appears to reparamaterize regressions to make them faster to evaluate (while still giving the same results), but not always
    - It checks for uses of sin, cos, and exp when reparamaterizing regressions
    - It looks at the "polynomialOrder" when parsing regressions
    - "tryRoundingSmallParametersToZero" is called, that should speak for itself
    - It tries to find a "linear subset" of... something
    - Unrelated but the code mentions a "graphing_3d" calculator, exciting!

  • @4DChess
    @4DChess 4 года назад +459

    John, I keep coming back to your channel and my jaw keeps dropping. You're such an exceptionally impressive fellow: from the crazy and creative feats you accomplish with code, to your ability to create and edit videos (demonstrative animations, good pacing, well-placed cuts). And to top it all off you're just in highschool?! Honoured to be one of your early subs, because you're very talented and I see so much potential!

    • @JohnDoesStuffLol
      @JohnDoesStuffLol  4 года назад +32

      Thank you so much! :D

    • @theluluexpress8528
      @theluluexpress8528 2 года назад +21

      @@JohnDoesStuffLol I believe that im the same age as you or max 1-2 years older. Your intelligence is actually mind blowing and you are ludicrously erudite in Mathematics. I hope your channel blows up because this content is amazing.

    • @anisomniac5931
      @anisomniac5931 2 года назад +10

      @@JohnDoesStuffLol OMG, YOU'RE ONLY IN HIGHSCHOOL!? Clearly you couldn't have learned most of this math from school, because I'm currently in 12th grade Calculus and none of the math I'm learning is even close to this _(we just finished learning the Law of Cosines)._
      *You essentially made a functional Flash game on nothing but an internet graphing calculator.* This stuff boggles my mind! You're an absolute genius, using your intellect in a unique way, and I feel like you're gonna go to great places in life.

    • @theluluexpress8528
      @theluluexpress8528 2 года назад

      @@anisomniac5931 lmao hes smarter than both of us by miles

    • @yashaswikulshreshtha1588
      @yashaswikulshreshtha1588 2 года назад

      @@JohnDoesStuffLol BROOO you're sooo frikkenn insaneee mann I loveee it. I CAN'T EVEN FRIKKEN BELIEVE YO UFRIKKEN MADE A GAME IN CALCULATOR! I FRIKKEN CAN'T MAKE ONE IN C++

  • @hrakk
    @hrakk 3 года назад +156

    I didn't have any idea what was happening in here, but it looks cool and this guy is definitely going places.

  • @simonwillover4175
    @simonwillover4175 2 года назад +121

    2:05 cool! But you no longer need to do this because Desmos has *actions* now.
    k -> k+1
    You can make an action happen every frame by using the ticker feature.

    • @Konyad
      @Konyad 2 года назад +17

      That's a gamechanger

    • @sunnymoon1173
      @sunnymoon1173 2 года назад

      Is it considered cheating, or can I really use actions it to create my own Desmos game tutorial video?

    • @dianjonker
      @dianjonker 2 года назад +8

      @@sunnymoon1173 If you're planning on doing a tutorial, you can leave that up to the viewer. Mention both the classic and "action" method with an example of each, and why you would pick one over the other

  • @ddevin
    @ddevin 2 года назад +37

    Damn, this is a perfect example of just how much overlap there can be between programing and math. Incredible work.

    • @sunnymoon1173
      @sunnymoon1173 2 года назад +2

      There is no overlap between programming and math. The universe IS math. Desmos is just an epic program created by epic meta-math nerds.

  • @lostcolonyforge5792
    @lostcolonyforge5792 2 года назад +25

    This helped me better understand how what is basically a very powerful calculator can run video games

  • @pichirisu
    @pichirisu 2 года назад +38

    using desmos for the first time this year since I ran through so many physical calculators I got tired of replacing them. This is actually a big deal, you should be proud of this. Good job, this is awesome.

  • @istolethisname9749
    @istolethisname9749 3 года назад +28

    This is criminally underrated

  • @SreenikethanI
    @SreenikethanI 3 года назад +26

    Dude this is really some amazing content… I'm yet to learn what a regression is, but it's so cool that you're able to explain the whole thing and make the viewer understand it too!!

  • @tuccig9289
    @tuccig9289 2 года назад +6

    when you’re parents want you to be a mathematician but you want to be a game developer:

  • @csicee
    @csicee 3 года назад +40

    So underrated. This is crazy

  • @vertexia9982
    @vertexia9982 2 года назад +8

    This supports my theory that games are just graphs with images

    • @MouseGoat
      @MouseGoat 2 года назад +6

      from a deterministic view, all of life is just graphs expressed in forms of energy.

  • @vavin6927
    @vavin6927 2 года назад +39

    “Basically a Geometry Dash clone”
    Flappy Bird: “Am I a joke to you🐥”

  • @anirudh7225
    @anirudh7225 2 года назад +15

    You, my friend, are AMAZING. Instantly subbed after watching the first vid from your channel and each subsequent watch does not fail to amaze me further

  • @daniel_rossy_explica
    @daniel_rossy_explica 2 года назад +3

    You are insane. I can barely do some math in Desmos and you made a game. That's awesome.

  • @metal3978
    @metal3978 2 года назад +6

    I knew desmos graphing calculator was an Eldritch horror.

  • @ZedDevStuff
    @ZedDevStuff 2 года назад +5

    Fun fact: there is a geometry dash copy with a level editor on the TI-83 calculators (the ones with colored screens)

  • @pratikkore7947
    @pratikkore7947 2 года назад +5

    "allowing you to play two different versions of the game at a time" yup, it's a feature, not a bug

  • @alexk9642
    @alexk9642 2 года назад +9

    when i made a dancing stickman in desmos i thought i was advanced holy crap

  • @CalamityInAction
    @CalamityInAction 2 года назад +7

    Two years ago I tried making a game and spent weeks on trying to figure out what I wanted, but I didn't and still don't know any coding language so it was HIGHLY rudimentary and frustrating (I didn't even know about polygon images). Anyways this topic is sentimental to me and it looks beautiful

  • @DardS8Br
    @DardS8Br 2 года назад +2

    This video just made me realize something. Graphing is essentially a coding language that uses math. Holy shit

  • @hamiltonianpathondodecahed5236
    @hamiltonianpathondodecahed5236 3 года назад +6

    Dude you should market that last bug as a feature

  • @upsidedown-pug1974
    @upsidedown-pug1974 2 года назад +1

    2001: "hehe I spelled 8008 on my calculator"
    2021:

  • @ghostagent3552
    @ghostagent3552 2 года назад +2

    You're a wizard, Johnny

  • @crlfff
    @crlfff 2 года назад

    you sir are insane, writing a game in code is one thing but with MATH is a whole other thing.

  • @4DChess
    @4DChess 4 года назад +18

    Holy crap.... This is elite my dude

  • @DhMrfuun
    @DhMrfuun 2 года назад +2

    Underrated You must Fall into recommendations

  • @greencuber8294
    @greencuber8294 2 года назад +2

    petition to be able to create autonomous variables so john doesnt have to use regressions lmao

  • @AmitKumar-ol5ky
    @AmitKumar-ol5ky 3 года назад +2

    That was dope bro!!.... You literally nailed it

  • @word6344
    @word6344 2 года назад +1

    That regression oscillation looks like some Schrodinger's car shit

  • @sholmes3654
    @sholmes3654 2 года назад

    This is crazy cool! I hope this gets more views, and I'm glad I got this in my recommended, awesome work!!

  • @RenderingUser
    @RenderingUser 2 года назад +3

    4:02
    bro you just basically made a game that has parallel universes using math

  • @mathguy37
    @mathguy37 8 месяцев назад

    they added a feature where making games is so much easier
    basically you can:
    -have a "ticker" that does actions every k milliseconds
    -have graphs work as buttons that also do actions

  • @BobbyJCFHvLichtenstein
    @BobbyJCFHvLichtenstein 2 года назад +1

    I watched the whole thing but I didn't understand a thing. This man is insane (in a good and smart way)!

  • @masterpig5s
    @masterpig5s 2 года назад +3

    Doom. It’s only so long until Doom is made.

    • @lamenwatch1877
      @lamenwatch1877 2 года назад +2

      Actually, that sounds like it could be possible tbh.
      (I could never do it of course)

  • @Templarfreak
    @Templarfreak 2 года назад +3

    i have already been messing with this for like an hour. i've made the slider an actual scale instead of an on/off state so you have fine-tuned control over the rocket's speed. maxing out the slider is the same speed as before. this definitely makes the game feel a bit fairer, because as soon as you react to something to move the slider, you immediately start gaining or losing speed as opposed to having to wait for the state to entirely flip on or off, but you also don't have to lose all of your speed, so you can then start to immediately gain the small amount of speed you lost back! :D

  • @thewoodpeckers655
    @thewoodpeckers655 2 года назад +1

    John sounds both really tired and enthusiastic at the same time. How does this man do it?

  • @MarioFan171
    @MarioFan171 Год назад

    Well back in 2019-2021, I Used to make maze games in Desmos with crazy gimmicms. The main objective is to get the dot to the end of the level

  • @sodiumfluoridel
    @sodiumfluoridel 2 года назад +1

    Its not fair that a channel this epic has only 3k subs

  • @mars_titan
    @mars_titan 2 года назад +1

    Me when I enter a complicated math expression into desmos: *hangs*
    Meanwhile no problem at running a game inside desmos. FML idk what's the issue

  • @mangus8759
    @mangus8759 2 года назад

    “Oh you’re a game dev? That’s cool! What coding engine?”
    “It’s complicated…”

  • @Sirbanza
    @Sirbanza 2 года назад

    John really did stuff

  • @zakir2815
    @zakir2815 2 года назад

    "What programming language do you use?"
    " *desmos* "

  • @ookazi1000
    @ookazi1000 2 года назад +1

    Waiting for the inevitable doom port to Desmos so I can with sincerity ask: "But does it run crysis?"

  • @billiboi122
    @billiboi122 11 месяцев назад

    "What language do you code in?"
    ...
    "Maths"

  • @AsaWRLD47
    @AsaWRLD47 Год назад +1

    The point where math, physics, and code are basically the same thing lolll

  • @newtonthenewt1400
    @newtonthenewt1400 2 года назад

    I like your funny words, magic man

  • @JojoJere
    @JojoJere Год назад +1

    For the error use, "K -> K+1" in the ticker

  • @professordragon
    @professordragon 2 года назад +1

    great video, also i remember seeing gd in desmos on reddit!

  • @kenopyowo
    @kenopyowo 2 года назад

    What's your favourite game engine? Oh desmos

  • @thisisachannel.8366
    @thisisachannel.8366 2 года назад

    I, uh, definitely understand this. something about regression and variables and two point counter syndrome

  • @DevashishGuptaOfficial
    @DevashishGuptaOfficial 2 года назад +3

    This is some brilliant problem solving. Goosebumps.

  • @anonymousperson5021
    @anonymousperson5021 11 месяцев назад

    My math teacher: "In my class, you're not allowed to use your computer for anything other than the calculator/" Me:

  • @Arnichoutoutou
    @Arnichoutoutou 2 года назад

    and here i was just ploting normal equation like a PLEB!

  • @Trupen2
    @Trupen2 2 года назад +1

    awesome

  • @stickguy9109
    @stickguy9109 2 года назад

    You are God of mathematics

  • @TinyGecko
    @TinyGecko 2 года назад +1

    My guy made a whole game in a calculator.

  • @jir_UwU
    @jir_UwU Год назад

    "Even calculator can run this game!"

  • @beybladeocto7116
    @beybladeocto7116 2 года назад +1

    Desmos is the real Unreal 6

  • @santuymen5688
    @santuymen5688 2 года назад

    This is on my recommended, I can feel the people coming.

  • @pixelmace1423
    @pixelmace1423 2 года назад

    Turing complete!

  • @shardic8899
    @shardic8899 2 года назад +1

    Would it be possible to disable the render in the case of player "death"? That might work as a simple enough workaround to re-synch as soon as the other gamestate dies. Alternatively, if you know the period of the desynch, could you somehow modulo the frames and only update state based on the odd state frames?

  • @TriggerlyDev
    @TriggerlyDev 3 года назад +1

    Bro you are underrated!

  • @Hyperlithh
    @Hyperlithh 2 года назад

    absolutely wild, you're very underrated

  • @nullFoo
    @nullFoo 2 года назад

    This is a lot of words I don't understand but that's cool

  • @connorcole7774
    @connorcole7774 2 года назад

    Bro is a genius

  • @realbrickbread
    @realbrickbread 2 года назад

    Oooo nice decode music

  • @melody_florum
    @melody_florum 2 года назад

    I don’t really know how regressions work but maybe you can have one global “time” regression and do everything else based on that? Idk maybe I’m just dumb!

  • @TASTEGROUND
    @TASTEGROUND 2 года назад +1

    DUDE DID A GAME ON DESMOS, I MEAN IT'S HARDER THAN ME DOING THE SCHOOL PROJECT

  • @samcivi9326
    @samcivi9326 2 года назад

    actual bop

  • @zainbain8261
    @zainbain8261 2 года назад

    You sound like a teenage version of the professor in space force

  • @rwx4096
    @rwx4096 4 года назад +2

    So underated😣

  • @swiftbull_
    @swiftbull_ 2 года назад

    now i want a game on an air frier

  • @nofriendsnofoodnowifekpopi2165
    @nofriendsnofoodnowifekpopi2165 2 года назад +1

    This is insane...

  • @monke4044
    @monke4044 2 года назад +1

    I don't know what kind of sorcery are you talking about,
    but damn you just made a game better than nowadays mobile games using this kinky method

  • @hazhim_
    @hazhim_ 2 года назад

    your brain is indeed massive

  • @tqit0210
    @tqit0210 2 года назад

    You're awesome.

  • @deltor1286
    @deltor1286 2 года назад

    Ima pull this up in class if i can

  • @radiationpony8449
    @radiationpony8449 Год назад

    Seems to me that just having it pick a frame would resolve the issue, or maybe run it in triplicate and take the majority ruling

  • @MrSlimeOfSlime
    @MrSlimeOfSlime 2 года назад +2

    Alright, Spu7Nix, make desmos in geometry dash

  • @uBreeze
    @uBreeze 2 года назад

    I like your funny words, magic man.

  • @UCmDBecUtbSafffpMEN3iscA
    @UCmDBecUtbSafffpMEN3iscA 2 года назад

    I'm quite surprised Desmos allows that :O

  • @chooch6484
    @chooch6484 2 года назад +1

    Could the problem be something with repeating variables such that in those frames, both slides of variables are just as likely in the programs mind?

  • @DexNathan
    @DexNathan Год назад

    How to flex your havard acceptance 101:

  • @8bitblues376
    @8bitblues376 2 года назад

    INB4 THIS EXPLODES

  • @sdslayer100
    @sdslayer100 2 года назад

    dude I can hardly figure out to use desmos to do normal math

  • @eriklokensgard7487
    @eriklokensgard7487 7 месяцев назад

    Holy moly!

  • @mygills3050
    @mygills3050 2 года назад

    This guy is a god

  • @user-ey7sn1lr3f
    @user-ey7sn1lr3f 3 года назад +1

    So underated😓

  • @Atlas_Moth
    @Atlas_Moth 2 года назад

    I hate math and suck at it, but this is so interesting and I’m confused but having a good time

  • @jasonpugliano
    @jasonpugliano 2 года назад +1

    Holy crap

  • @nestoons4539
    @nestoons4539 2 года назад

    I didn’t understand any of this, but it’s amazing

  • @TheMinecraftFan
    @TheMinecraftFan 4 года назад

    this is really cool i have subscribed.

  • @danieldkland
    @danieldkland 2 года назад

    Is.. Is the voice a TTS? Either that, or you have a beautifully robotic voice mr

  • @Spunney
    @Spunney 2 года назад

    neat video!

  • @jeele_fish
    @jeele_fish 3 года назад

    this is like when you would play games on khan academy so it looks like youre doing work

    • @MouseGoat
      @MouseGoat 2 года назад

      but like in reverse! pretty sure you can get full grads in any math exam just showing how you made this game