Author Topic: Five Level Grayscale BASIC  (Read 7956 times)

0 Members and 1 Guest are viewing this topic.

Offline Tribal

  • The Fallen
  • LV5 Advanced (Next: 300)
  • *
  • Posts: 218
  • Rating: +15/-1
    • View Profile
Five Level Grayscale BASIC
« on: September 26, 2008, 11:50:13 am »
I downloaded this awhile back and thought it was rather nice, if only you could retain high-level grayscale with animated sprites.

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
Five Level Grayscale BASIC
« Reply #1 on: September 26, 2008, 06:01:44 pm »
Yeah I didn't even remembered we had this. There'S also a version by CDI/Zeromus for 3 and 4 lv. BOth use different approach than our new GS kit in the works though. Kalan's technique for 5 lv grayscale is to draw a checkered pattern similar to 3 lv grayscale, erase it, then draw the second checkered pattern frame, then erase it, and so on. FOr light gray it's turned white when erased and for dark gray it's turned black. For middle gray it just keeps moving every frame like my old 3 lv grayscale technique. Easier to draw sprites/tiles for such method, but the grayscale quality is questionable (middle gray looks great, though). CDI technique uses a modified technique since it's 4 level, but the quality isn't too good either and it appears to be for an older version of xLIB.

Offline skuller972

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 335
  • Rating: +11/-4
  • BEAST MODE
    • View Profile
Re: Five Level Grayscale BASIC
« Reply #2 on: March 15, 2009, 05:02:10 pm »
i've used a five level grayscale before in a target game

the more towards the center the darker that every other ringwas. the others were white and the crosshair was black
it used a repeat:recallpic1:recallpic2:recallpic3:recallpic4:recallpic5:recallpic6:clrdraw:end kind of thing
Then again, maybe not...
<a href="http://www.nerdtests.com/ft_nt2.php">
<img src="http://www.nerdtests.com/images/badge/nt2/bc7bf8e12353f09e.png" alt="NerdTests.com says I'm a Cool Non-Nerd.  Click here to take the Nerd Test, get nerdy images and jokes, and talk to others on the nerd forum!">
</a>

Offline nitacku

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 300
  • Rating: +30/-1
  • ni-ta-ku ^_^
    • View Profile
Re: Five Level Grayscale BASIC
« Reply #3 on: March 15, 2009, 06:22:53 pm »
The method I use in the Grayscale Package uses Celtic/xLIB to create non-destructive xor logic sequences so that the grayscale can be rendered without destroying the static sprites. This makes it possible to use it in situations where the display may change, such as an rpg or tile-based map.

Offline skuller972

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 335
  • Rating: +11/-4
  • BEAST MODE
    • View Profile
Re: Five Level Grayscale BASIC
« Reply #4 on: March 16, 2009, 07:03:13 pm »
im not really a xlib or celtic fan (probably because i have no idea how it works) so i dont know what you're talking about but the only grayscale i have ever been able to make was a recallpic...clrdraw loop kind
Then again, maybe not...
<a href="http://www.nerdtests.com/ft_nt2.php">
<img src="http://www.nerdtests.com/images/badge/nt2/bc7bf8e12353f09e.png" alt="NerdTests.com says I'm a Cool Non-Nerd.  Click here to take the Nerd Test, get nerdy images and jokes, and talk to others on the nerd forum!">
</a>

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: Five Level Grayscale BASIC
« Reply #5 on: March 16, 2009, 07:20:11 pm »
Well that method was used in some games before but it flickers extremly badly. With xlib Recallpic function you can overwrite the entire screen with a pic so you doN't need to clear it before recalling a pic, meaning flickerless animations and/or grayscale that is close to flickerless. But I only recommend xLIB and Celtic for those who mastered TI-BASIC because even myself after 4 years of BASIC programming ended up checking the xLIB readme everytime using a function

Offline skuller972

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 335
  • Rating: +11/-4
  • BEAST MODE
    • View Profile
Re: Five Level Grayscale BASIC
« Reply #6 on: March 16, 2009, 07:26:18 pm »
yeah i know the flickers suck
but ive been programming for like almost 10 months so, uhh, yeah, not for me man
Then again, maybe not...
<a href="http://www.nerdtests.com/ft_nt2.php">
<img src="http://www.nerdtests.com/images/badge/nt2/bc7bf8e12353f09e.png" alt="NerdTests.com says I'm a Cool Non-Nerd.  Click here to take the Nerd Test, get nerdy images and jokes, and talk to others on the nerd forum!">
</a>

Offline noahbaby94

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 585
  • Rating: +29/-24
    • View Profile
    • My blog
Re: Five Level Grayscale BASIC
« Reply #7 on: March 16, 2009, 07:30:09 pm »
That's about when I starting using it and it's pretty amazing it takes a while to get used to but it rocks.
Edit:Wewt 200 posts!!
That's what she said!!!

Offline skuller972

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 335
  • Rating: +11/-4
  • BEAST MODE
    • View Profile
Re: Five Level Grayscale BASIC
« Reply #8 on: March 16, 2009, 07:33:42 pm »
ok nevermind
time to start searching how to use xlib
*sighs*
Then again, maybe not...
<a href="http://www.nerdtests.com/ft_nt2.php">
<img src="http://www.nerdtests.com/images/badge/nt2/bc7bf8e12353f09e.png" alt="NerdTests.com says I'm a Cool Non-Nerd.  Click here to take the Nerd Test, get nerdy images and jokes, and talk to others on the nerd forum!">
</a>

Offline noahbaby94

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 585
  • Rating: +29/-24
    • View Profile
    • My blog
Re: Five Level Grayscale BASIC
« Reply #9 on: March 16, 2009, 07:35:27 pm »
The readme is a great place to start an there is a small tut on it.
http://tibasicdev.wikidot.com/xlib-tutorial
That's what she said!!!

Offline skuller972

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 335
  • Rating: +11/-4
  • BEAST MODE
    • View Profile
Re: Five Level Grayscale BASIC
« Reply #10 on: March 16, 2009, 07:37:38 pm »
sweet thanks
Then again, maybe not...
<a href="http://www.nerdtests.com/ft_nt2.php">
<img src="http://www.nerdtests.com/images/badge/nt2/bc7bf8e12353f09e.png" alt="NerdTests.com says I'm a Cool Non-Nerd.  Click here to take the Nerd Test, get nerdy images and jokes, and talk to others on the nerd forum!">
</a>

Offline kalan_vod

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2715
  • Rating: +10/-0
    • View Profile
    • kalanrock.us
Re: Five Level Grayscale BASIC
« Reply #11 on: March 16, 2009, 09:30:38 pm »
Keep in mind Celtic has most xLIB compatibility and more functions, just ask if you have any issues.

Offline skuller972

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 335
  • Rating: +11/-4
  • BEAST MODE
    • View Profile
Re: Five Level Grayscale BASIC
« Reply #12 on: March 17, 2009, 08:25:49 pm »
so which one is better and/or easier
Then again, maybe not...
<a href="http://www.nerdtests.com/ft_nt2.php">
<img src="http://www.nerdtests.com/images/badge/nt2/bc7bf8e12353f09e.png" alt="NerdTests.com says I'm a Cool Non-Nerd.  Click here to take the Nerd Test, get nerdy images and jokes, and talk to others on the nerd forum!">
</a>

Offline noahbaby94

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 585
  • Rating: +29/-24
    • View Profile
    • My blog
Re: Five Level Grayscale BASIC
« Reply #13 on: March 17, 2009, 09:00:09 pm »
CelticIII is much better not quite as easy but it has sooo much stuff to work with.
That's what she said!!!

Offline simplethinker

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 695
  • Rating: +16/-5
  • snjwffl
    • View Profile
Re: Five Level Grayscale BASIC
« Reply #14 on: March 17, 2009, 09:10:17 pm »
so which one is better and/or easier

Considering Celtic III has identical commands to xLIB, plus all of it's other routines (once Iambian fixes a bug (or two?)), and since those other routine's don't make it worse, that means Celtic III >= xLIB.  Actually, (I think it was on IRC) Iambian said some of his xLIB-compatibility commands are faster than xLIB's.
"We've all heard that a million monkeys banging on a million typewriters will eventually reproduce the entire works of Shakespeare. Now, thanks to the Internet, we know this is not true." -- Professor Robert Silensky



Chip's Challenge: ħ%