Author Topic: Vertical Text Sprites  (Read 24233 times)

0 Members and 1 Guest are viewing this topic.

Offline Xeda112358

  • they/them
  • Moderator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4704
  • Rating: +719/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: Vertical Text Sprites
« Reply #30 on: April 01, 2012, 05:27:09 pm »
But then you cannot get the bottom rows, right?

Offline ztrumpet

  • The Rarely Active One
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5712
  • Rating: +364/-4
  • If you see this, send me a PM. Just for fun.
    • View Profile
Re: Vertical Text Sprites
« Reply #31 on: April 01, 2012, 05:30:06 pm »
But then you cannot get the bottom rows, right?
Right.  There's drawbacks to every single type of text sprites for this reason.

Offline blue_bear_94

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 801
  • Rating: +25/-35
  • Touhou Enthusiast / Former Troll / 68k Programmer
    • View Profile
Re: Vertical Text Sprites
« Reply #32 on: May 09, 2012, 04:15:08 pm »
How do you store a lot of rows for vertical text sprites? Would you store those rows to a string separated by something like "000, 001, etc?"

Edit: I found this.
« Last Edit: May 09, 2012, 04:18:07 pm by blue_bear_94 »
Due to dissatisfaction, I will be inactive on Omnimaga until further notice. (?? THP hasn't been much success and there's also the CE. I might possibly be here for a while.)
If you want to implore me to come back, or otherwise contact me, I can be found on GitHub (bluebear94), Twitter (@melranosF_), Reddit (/u/Fluffy8x), or e-mail (if you know my address). As a last resort, send me a PM on Cemetech (bluebear94) or join Touhou Prono (don't be fooled by the name). I've also enabled notifications for PMs on Omnimaga, but I don't advise using that since I might be banned.
Elvyna (Sunrise) 4 5%
TI-84+SE User (2.30 2.55 MP 2.43)
TI-89 Titanium User (3.10)
Casio Prizm User? (1.02)
Bag  東方ぷろの

Offline jsj795

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1105
  • Rating: +84/-3
    • View Profile
Re: Vertical Text Sprites
« Reply #33 on: May 09, 2012, 07:46:57 pm »
or you can just hardcode it.

Text(56,0,"1ST ROW STRING
Text(55,0,"2ND ROW STRING
Text(54,0,"3RD ROW STRING

etc.


Spoiler For funny life mathematics:
1. ROMANCE MATHEMATICS
Smart man + smart woman = romance
Smart man + dumb woman = affair
Dumb man + smart woman = marriage
Dumb man + dumb woman = pregnancy
2. OFFICE ARITHMETIC
Smart boss + smart employee = profit
Smart boss + dumb employee = production
Dumb boss + smart employee = promotion
Dumb boss + dumb employee = overtime
3. SHOPPING MATH
A man will pay $2 for a $1 item he needs.
A woman will pay $1 for a $2 item that she doesn't need.
4. GENERAL EQUATIONS & STATISTICS
A woman worries about the future until she gets a husband.
A man never worries about the future until he gets a wife.
A successful man is one who makes more money than his wife can spend.
A successful woman is one who can find such a man.
5. HAPPINESS
To be happy with a man, you must understand him a lot and love him a little.
To be happy with a woman, you must love her a lot and not try to understand her at all.
6. LONGEVITY
Married men live longer than single men do, but married men are a lot more willing to die.
7. PROPENSITY TO CHANGE
A woman marries a man expecting he will change, but he doesn't.
A man marries a woman expecting that she won't change, and she does.
8. DISCUSSION TECHNIQUE
A woman has the last word in any argument.
Anything a man says after that is the beginning of a new argument.

Girls = Time * Money (Girls are a combination of time and money)
Time = Money (Time is money)
Girls = Money squared (So, girls are money squared)
Money = sqrt(Evil) (Money is also the root of all evil)
Girls = sqrt(Evil) squared (So, girls are the root of all evil squared)
Girls = Evil (Thus, girls are evil)
*Girls=Evil credit goes to Compynerd255*

Offline blue_bear_94

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 801
  • Rating: +25/-35
  • Touhou Enthusiast / Former Troll / 68k Programmer
    • View Profile
Re: Vertical Text Sprites
« Reply #34 on: May 09, 2012, 08:01:40 pm »
That would take too much memory. We have only 24KB of RAM on our calcs.
Due to dissatisfaction, I will be inactive on Omnimaga until further notice. (?? THP hasn't been much success and there's also the CE. I might possibly be here for a while.)
If you want to implore me to come back, or otherwise contact me, I can be found on GitHub (bluebear94), Twitter (@melranosF_), Reddit (/u/Fluffy8x), or e-mail (if you know my address). As a last resort, send me a PM on Cemetech (bluebear94) or join Touhou Prono (don't be fooled by the name). I've also enabled notifications for PMs on Omnimaga, but I don't advise using that since I might be banned.
Elvyna (Sunrise) 4 5%
TI-84+SE User (2.30 2.55 MP 2.43)
TI-89 Titanium User (3.10)
Casio Prizm User? (1.02)
Bag  東方ぷろの

Offline Yeong

  • Not a bridge
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3739
  • Rating: +278/-12
  • Survivor of Apocalypse
    • View Profile
Re: Vertical Text Sprites
« Reply #35 on: May 09, 2012, 08:02:25 pm »
But it can be more efficient if you're not using it very much.
EDIT: At least, faster than For loops
« Last Edit: May 09, 2012, 08:02:48 pm by yeongJIN_COOL »
Sig wipe!

Offline jsj795

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1105
  • Rating: +84/-3
    • View Profile
Re: Vertical Text Sprites
« Reply #36 on: May 09, 2012, 08:04:51 pm »
I think storing all the rows in a string will take more RAM out, whereas my method you don't even use the string at all. Also speed-wise, it will be faster.


Spoiler For funny life mathematics:
1. ROMANCE MATHEMATICS
Smart man + smart woman = romance
Smart man + dumb woman = affair
Dumb man + smart woman = marriage
Dumb man + dumb woman = pregnancy
2. OFFICE ARITHMETIC
Smart boss + smart employee = profit
Smart boss + dumb employee = production
Dumb boss + smart employee = promotion
Dumb boss + dumb employee = overtime
3. SHOPPING MATH
A man will pay $2 for a $1 item he needs.
A woman will pay $1 for a $2 item that she doesn't need.
4. GENERAL EQUATIONS & STATISTICS
A woman worries about the future until she gets a husband.
A man never worries about the future until he gets a wife.
A successful man is one who makes more money than his wife can spend.
A successful woman is one who can find such a man.
5. HAPPINESS
To be happy with a man, you must understand him a lot and love him a little.
To be happy with a woman, you must love her a lot and not try to understand her at all.
6. LONGEVITY
Married men live longer than single men do, but married men are a lot more willing to die.
7. PROPENSITY TO CHANGE
A woman marries a man expecting he will change, but he doesn't.
A man marries a woman expecting that she won't change, and she does.
8. DISCUSSION TECHNIQUE
A woman has the last word in any argument.
Anything a man says after that is the beginning of a new argument.

Girls = Time * Money (Girls are a combination of time and money)
Time = Money (Time is money)
Girls = Money squared (So, girls are money squared)
Money = sqrt(Evil) (Money is also the root of all evil)
Girls = sqrt(Evil) squared (So, girls are the root of all evil squared)
Girls = Evil (Thus, girls are evil)
*Girls=Evil credit goes to Compynerd255*

Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: Vertical Text Sprites
« Reply #37 on: May 09, 2012, 08:12:01 pm »
I think storing all the rows in a string will take more RAM out, whereas my method you don't even use the string at all. Also speed-wise, it will be faster.

That is correct, because if you store them in a string, and use the string to display them, that means your string is first being stored in your program, and it is also being stored in the string variable!  That means you would be using double the amount of memory by using strings, although that isn't 100% accurate because it also adds a bit of memory when you repeat the Text() commands

Offline blue_bear_94

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 801
  • Rating: +25/-35
  • Touhou Enthusiast / Former Troll / 68k Programmer
    • View Profile
Re: Vertical Text Sprites
« Reply #38 on: May 09, 2012, 08:12:40 pm »
Let's see.

57 lines...
One picture takes 767 bytes+5 per call
Big string=1+57(3)+sigma(An,n,6,62) (typical 40, say?)+1+1 (for) + 1 (i) + 1 +1+1 +1 +1 + 80? +1=2541
Hard coded=57(1+1+1+1+1+1+40)+5+57=2684
Tip: Using a picture variable saves memory.
Due to dissatisfaction, I will be inactive on Omnimaga until further notice. (?? THP hasn't been much success and there's also the CE. I might possibly be here for a while.)
If you want to implore me to come back, or otherwise contact me, I can be found on GitHub (bluebear94), Twitter (@melranosF_), Reddit (/u/Fluffy8x), or e-mail (if you know my address). As a last resort, send me a PM on Cemetech (bluebear94) or join Touhou Prono (don't be fooled by the name). I've also enabled notifications for PMs on Omnimaga, but I don't advise using that since I might be banned.
Elvyna (Sunrise) 4 5%
TI-84+SE User (2.30 2.55 MP 2.43)
TI-89 Titanium User (3.10)
Casio Prizm User? (1.02)
Bag  東方ぷろの

Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: Vertical Text Sprites
« Reply #39 on: May 09, 2012, 08:15:24 pm »
Well I don't think anybody is saying that these methods will take less memory than a picture variable :P And I believe the reason that these methods are used is to that all of your data resides within the program, and you don't have multiple files needed to run your game.  This becomes even more important because there are only 10 picture variables, and if you have two games that each use the same variable, you're going to have a bad time D:

Offline Yeong

  • Not a bridge
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3739
  • Rating: +278/-12
  • Survivor of Apocalypse
    • View Profile
Re: Vertical Text Sprites
« Reply #40 on: May 09, 2012, 08:18:14 pm »
Also, if your data go aver a 1 picture variable just a bit, you'll end up using 2 picture vars with one of them having a lot of useless space. D:
Sig wipe!

Offline blue_bear_94

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 801
  • Rating: +25/-35
  • Touhou Enthusiast / Former Troll / 68k Programmer
    • View Profile
Re: Vertical Text Sprites
« Reply #41 on: May 09, 2012, 08:22:07 pm »
And also, you don't have to store the big string into a variable. You can store it in Ans. And, if much of the RAM is used on a game, the picture variable is preferable.
Due to dissatisfaction, I will be inactive on Omnimaga until further notice. (?? THP hasn't been much success and there's also the CE. I might possibly be here for a while.)
If you want to implore me to come back, or otherwise contact me, I can be found on GitHub (bluebear94), Twitter (@melranosF_), Reddit (/u/Fluffy8x), or e-mail (if you know my address). As a last resort, send me a PM on Cemetech (bluebear94) or join Touhou Prono (don't be fooled by the name). I've also enabled notifications for PMs on Omnimaga, but I don't advise using that since I might be banned.
Elvyna (Sunrise) 4 5%
TI-84+SE User (2.30 2.55 MP 2.43)
TI-89 Titanium User (3.10)
Casio Prizm User? (1.02)
Bag  東方ぷろの

Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: Vertical Text Sprites
« Reply #42 on: May 09, 2012, 08:24:53 pm »
And, if much of the RAM is used on a game, the picture variable is preferable.

Preferable by some that is.  I myself find it difficult to play *any* games that use picture variables, simply because I already have a bunch of picture variables archived on my calc that are used as sprite sheets for many of my Axe games. 

Offline Yeong

  • Not a bridge
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3739
  • Rating: +278/-12
  • Survivor of Apocalypse
    • View Profile
Re: Vertical Text Sprites
« Reply #43 on: May 09, 2012, 08:26:15 pm »
And, if much of the RAM is used on a game, the picture variable is preferable.

Preferable by some that is.  I myself find it difficult to play *any* games that use picture variables, simply because I already have a bunch of picture variables archived on my calc that are used as sprite sheets for many of my Axe games. 
^

I just wish that TI-BASIC lets me use appvar.
Sig wipe!

Offline jsj795

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1105
  • Rating: +84/-3
    • View Profile
Re: Vertical Text Sprites
« Reply #44 on: May 09, 2012, 08:26:24 pm »
Also I was planning to use this method to make up a picture of different combinations of sprites, which is kinda impossible to do with the picture variables (there are probably over 150~200 different combinations, but it'll be less than 5000 bytes with vertical sprites since I'm just drawing same things over and over again).
Idk if I explained it right, but yeah it's going to be used in my equipment display routine.

Also:
Big string=1+57(3)+sigma(An,n,6,62) (typical 40, say?)+1+1 (for) + 1 (i) + 1 +1+1 +1 +1 + 80? +1=2541
You have to add in another string in there because there's the hardcoded string part (the string you actually write 'into' a program) plus the string you store into a string variable

Edit: I guess if you use Ans you don't have to add that in

Edit 2: But if you hardcode it the string is not even saved in Ans so in the end, hardcoding it will take less RAM when it is executed
« Last Edit: May 09, 2012, 08:28:41 pm by jsj795 »


Spoiler For funny life mathematics:
1. ROMANCE MATHEMATICS
Smart man + smart woman = romance
Smart man + dumb woman = affair
Dumb man + smart woman = marriage
Dumb man + dumb woman = pregnancy
2. OFFICE ARITHMETIC
Smart boss + smart employee = profit
Smart boss + dumb employee = production
Dumb boss + smart employee = promotion
Dumb boss + dumb employee = overtime
3. SHOPPING MATH
A man will pay $2 for a $1 item he needs.
A woman will pay $1 for a $2 item that she doesn't need.
4. GENERAL EQUATIONS & STATISTICS
A woman worries about the future until she gets a husband.
A man never worries about the future until he gets a wife.
A successful man is one who makes more money than his wife can spend.
A successful woman is one who can find such a man.
5. HAPPINESS
To be happy with a man, you must understand him a lot and love him a little.
To be happy with a woman, you must love her a lot and not try to understand her at all.
6. LONGEVITY
Married men live longer than single men do, but married men are a lot more willing to die.
7. PROPENSITY TO CHANGE
A woman marries a man expecting he will change, but he doesn't.
A man marries a woman expecting that she won't change, and she does.
8. DISCUSSION TECHNIQUE
A woman has the last word in any argument.
Anything a man says after that is the beginning of a new argument.

Girls = Time * Money (Girls are a combination of time and money)
Time = Money (Time is money)
Girls = Money squared (So, girls are money squared)
Money = sqrt(Evil) (Money is also the root of all evil)
Girls = sqrt(Evil) squared (So, girls are the root of all evil squared)
Girls = Evil (Thus, girls are evil)
*Girls=Evil credit goes to Compynerd255*