0 Members and 4 Guests are viewing this topic.
storing 40 cards wouldn't be too difficult. for each card you need:-String name-attack-defense-# of stars-type. [trap card, monster card, etc]attack and defense need about 2 digits of information each, # of stars can be modified for one, otherwise two. type can be one digit. that's 7 digits of information to be compressed into a list entry, and then the String name can probably be compressed into under 28 digits, which will fit into 2 list entries. then you'll just need a 300 element list for 100 card data, and at the beginning of the program decompress everything but the string names, which you can decompress on the fly. at least, that's my idea. would be infinitely more efficient in axe though. good luck with it!
Quote from: nemo on November 03, 2010, 04:15:32 pmstoring 40 cards wouldn't be too difficult. for each card you need:-String name-attack-defense-# of stars-type. [trap card, monster card, etc]attack and defense need about 2 digits of information each, # of stars can be modified for one, otherwise two. type can be one digit. that's 7 digits of information to be compressed into a list entry, and then the String name can probably be compressed into under 28 digits, which will fit into 2 list entries. then you'll just need a 300 element list for 100 card data, and at the beginning of the program decompress everything but the string names, which you can decompress on the fly. at least, that's my idea. would be infinitely more efficient in axe though. good luck with it!But you need a whole scripted special effect for every card except normal monster cards...
It's not animation or graphics that I'm worried about. It's the fact that every card has a different effect that will need its own code.
Quote from: nemo on November 03, 2010, 04:15:32 pmstoring 40 cards wouldn't be too difficult. for each card you need:-String name-attack-defense-# of stars-type. [trap card, monster card, etc]attack and defense need about 2 digits of information each, # of stars can be modified for one, otherwise two. type can be one digit. that's 7 digits of information to be compressed into a list entry, and then the String name can probably be compressed into under 28 digits, which will fit into 2 list entries. then you'll just need a 300 element list for 100 card data, and at the beginning of the program decompress everything but the string names, which you can decompress on the fly. at least, that's my idea. would be infinitely more efficient in axe though. good luck with it!If he wanted to include pictures, he could also have a separate string with all of the pictures using RLE for the pic as well as a default card outline.
I meant predominate as in most BASIC games are ASCII
Quote from: ASHBAD_ALVIN on November 03, 2010, 04:17:23 pmI meant predominate as in most BASIC games are ASCII ASCII and text-based are not the same thing. ASCII counts as graphics. Yes, a lot a BASIC games are ascii.ASCII is one of the only options for graphics in pure BASIC. (in fact, if you want any sort of speed at all, you have to use letters and numbers and stuff).