CodeWalrus

Development => Calculators => Calculator News, Coding, Help & Talk => Topic started by: kotu on August 16, 2016, 09:37:38 AM

Title: Using Appvars to store game data in C on TI84+CE [C] [TI-84+CE]
Post by: kotu on August 16, 2016, 09:37:38 AM
Hi I'm using Mateo's C sdk to make a game however I cannot find anywhere which explains how to keep game data, graphics etc in Appvars.

Can anyone explain this or provide some code to show me?

Thankyou
Title: Re: Using Appvars to store game data in C on TI84+CE [C] [TI-84+CE]
Post by: E37 on August 16, 2016, 04:08:42 PM
You may have to create your own manually...
Are you familiar with the VAT? It stores the location, name and size (along with a few other things)
You may have to create your own entry in it. That would be worst case though...
https://www.omnimaga.org/axe-language/vat-tutorial/
That is how the VAT is structured... In b/w 84s though.
From what I've seen the VAT should be the same for both.
I'd use this as a last resort. There probably are easier ways to do this.
Title: Re: Using Appvars to store game data in C on TI84+CE
Post by: Unicorn on August 16, 2016, 04:51:44 PM
https://www.cemetech.net/forum/viewtopic.php?t=12725&highlight=

I did not mean to just post that link, sorry. :/

That link has information about storing data to appvars using the C library, and some other useful code snippets about debugging.
Title: Re: Using Appvars to store game data in C on TI84+CE [C] [TI-84+CE]
Post by: c4ooo on August 16, 2016, 06:45:56 PM
You really dont need to know the vat structure unless your writing a shell :P
Ime not sure, but it think C has libs for file IO.
Title: Re: Using Appvars to store game data in C on TI84+CE [C] [TI-84+CE]
Post by: kotu on August 16, 2016, 09:39:03 PM
Quote from: c4ooo on August 16, 2016, 06:45:56 PM
Ime not sure, but it think C has libs for file IO.


ha ha! yes you are right