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

0 Members and 1 Guest 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 #75 on: November 18, 2010, 11:38:18 pm »
er, shouldnt they use the same argument? In xLIB, OR/XOR/AND/Overwrite all use the same argument.

Yes that's correct, but it doesn't have to be that way.  The person who did xlib just chose to do it that way.  I'm working with compatability for previous Ti-Basic programs

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 #76 on: November 18, 2010, 11:43:30 pm »
Ah ok. What would be the advantage of separating them? I am curious about what special tricks we could do. Also is it easier to keep them separated?

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 #77 on: November 19, 2010, 06:08:52 am »
Ah ok. What would be the advantage of separating them? I am curious about what special tricks we could do. Also is it easier to keep them separated?

To answer your question, if they are kept seperated, a person can take a Ti-Basic program, and he can easily convert it to Correlation simply by replacing Output( with ln( and Text( with e^(.  He does not need to scroll to the end of each line to add a parameter.  (This really frustrated me in Ti-Basic programming)  Furthermore, it saves two bytes per line, and I figured most of the time people are going to use overwrite except for sprites.
 
It's just as easy to keep the argument count seperate as it is to incorporate them all together.  It's just like Ti-Basic Line(, where a zero is added only draw a white line.

As a side note, if XOR/OR/AND is successful, I'll add Mask as well.  A character to be drawn as a Masked character will require 2 characters worth of data in the font, but it will be faster than using XOR/OR/AND to manually draw the mask.

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 #78 on: November 19, 2010, 09:42:06 am »
Ah ok so you wanted default method to not require arguments? What about the other? Will it default to OR? I still don't get why you keep them separate. ???

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 #79 on: November 19, 2010, 09:49:48 am »
Ah ok so you wanted default method to not require arguments? What about the other? Will it default to OR? I still don't get why you keep them separate. ???

ln(1,1,"AAAA") will display "homescreen" text AAAA using Overwrite.  e^(1,1,"AAAA") will display small text using Overwrite.

ln(1,1,"AAAA", 1-4) will display "homescreen" text using OR, AND, XOR, Mask.  e^(1,1,"AAAA", 1-4) will display small text using OR, AND, XOR, Mask.

I'm afraid I can't explain any better why I keep them seperate.  Just remember, Line(1,1,2,2) displays a black line, but if you add an extra argument--Line(1,1,2,2,0)--you get a white line.

Offline adamac16

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 141
  • Rating: +2/-0
    • View Profile
Re: Correlation: A New Project Aimed at Ti-Basic Programmers
« Reply #80 on: November 19, 2010, 02:13:55 pm »
I would like to know more about this. I seen the first post and im interested.

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 #81 on: November 19, 2010, 06:06:30 pm »
Ah ok so basically it's just that if no argument is specified, it uses Overwrite? I was confused since with Line if you add a 5th argument that is a 1 it's the alternate way to display a black line (probably for those who don't use a constant for it and want to create a flashing effect)

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 #82 on: November 19, 2010, 06:25:02 pm »
Ah ok so basically it's just that if no argument is specified, it uses Overwrite? I was confused since with Line if you add a 5th argument that is a 1 it's the alternate way to display a black line (probably for those who don't use a constant for it and want to create a flashing effect)

That's right.  No argument specified means it's overwrite.

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: Correlation: A New Project Aimed at Ti-Basic Programmers
« Reply #83 on: November 19, 2010, 07:08:03 pm »
Will the homescreen text be confined to the 16x8 grid, or will the location be like with Text(?
« Last Edit: November 19, 2010, 07:08:13 pm by Deep Thought »




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 #84 on: November 19, 2010, 08:55:15 pm »
Will the homescreen text be confined to the 16x8 grid, or will the location be like with Text(?

Same as with Ti-Basic.  ln() will use 16x8 grid, and e^() will use the 96 x 64 grid

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 #85 on: December 09, 2010, 01:21:00 pm »
After two weeks of head throbbing from having to do only what the OS let me do, I'm getting close to a screenshot release.  I just have some bugs to fix in the ln( routine, but the parser is working so far.

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 #86 on: December 09, 2010, 06:27:16 pm »
Cool! And sorry to hear the (annoying) TI-OS gives you so much troubles. I hope it isn't gonna be too bad on 2.53 MP...

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 #87 on: December 10, 2010, 02:04:53 pm »
Here's a new screenshot: A first look at Output using ln(

Note that the run indicator won't be there in the future, but I had to pause the program to test it.

The program is only 10% done, but this is definitely the end of the step 2.

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: Correlation: A New Project Aimed at Ti-Basic Programmers
« Reply #88 on: December 10, 2010, 02:09:53 pm »
Wow!  thats looks great!  are there any known bugs?

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 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 #89 on: December 10, 2010, 04:33:32 pm »
Wow!  thats looks great!  are there any known bugs?

There are so many bugs that if they were all fixed, the program would be 20% done.  Basically, I can't list them all. 

However, I will say that there's a "Syntax Error" from the parser after the ln( statement is done executing.  Something I can fix, but need to do.  Also, the routine doesn't yet clip sprites, and ln( doesn't correctly display in a 16 x 8 grid yet.