Author Topic: Image Variables  (Read 6874 times)

0 Members and 1 Guest are viewing this topic.

Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Image Variables
« on: January 10, 2011, 03:18:13 pm »
Hello, I was told here at Omnimaga that afterall we can use more than Pic0-Pic9. What are those 'more'?

If those 'more' exist, I may go back to calculator programming (this is what made me give up).

Offline yunhua98

  • You won't this read sentence right.
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2718
  • Rating: +214/-12
  • Go take a dive in the River Lethe.
    • View Profile
Re: Image Variables
« Reply #1 on: January 10, 2011, 03:23:11 pm »
not in BASIC, but for AXE parser, you can have Pi0-Pic9 plus any combination of two more letters/numbers.

examples: Pic1A, Pic1B3, Pic5Y, Pic099...
although you can only have 153 static pointers max, you can use relative referencing, so this:
Code: [Select]
[0000000000000000]->Pic1
[FFFFFFFFFFFFFFFF]->Pic2
Pt-on(0,0,Pic1
Pt-on(0,8,Pic2
Dispgraph
is the same as
Code: [Select]
[0000000000000000]->Pic1
[FFFFFFFFFFFFFFFF]
Pt-on(0,0,Pic1
Pt-on(0,8,Pic1+8
since they're pointers
« Last Edit: January 10, 2011, 03:24:02 pm by yunhua98 »

Spoiler For =====My Projects=====:
Minor setback due to code messing up.  On hold for Contest.
<hr>
On hold for Contest.


Spoiler For ===Staff Memberships===:






Have you seen any good news-worthy programs/events?  If so, PM me with an article to be included in the next issue of CGPN!
The Game is only a demo, the code that allows one to win hasn't been done.
To paraphrase Oedipus, Hamlet, Lear, and all those guys, "I wish I had known this some time ago."
Signature Last Updated: 12/26/11
<hr>

SirCmpwn

  • Guest
Re: Image Variables
« Reply #2 on: January 10, 2011, 03:24:57 pm »
You can also use xLib, Celtic III, etc, to access more pic variables through TI-Basic.

Offline yunhua98

  • You won't this read sentence right.
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2718
  • Rating: +214/-12
  • Go take a dive in the River Lethe.
    • View Profile
Re: Image Variables
« Reply #3 on: January 10, 2011, 03:26:01 pm »
You can also use xLib, Celtic III, etc, to access more pic variables through TI-Basic.
I know this is in Axe Forum, but how many extra pics in tibasic could be accessed?

Spoiler For =====My Projects=====:
Minor setback due to code messing up.  On hold for Contest.
<hr>
On hold for Contest.


Spoiler For ===Staff Memberships===:






Have you seen any good news-worthy programs/events?  If so, PM me with an article to be included in the next issue of CGPN!
The Game is only a demo, the code that allows one to win hasn't been done.
To paraphrase Oedipus, Hamlet, Lear, and all those guys, "I wish I had known this some time ago."
Signature Last Updated: 12/26/11
<hr>

Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: Image Variables
« Reply #4 on: January 10, 2011, 03:26:12 pm »
Why does everybody suppose I'm talking about Basic in the Axe forum?

SirCmpwn

  • Guest
Re: Image Variables
« Reply #5 on: January 10, 2011, 03:26:29 pm »
There can be up to 256 pictures at one time.  Also, I was just expanding on the information given, not necessarily talking about Basic for your ends.
« Last Edit: January 10, 2011, 03:27:55 pm by SirCmpwn »

Offline yunhua98

  • You won't this read sentence right.
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2718
  • Rating: +214/-12
  • Go take a dive in the River Lethe.
    • View Profile
Re: Image Variables
« Reply #6 on: January 10, 2011, 03:28:07 pm »
Why does everybody suppose I'm talking about Basic in the Axe forum?
well, i knew you were talking about Axe cause I told you there were more than Pic0-9. but since you said Picture variable when usually, people refer to them as pointers.  ;)

EDIT:  since they are pointers, you could also use Str1 instead of Pic1, but since its more sensible to use Pics for sprites and strs for Text and GDBs for data, we just do it that way.  ;)  I think the Axe documentation elaborates on that a bit more.  ;)
« Last Edit: January 10, 2011, 03:29:56 pm by yunhua98 »

Spoiler For =====My Projects=====:
Minor setback due to code messing up.  On hold for Contest.
<hr>
On hold for Contest.


Spoiler For ===Staff Memberships===:






Have you seen any good news-worthy programs/events?  If so, PM me with an article to be included in the next issue of CGPN!
The Game is only a demo, the code that allows one to win hasn't been done.
To paraphrase Oedipus, Hamlet, Lear, and all those guys, "I wish I had known this some time ago."
Signature Last Updated: 12/26/11
<hr>

Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: Image Variables
« Reply #7 on: January 10, 2011, 03:28:51 pm »
Why does everybody suppose I'm talking about Basic in the Axe forum?
well, i knew you were talking about Axe cause I told you there were more than Pic0-9. but since you said Picture variable when usually, people refer to them as pointers.  ;)

Oh yeah, they are pointers.

Thanks much everyone, this is great for me (sprite user).