Join us on Discord!
You can help CodeWalrus stay online by donating here.

Programming Games in Ti-Basic

Started by alexgt, November 10, 2015, 09:17:41 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

alexgt

When I first started programming it was on a Ti-84+ in Basic. I have come a long way since but I was always looking for a (sudo) complete/understandable tutorial, if this sounds like you this is for you!
[spoiler=Step 1 making your first program]
1. Go to the home screen and press PRGM
2. Go to NEW and enter a name
3. You are now in the Ti-84+ IDE

4. From now on the key strokes are in the screen shot ;)

5. Time to run the program, can you guess what it will do?!
[spoiler=If you have figured it out open this!][/spoiler]
[/spoiler]
Now you are past the first step! I will add on to these quite often until there you are ready to take to the skys with your new found skilz ;)

This is the next step, here we talk about the while loop!
[spoiler=Step 2]
First of all lets create a program:
[spoiler]
[/spoiler]

We will be making a loop that counts X from 0 to 10 and then displays some text:
The first step is to set X to equal 0 and to make our loop
[spoiler][/spoiler]

Now we have to tell the loop when to run:
[spoiler][/spoiler]
This just says WHILE X is less than 0 run this code!

The next step is to tel the loop what to execute:
[spoiler][/spoiler]
This makes X's value go up by one every time the loop is run

Now we have to give visual feedback when the loop completes!
CHALLENGE: Do this by your self and see what you can come up with (it doesn't need to be exactly like mine)
[spoiler=Only open if you wish to spoil the CHALLENGE]
Outputs:

But wait the output is cut off O.O how can wee fix this?!
Look in the next step to find out really how simple it is[/spoiler]

All you need to do is separate it into two commands!
[spoiler][/spoiler]

Now you may be asking how on earth do we get that ugly prgmLOOPS off of the homescreen, that is also very easy
[spoiler]Just add ClrHome to the first line in your program
[/spoiler]

Now you will get this:
[spoiler][/spoiler]

Now for that pesky Done at the end:
[spoiler]All we do here is add a Pause at the end and that makes all line execution stop until the user presses enter
[/spoiler]

It should give you this:
[spoiler][/spoiler]

Congrats you have finished part 2!!!!

Sneak peak for next lesson:
[spoiler][/spoiler]
[/spoiler]
  • Calculators owned: Ti-84+, Ti-Nspire, Hp Prime, Broken HP Prime, HP 48SX

alexgt

Err... Thx for moving that Cumred I realized right after I posted it xD
  • Calculators owned: Ti-84+, Ti-Nspire, Hp Prime, Broken HP Prime, HP 48SX

Snektron

No problem :P also cool that you're making tutorials :)
  • Calculators owned: TI-84+
Legends say if you spam more than DJ Omnimaga, you will become a walrus...


alexgt

Thanks, I have a friend at school that wants to start with making games in Basic so I told him I would start a tutorial today :)
Also more in-depth tutorials will be a video (like larger game projects)
  • Calculators owned: Ti-84+, Ti-Nspire, Hp Prime, Broken HP Prime, HP 48SX

p4nix

Keep him interested :P I remember making that Whack A Mole C-project for fx9860 to get a friend into coding - we were only missing a highscore save feature and a kind of menu --> we stopped :P
  • Calculators owned: fx9860GII (SH4)

alexgt

Yeah I am thinking most every day I will post something here :)
  • Calculators owned: Ti-84+, Ti-Nspire, Hp Prime, Broken HP Prime, HP 48SX

novenary

Nice, a tutorial for the absolute beginners. Good luck with it. :)

alexgt

  • Calculators owned: Ti-84+, Ti-Nspire, Hp Prime, Broken HP Prime, HP 48SX

Dream of Omnimaga

I hope you update this in the future. It would probably be a bit less clickbait to the eyes of people who are seeking for a full getting started with BASIC game programming tutorial. :P

Since there are already many tutorials out there including one by TI, perhaps that to avoid reinventing the wheel, your tutorial should focus on getting people to learn game-specific tricks more, while encouraging them to check out TI-BD and other tutorials out there for info on commands.
  • Calculators owned: TI-82 Advanced Edition Python TI-84+ TI-84+CSE TI-84+CE TI-84+CEP TI-86 TI-89T cfx-9940GT fx-7400G+ fx 1.0+ fx-9750G+ fx-9860G fx-CG10 HP 49g+ HP 39g+ HP 39gs (bricked) HP 39gII HP Prime G1 HP Prime G2 Sharp EL-9600C
  • Consoles, mobile devices and vintage computers owned: Huawei P30 Lite, Moto G 5G, Nintendo 64 (broken), Playstation, Wii U

alexgt

Yeah, I am planning on making one today about loops (SynText has taken a lot of my time) and after that I will start making little game projects.
  • Calculators owned: Ti-84+, Ti-Nspire, Hp Prime, Broken HP Prime, HP 48SX

Dream of Omnimaga

  • Calculators owned: TI-82 Advanced Edition Python TI-84+ TI-84+CSE TI-84+CE TI-84+CEP TI-86 TI-89T cfx-9940GT fx-7400G+ fx 1.0+ fx-9750G+ fx-9860G fx-CG10 HP 49g+ HP 39g+ HP 39gs (bricked) HP 39gII HP Prime G1 HP Prime G2 Sharp EL-9600C
  • Consoles, mobile devices and vintage computers owned: Huawei P30 Lite, Moto G 5G, Nintendo 64 (broken), Playstation, Wii U

alexgt

I posted another tutorial but the pics are messed up and I haven't had time to fix them <_<.
  • Calculators owned: Ti-84+, Ti-Nspire, Hp Prime, Broken HP Prime, HP 48SX

Dream of Omnimaga

Oh I see. You really should bump this topic everytime you post a new tutorial and change stuff, though, because I did not notice your edit until recently. >.<
  • Calculators owned: TI-82 Advanced Edition Python TI-84+ TI-84+CSE TI-84+CE TI-84+CEP TI-86 TI-89T cfx-9940GT fx-7400G+ fx 1.0+ fx-9750G+ fx-9860G fx-CG10 HP 49g+ HP 39g+ HP 39gs (bricked) HP 39gII HP Prime G1 HP Prime G2 Sharp EL-9600C
  • Consoles, mobile devices and vintage computers owned: Huawei P30 Lite, Moto G 5G, Nintendo 64 (broken), Playstation, Wii U

alexgt

#13
I didn't bump it since the pics are broken, I guess I need to fix that xD

EDIT: pics are fixed
  • Calculators owned: Ti-84+, Ti-Nspire, Hp Prime, Broken HP Prime, HP 48SX

Dream of Omnimaga

Ah I see now. Glad that they are fixed. I think pics should be uploaded on ourl.ca or img.codewalr.us for posterity.
  • Calculators owned: TI-82 Advanced Edition Python TI-84+ TI-84+CSE TI-84+CE TI-84+CEP TI-86 TI-89T cfx-9940GT fx-7400G+ fx 1.0+ fx-9750G+ fx-9860G fx-CG10 HP 49g+ HP 39g+ HP 39gs (bricked) HP 39gII HP Prime G1 HP Prime G2 Sharp EL-9600C
  • Consoles, mobile devices and vintage computers owned: Huawei P30 Lite, Moto G 5G, Nintendo 64 (broken), Playstation, Wii U

Powered by EzPortal