Simple Program Game for the TI83/84

Sdílet
Vložit
  • čas přidán 22. 08. 2024
  • A very BASIC game to practice learning programming fundamentals on the TI83/84 calculator series.

Komentáře • 52

  • @MMman2b8
    @MMman2b8 Před 6 lety +8

    Thank u so much, it helps with all the tips because I just got my t I 83 yesterday and it makes me look cool

  • @TheLastMillennial
    @TheLastMillennial Před 6 lety +3

    1:30 You can also use Lists and Matrices. 3:04 I wouldn't put that ClrHome within the loop, it's simple, but not ideal for advanced programming. It'd be better if you displayed a white space on the space you want to clear. (You could do this by doing Output(A,B," "):Output(C,D," ") right before your first output commands ) 7:19 There's a faster, more advanced way to do the screen boundary check & button press check, I can share some code for it if you'd like. 9:45 it's not necessarily 'memory', it's the CPU that's super slow. Personally I wouldn't reuse a variable for a completely different purpose in the same program, it can make debugging a *pain* if your program doesn't work. The calculator has a decent amount of RAM, you don't need to be *that* reserved with it. :) 12:37 oooh I see now what you did, that's pretty nifty. I think I can give you some better optimized code than all those if statements. If you could give me the entire program, I'll do what I can to optimize it! 16:06 Nice tip.
    I know I was very nitpicky with you, but overall I thought you did a very nice job explaining the code as you went! How long have you been programming? Since 10 years ago? I look forward to future videos!

    • @johnwasiluk1789
      @johnwasiluk1789  Před 5 lety +1

      I believe that using List or Matrix variables having a slightly slower call time than the built in simple letters. The ClrHome certainly leads to a lot of noticeable flicker, but I figured it would be simpler to do a simple ClrHome rather than two Outputs. Honestly the two Outputs would not be much extra work and it wouldn't increase the size of the program by much.
      I'd love to see some of your better boundary checking and optimized logic. The full program is what is shown in this video. I wrote this code in my very first few weeks programming on the TI-83/84 series and it has held up as one of the better games I've written, I believe. The code has not evolved much since that time, though I've tried several variations of the core concept.
      I will try to get some more videos out that cover techniques such as Lists and Matrices for more variable storage, as well as String manipulation for graphics, Matrices for map data, String Spriting, Plot Spriting. What are other topics you think would be helpful to cover?

  • @darrenlau1899
    @darrenlau1899 Před 4 lety +11

    When he talks it gives me time lol

    • @Asian_Kid
      @Asian_Kid Před rokem +1

      Your comment is 4 years old. Please reply

    • @wibawabo6978
      @wibawabo6978 Před 8 měsíci +1

      ​@@Asian_Kidyour comment Is 1 year old, please reply

    • @Asian_Kid
      @Asian_Kid Před 8 měsíci +1

      @@wibawabo6978 no

    • @Magictoxxigaming
      @Magictoxxigaming Před 7 měsíci

      @@wibawabo6978ur comment is 1 month old pls reply

  • @BentleyKingToebeansOwenRhett

    Speedrunning vids: How to make tag on a calculator. The longer you survive, the higher the score. When you get caught, you lose.

  • @onlyvirly2c
    @onlyvirly2c Před 3 lety +4

    I hope this works for me lol. Last time I tried to make a game on my calculator i miserably failed because of some error I didn’t know how to fix.

  • @hailceaser2003
    @hailceaser2003 Před 10 měsíci

    it worked for me on my ti-83, so cool.

  • @samrostetter228
    @samrostetter228 Před 5 lety +4

    So I was having a lot of trouble with the whole score thing and I turns out that I accidentally didn't put a comma before my qoute so it threw off the whole score board

  • @sticktock2448
    @sticktock2448 Před 4 lety +1

    Dope dude!! 👍😄

  • @larce4158
    @larce4158 Před 5 lety +2

    My figure will automatically move to the right and I can't move left, only up and down. What did I do wrong?

    • @johnwasiluk1789
      @johnwasiluk1789  Před 5 lety +3

      You probably forgot an If statement and have B+1->B somewhere in the loop being executed. If your AI logic happens before your player movement, the player input is overwritten. As TheLastMillennial noted, using the same variable for different purposes can lead to bugs that are tough to catch and fix. Double check that the line B+1->B has an If F=26 and B

  • @ChozoSR388
    @ChozoSR388 Před 8 měsíci

    I'm sorry, but getKey->K is the only way to use getKey, as K is short for [K]ey. Any other variable used with getKey should be disallowed. Change my mind.*
    Also, A,B and C,D are very odd representations of player and computer co-ordinates, as X and Y are typically used for player positioning (sometimes S and T, also, if you need a second set of X,Y co-ordinates for the player.) and A and B for COM position.
    Please note that I'm joking, but, using K to store the value of getKey DOES make more sense, mnemonically.

  • @jacobz4421
    @jacobz4421 Před 5 lety +3

    So it says it won’t work when I first open it up. I go to the error and it says it’s at the output(a,b,”0
    Output(c,d,”x

    • @johnwasiluk1789
      @johnwasiluk1789  Před 5 lety +1

      What type of error is it?

    • @robbyeaucoin9612
      @robbyeaucoin9612 Před 5 lety +1

      @@johnwasiluk1789 I'm having the same error its a domain error

    • @colinzastrow1fan871
      @colinzastrow1fan871 Před 4 lety +1

      I tried the program on my ti 84 and when the computer hits the left side of the screen I also get a domain error

    • @oscarr1161
      @oscarr1161 Před 2 lety +1

      @@johnwasiluk1789 domain

    • @oscarr1161
      @oscarr1161 Před 2 lety +1

      @@johnwasiluk1789 its a domain error

  • @Joey42568
    @Joey42568 Před 2 lety

    i haven o idea how to get the letters for the code i thonk im dumb i have :1> then i dont know

  • @taytumackerman3264
    @taytumackerman3264 Před 4 lety

    Quick disclaimer this is a positive criticism
    My Ai was so broken it was avoiding me and sometimes when I was trying to die

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

    For me it shows error archived

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

      You may need to go into your calculator's memory settings and unarchive any of the variables used in this program

  • @D_KEEF
    @D_KEEF Před 4 lety +1

    mine says there is a domain error after awhile

    • @rich3326
      @rich3326 Před 4 lety

      i think its just your calculator's memory, mine is doing the same thing

  • @justmyles4425
    @justmyles4425 Před 4 lety +2

    What button do you use to play

  • @ChildoGODreal
    @ChildoGODreal Před 4 lety +1

    Very cool, but can i adjust the speed?

    • @johnw4853
      @johnw4853 Před 4 lety +1

      You can always add in lines where you overwrite a value in a dummy variable to slow it down, but to speed it up you can only really free up RAM.

  • @lizgilbes6200
    @lizgilbes6200 Před 4 lety +1

    How do you get a blank space?

  • @stickdoodles7177
    @stickdoodles7177 Před 4 lety +1

    How do I get a arrow?

  • @booyadee3148
    @booyadee3148 Před 5 lety

    Where do you find the / on ti 83 plus

  • @legodarthvader3567
    @legodarthvader3567 Před 3 lety

    I did this on my Ti-83plus and my character won't move at all.

    • @johnwasiluk1789
      @johnwasiluk1789  Před 3 lety +1

      make sure you have the getkey-> command correct, as well as the If statements regarding the variable you are storing the key into.

  • @pikterra64
    @pikterra64 Před 2 lety

    Its not working

  • @axelwuffofficial
    @axelwuffofficial Před 4 lety

    How do I make the arrows?

    • @johnw4853
      @johnw4853 Před 4 lety

      The STO button, right above the On/Off button

  • @aziaanimates9885
    @aziaanimates9885 Před 3 lety

    10:39

  • @bruhmoment3395
    @bruhmoment3395 Před 4 lety

    8:14