Omnimaga

Calculator Community => Other Calculators => Topic started by: Tribal on September 26, 2008, 11:50:13 am

Title: Five Level Grayscale BASIC
Post by: Tribal 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.
Title: Five Level Grayscale BASIC
Post by: DJ Omnimaga 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.
Title: Re: Five Level Grayscale BASIC
Post by: skuller972 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
Title: Re: Five Level Grayscale BASIC
Post by: nitacku 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.
Title: Re: Five Level Grayscale BASIC
Post by: skuller972 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
Title: Re: Five Level Grayscale BASIC
Post by: DJ Omnimaga 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
Title: Re: Five Level Grayscale BASIC
Post by: skuller972 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
Title: Re: Five Level Grayscale BASIC
Post by: noahbaby94 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!!
Title: Re: Five Level Grayscale BASIC
Post by: skuller972 on March 16, 2009, 07:33:42 pm
ok nevermind
time to start searching how to use xlib
*sighs*
Title: Re: Five Level Grayscale BASIC
Post by: noahbaby94 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
Title: Re: Five Level Grayscale BASIC
Post by: skuller972 on March 16, 2009, 07:37:38 pm
sweet thanks
Title: Re: Five Level Grayscale BASIC
Post by: kalan_vod 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.
Title: Re: Five Level Grayscale BASIC
Post by: skuller972 on March 17, 2009, 08:25:49 pm
so which one is better and/or easier
Title: Re: Five Level Grayscale BASIC
Post by: noahbaby94 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.
Title: Re: Five Level Grayscale BASIC
Post by: simplethinker 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.
Title: Re: Five Level Grayscale BASIC
Post by: DJ Omnimaga on March 18, 2009, 02:20:33 am
keep in mind that no matter which one you use, please backup often, on the PC or group files, in case you do something wrong and accidentally crash the calc while testing your game (and RAM clear)
Title: Re: Five Level Grayscale BASIC
Post by: skuller972 on March 18, 2009, 07:04:56 pm
ok sweet i will first become aquainted to xlib then celtic
Title: Re: Five Level Grayscale BASIC
Post by: kalan_vod on March 20, 2009, 01:09:54 pm
Most commands are, due to optimizations. Pattrick made it back in 2005 :P, at which he only had Desolate under his belt (which was big, but he is remaking it totally in 8lvl GS and it will be smaller on calc!)..Celtic atm with the bugs kills me, since all my games/programs use decimals ;) (guess I can just Int([A] and run the command as Ans/whatever..)
Title: Re: Five Level Grayscale BASIC
Post by: simplethinker on March 20, 2009, 01:43:16 pm
since all my games/programs use decimals ;) (guess I can just Int([A] and run the command as Ans/whatever..)
So I'm not alone!  I submitted a bug report to Iambian, and he said the next release of Celtic III should have that problem fixed.

How many different decimal values do you use?  I've been thinking (for Chip's Challenge) that for the string tilemapper to sort of code them into the hex value.  For example, in CC there are 10 tiles that are walkable that either do nothing or have miscellaneous effects (like switches or the guy that takes your items) and 3 tiles that are walkable but change the tile to a blank space (like dirt) (items fall into another category although they would fit here).  I could make it so that the high-order nibble of the hex location being "0" indicates it's one of these 13 tiles, and if the low-order nibble is >=A then change the ground.  I still don't have all this mapped out, but so far it seems like a pretty good substitute for decimals.
Title: Re: Five Level Grayscale BASIC
Post by: kalan_vod on March 20, 2009, 10:13:08 pm
Well I use a new decimal for every action, and if I want it to do different things I can add more decimals to the end of it.