Author Topic: Correlation: A New Project Aimed at Ti-Basic Programmers  (Read 68889 times)

0 Members and 2 Guests are viewing this topic.

Offline Hot_Dog

  • Project Author
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3006
  • Rating: +445/-10
    • View Profile
Re: Correlation: A New Project Aimed at Ti-Basic Programmers
« Reply #105 on: December 15, 2010, 09:17:28 am »
Ah ok, that's what I thought you meant :) However didn't you say that word wrapping on the homescreen would be the same as with Output(?

I did indeed.  I think I'll provide a way for people to turn word-wrapping off if they want to, though.

Offline meishe91

  • Super Ninja
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2946
  • Rating: +115/-11
    • View Profile
    • DeviantArt
Re: Correlation: A New Project Aimed at Ti-Basic Programmers
« Reply #106 on: December 22, 2010, 09:07:46 pm »
Well how would word wrapping work with you starting a string off screen? Would it wrap and then continue off down at row eight column seventeen? Or would it like be off by default if you start off screen?
Spoiler For Spoiler:



For the 51st time, that is not my card! (Magic Joke)

Offline Hot_Dog

  • Project Author
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3006
  • Rating: +445/-10
    • View Profile
Re: Correlation: A New Project Aimed at Ti-Basic Programmers
« Reply #107 on: December 22, 2010, 09:22:52 pm »
Well how would word wrapping work with you starting a string off screen? Would it wrap and then continue off down at row eight column seventeen? Or would it like be off by default if you start off screen?

Word wrapping will work just fine if only the X coordinate is negative.  For a negative Y coordinate, the text will wrap AS IF there was more text to display, and continue normally when the first displayable row is reached.

« Last Edit: December 22, 2010, 09:39:40 pm by Hot_Dog »

Offline meishe91

  • Super Ninja
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2946
  • Rating: +115/-11
    • View Profile
    • DeviantArt
Re: Correlation: A New Project Aimed at Ti-Basic Programmers
« Reply #108 on: December 22, 2010, 10:07:48 pm »
So if you offset the x-coordinate it will wrap like normal and treat it all the same and such but if you offset the y-coordinate it will essentially wrap the entire string over and over again, even if not seen?
Spoiler For Spoiler:



For the 51st time, that is not my card! (Magic Joke)

Offline Hot_Dog

  • Project Author
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3006
  • Rating: +445/-10
    • View Profile
Re: Correlation: A New Project Aimed at Ti-Basic Programmers
« Reply #109 on: December 22, 2010, 10:25:42 pm »
So if you offset the x-coordinate it will wrap like normal and treat it all the same and such but if you offset the y-coordinate it will essentially wrap the entire string over and over again, even if not seen?

Exactly.  That way you can do something like a bottom-to-top scrolling driving game if you want to

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Correlation: A New Project Aimed at Ti-Basic Programmers
« Reply #110 on: December 23, 2010, 12:38:03 am »
I am a bit confused now. With the other topic I saw, would we be able, for example, to wrap the text every 30 character and have scrolling tilemaps in all 4 directions? Or would the maximum be 16 characters per line?

Offline Hot_Dog

  • Project Author
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3006
  • Rating: +445/-10
    • View Profile
Re: Correlation: A New Project Aimed at Ti-Basic Programmers
« Reply #111 on: December 23, 2010, 12:45:40 am »
I am a bit confused now. With the other topic I saw, would we be able, for example, to wrap the text every 30 character and have scrolling tilemaps in all 4 directions? Or would the maximum be 16 characters per line?

There are different modes.  You can do the 30 character thing, but you also have the default wrapping, with 16 characters max.  This is for people who want their text to wrap like normal.

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Correlation: A New Project Aimed at Ti-Basic Programmers
« Reply #112 on: December 23, 2010, 01:29:44 am »
Ah ok, thanks for the info :)

Offline Hot_Dog

  • Project Author
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3006
  • Rating: +445/-10
    • View Profile
Re: Correlation: A New Project Aimed at Ti-Basic Programmers
« Reply #113 on: December 27, 2010, 08:52:36 pm »
I've had a lot of people ask about the speed of Correlation.  Be aware that since this is a beta, the speed might be different in the final version.

Here's a program I wrote:

For(A,1,100)
Output(1,1,"AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
End

Then I timed it.  Afterwards, I added "real(TESTFONT" and changed Output( to ln(, making it a Correlation program.  I timed it again.

Normal Ti-Basic Version: 15 seconds
Correlation Version: 9 seconds
« Last Edit: December 27, 2010, 08:53:01 pm by Hot_Dog »

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Correlation: A New Project Aimed at Ti-Basic Programmers
« Reply #114 on: December 28, 2010, 01:02:02 am »
Nice, this means 10 times a second. You put the real(TESTFONT outside the For loop, though, I hope, right? :P

Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: Correlation: A New Project Aimed at Ti-Basic Programmers
« Reply #115 on: December 28, 2010, 01:27:06 am »
Wow thats awesome :D Even if it was the same speed it would still be epic, but now its even cooler :O

Offline Ranman

  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1354
  • Rating: +83/-0
    • View Profile
Re: Correlation: A New Project Aimed at Ti-Basic Programmers
« Reply #116 on: December 28, 2010, 01:39:38 am »
This is a cool project! Nice work.
Ranman
Bringing Randy Glover's Jumpman to the TI-89 calculator. Download available at Ticalc.

Offline Hot_Dog

  • Project Author
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3006
  • Rating: +445/-10
    • View Profile
Re: Correlation: A New Project Aimed at Ti-Basic Programmers
« Reply #117 on: December 28, 2010, 12:37:13 pm »
Nice, this means 10 times a second. You put the real(TESTFONT outside the For loop, though, I hope, right? :P

Yes, I did! :)

Wow thats awesome :D Even if it was the same speed it would still be epic, but now its even cooler :O

Yeah, I'm quite pleased--and surprised--with the results myself!  I am upset about the other slow commands in Ti-Basic, though...I had an unrealistic dream, though a dream nonetheless, that people could create smooth-scrolling 10 FPS Mario with this.  Doesn't look like it's going to happen ;D

Since it won't be hard to add, I'm adding another "advanced users" feature.  You can turn animated tiles on and off!  However, to make the speed of this as fast as possible, this works only with even-numbered tokens starting with Radian, such as Radian, Normal and Eng.  If you have font characters for both Radian and Degree, the two will switch back and forth between each other when animated tiles are turned on.

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Correlation: A New Project Aimed at Ti-Basic Programmers
« Reply #118 on: December 28, 2010, 08:19:44 pm »
I think tile scrolling will be just fine. One great thing about this really is how you can display tilemaps with tiles of any size. Also animated tiles seems cool. I assume this just swaps between two font files, right? Personally, though, to have animated tiles I generally just set 0 to a variable then do Not(VAR->VAR then use the tile set corresponding to VAR.

Offline Hot_Dog

  • Project Author
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3006
  • Rating: +445/-10
    • View Profile
Re: Correlation: A New Project Aimed at Ti-Basic Programmers
« Reply #119 on: December 29, 2010, 12:38:49 am »
Also animated tiles seems cool. I assume this just swaps between two font files, right? Personally, though, to have animated tiles I generally just set 0 to a variable then do Not(VAR->VAR then use the tile set corresponding to VAR.

Actually, that's a great idea, so that's how I'm going to do it now.  I was going to do it differently, but your idea is much better and more flexible. 

I doubt people will have animated tiles with 8 frames, but that will be the limit.