Omnimaga

Calculator Community => TI Calculators => Axe => Topic started by: Z@VY on May 27, 2010, 10:02:35 am

Title: Recalling a pic
Post by: Z@VY on May 27, 2010, 10:02:35 am
For the title-screen of my game I need to recall a pic but I haven't found how to make it.

Which command should I use ?
Title: Re: Recalling a pic
Post by: SirCmpwn on May 27, 2010, 10:08:09 am
What kind of game?
TI Basic, Axe, or Asm, I can help with all of those.
Title: Re: Recalling a pic
Post by: Z@VY on May 27, 2010, 10:14:47 am
I want to recall a pic in an axe program
Title: Re: Recalling a pic
Post by: SirCmpwn on May 27, 2010, 10:17:13 am
Ah.  Okay.  I should have realized this was in the Axe subforum.  *facepalm*  Here's what you want to do:
Code: (Axe Basic) [Select]
[Pic1]→Pic1  // Do this at the start of your program to absorb Pic1
// ...
// To recall it:
conj(Pic1,L6,768

Then, just DispGraph to show it.
Title: Re: Recalling a pic
Post by: Z@VY on May 27, 2010, 10:18:27 am
Thanks I'll try it when I'll have the time
Title: Re: Recalling a pic
Post by: SirCmpwn on May 27, 2010, 10:21:27 am
Good luck!
What kind of game are you making?
Also, welcome to Omnimaga!
Title: Re: Recalling a pic
Post by: Z@VY on May 27, 2010, 10:30:12 am
I'm making a Guitar-Hero like and I'll maybe show a first version this week-end
Title: Re: Recalling a pic
Post by: ztrumpet on May 27, 2010, 10:35:22 am
That sounds pretty cool.  Oh, and if you want you can Introduce Yourself.
:) (http://www.omnimaga.org/index.php?board=10.0)
Title: Re: Recalling a pic
Post by: Z@VY on May 27, 2010, 10:37:41 am
I'll try to make it but what should I say ?
Title: Re: Recalling a pic
Post by: SirCmpwn on May 27, 2010, 11:31:44 am
Just talk about yourself.  Brag a little.
I look forward to seeing that this weekend, sounds awesome!
Title: Re: Recalling a pic
Post by: Z@VY on May 27, 2010, 12:04:36 pm
Yeah but it can be a few days later (even if I'm trying to do this for saturday the graphist isn't very fast)

And I hope that it will be awesome too

(BTW could I have a little corner of the forum for this game ? Cause in later versions you'll be able to create your own songs and to exchange them with other people and it would be easier to have a topic to gather all of them)
Title: Re: Recalling a pic
Post by: kindermoumoute on May 27, 2010, 12:06:42 pm
Ah.  Okay.  I should have realized this was in the Axe subforum.  *facepalm*  Here's what you want to do:
Code: (Axe Basic) [Select]
[Pic1]→Pic1  // Do this at the start of your program to absorb Pic1
// ...
// To recall it:
conj(Pic1,L6,768


Then, just DispGraph to show it.
You need use det(
Code: (Axe Basic) [Select]
:[Pic1]→Pic1
:det(12)
:pic1→dispgraph
Title: Re: Recalling a pic
Post by: SirCmpwn on May 27, 2010, 12:09:05 pm
Ahh, I was thinking of the old version.  kindermoumoute (btw, awesome name) is almost right.  det(12) isn't needed, you can just remove that line (as far as I'm aware).  However, Pic1→DispGraph is correct, although conj(Pic1,L6,768 is essentially the same.
Title: Re: Recalling a pic
Post by: Z@VY on May 27, 2010, 12:13:09 pm
If I take the latest version of axe (instead of the 0.2.2 I was still using) how should I do
Title: Re: Recalling a pic
Post by: SirCmpwn on May 27, 2010, 12:14:38 pm
If you are using 0.2.2, use conj(
If you are using latest, use →DispGraph
Title: Re: Recalling a pic
Post by: Z@VY on May 27, 2010, 12:15:32 pm
Ok thanks
Title: Re: Recalling a pic
Post by: SirCmpwn on May 27, 2010, 12:16:18 pm
Sure thing.  Welcome to Omnimaga, by the way.  Someone will be along shortly with some peanuts for you.
Title: Re: Recalling a pic
Post by: DJ Omnimaga on May 27, 2010, 12:17:19 pm
(BTW could I have a little corner of the forum for this game ? Cause in later versions you'll be able to create your own songs and to exchange them with other people and it would be easier to have a topic to gather all of them)
We generally wait until there is signifiant progress on people game before featuring them in a sub-forum, though. Otherwise people just get the title screen done with nothing else (or barely) and get a sub-forum (which people dislike). Also the project has to be extremly good to go in the Major community projects section (such as CaDan and the Nspire Raycaster), otherwise then I'll get flooded/spammed with sub-forum requests :( so make sure it is very good and it might have a chance ^^

For now feel free to announce your project in "Other calculator projects and ideas"
Title: Re: Recalling a pic
Post by: Z@VY on May 27, 2010, 12:18:21 pm
Cool but I think I'll see that tomorrow because I have a lot of work (and a program) left.

And why ?

Oh and I can wait until the version with editor or something like that
Title: Re: Recalling a pic
Post by: Quigibo on May 27, 2010, 01:41:28 pm
Just to clarify, you do need the det(12) after absorbing the pic.  This is becasue the pics stored on the calculator are 96x63 which means the last row is missing.  So if you don't add in the last row, you'll get some random pixels on the bottom.  det(12) makes sure it adds 12 bytes of zeros to the end of the picture (white pixels) so that the last row is solid white.  If you want solid black instead, if you have an inverted title screen, then add [FFFFFFFFFFFFFFFFFFFFFFFF] which is 24 'F's to create a solid black line at the bottom.

Also, there is a big difference between using the copy command conj() and the display buffer command ->DispGraph.  When you copy, you physically copy the picture into the graph buffer which means you can draw sprites over it, test pixels, use grayscale, etc.  If you use ->DispGraph however, it only prints the buffer to the screen, not to the graph buffer.  This is fine if you just want a simple picture with no animations, but anything else you should use conj().

Good luck on your project :)
Title: Re: Recalling a pic
Post by: Z@VY on May 27, 2010, 01:44:10 pm
Thanks I believe I understand now
Title: Re: Recalling a pic
Post by: DJ Omnimaga on May 27, 2010, 02:09:32 pm
Cool but I think I'll see that tomorrow because I have a lot of work (and a program) left.

And why ?

I'm not sure why you are asking why, since I stated the reason why we don't accept all projects in the sub-forum in my previous post.

En gros, seuls les projets de très haute qualité qui sont assez avancés en terme de développement peuvent avoir une section dans "Major community projects". Sinon, tout le monde me demanderait une section pour leur projets et ça deviendrait trop pénible à gérer. (déja que je recois entre 5 et 20 messages privés par jour sans compter les e-mails de Mr.Coding Knight :P) Pour la section RPG la barre est moins haute parce que les projets TI RPG sont assez rares et Omnimaga essaie de garder un peu ses racines RPG.

Si on voit que ton projet est très bien alors tu as des grosses chances d'avoir une section pour lui

EDIT: @Quigibo: Do you mean we can do stuff like Line(5,2,31,46)->DispGraph? Because that displays garbage to me (altough when I exit the program, then go check the graph screen, usually I'll see a line there fine). That garbage appears to be the calc RAM, because by moving a line outside the screen once, I managed to display the content of TI-BASIC Pic files and even the homescreen (with some glitches)

Title: Re: Recalling a pic
Post by: Z@VY on May 28, 2010, 11:16:44 am
Oh I understood that I was asking for the peanuts
Title: Re: Recalling a pic
Post by: DJ Omnimaga on May 28, 2010, 01:27:20 pm
Ooooh I see, ok ^^

The peanut thing is an old Omnimaga "meme" (like the jokes on 4chan, such as rickroll, chocolate rain, sparta, AYBABTU, mudkipz, lolcats, etc, except Omnimaga-specific rather than internet-wide) involving members giving peanuts to new members on the forums (not literally).

(http://www.omnimaga.org/images/peanut-bag-rickroll.gif)

(You'll see this everywhere in the intro section of the forums) :P
Title: Re: Recalling a pic
Post by: Z@VY on May 28, 2010, 01:49:55 pm
Ok but what's a "meme" ?
Title: Re: Recalling a pic
Post by: DJ Omnimaga on May 28, 2010, 01:54:59 pm
http://fr.wikipedia.org/wiki/Mème_(internet)
http://fr.wikipedia.org/wiki/Liste_de_phénomènes_Internet
http://en.wikipedia.org/wiki/Internet_meme

EDIT: Copier/coller les addresses. Le forum n'accepte pas les accents dans les liens >.>
Title: Re: Recalling a pic
Post by: Z@VY on May 29, 2010, 07:32:05 am
I see ...
Title: Re: Recalling a pic
Post by: DJ Omnimaga on May 29, 2010, 07:08:26 pm
Sometimes we need to have some sense of humor else life gets boring :P

Plus it's annoying that on many other forums in the past, if people became too random they either got warned for flood/spam or people started making fun of them, so Omnimaga is more loose on that :P