Omnimaga

Calculator Community => Other Calc-Related Projects and Ideas => TI Z80 => Topic started by: TIfanx1999 on January 05, 2008, 08:08:00 pm

Title: MTG-like card game
Post by: TIfanx1999 on January 05, 2008, 08:08:00 pm
This is something ive been toying around with this weekend. Hopefully I will have some screenies of it up in about a week or so. It's done in BASIC + Xlib. I started off played magic the gathering for a while, (98-99) and I've been an Yu-gi-oh player on and off since 99.Ive recently been playing the old pokemon trading card game on a gbc emulator, and this is what really gave me the idea to try this. Hopefully you guys will like it . ^_^

*Edit*
Game Description:
If you have ever played Magic the gathering or any other similar trading card game (VS system, Yu-gi-oh, ect) this game should feel familar to you. My goal is to create a game that is similar in style to Magic the Gathering but in a more simplifed way that is catered to fit the calculator format ( IE, a limit to how many monsters are on the field, a deck size limit, and other similar limitations) . There will be monsters and spell cards alike with different elemental attributes, with each element having it's own unique attributes just as in Magic the Gathering (IE- white element has healing, black has death, fire has direct damage ect.) The goal is to reduce your opponents life points to zero before they can reduce yours to zero via attacking with your monsters or by damaging them with spell cards.
Title: MTG-like card game
Post by: Radical Pi on January 05, 2008, 08:51:00 pm
I've never played MTG, but I played Pokemon TCG and YGO each for the ~single month that it was popular around here.
Good luck on this project!
Title: MTG-like card game
Post by: DJ Omnimaga on January 06, 2008, 05:15:00 am
nice, I hope you can pack as much cards as u can in it :)
Title: MTG-like card game
Post by: rivereye on January 06, 2008, 01:01:00 pm
I think there are going to be too many things to keep track of to make it like the full MTG, but I can't wait to see.
Title: MTG-like card game
Post by: TIfanx1999 on January 06, 2008, 01:14:00 pm
I realize that i will probably have to make some sacrifices, (hahaha) but I hope that I can allow it to keep the same feel . The biggest problems that I can see are;
A. File system for storing card info
B. Implementation of a 2 player link mode.
I don't know if the latter is even possible without the aid of asm, but we'll see.
Title: MTG-like card game
Post by: Radical Pi on January 06, 2008, 02:27:00 pm
Two player mode would make this game infinitely better. If there's any way for you to do it, DO IT!
Title: MTG-like card game
Post by: kucalc on January 06, 2008, 05:29:00 pm
Hey, are you talking about Magic: The Gathering? MTG is best trading card game I have ever played. Those Planeswalker cards that they have released however in the new sets are way too powerful in my opinion.

Good luck on your project though. :D
Title: MTG-like card game
Post by: TIfanx1999 on January 06, 2008, 05:47:00 pm
I didn't even realize I had abbreviated the name, I did it without even thinking. Yes, Magic The Gathering is what I was reffering to. I havent played at all recently though, the last set I can remember looking at was champions of kamigawa? and whatever edition was out then (7th maybe?) My goal is to keep it fairly similar to MTG in structure and game mechanics, but the cards will be (somewhat) original, and it will be stripped down in order to suit the calculator format.
Title: MTG-like card game
Post by: JonimusPrime on January 07, 2008, 12:04:00 am
Maybe you should check out wizards it was an asm game nominated for a POTY a while ago and is alot like what you are trying to do. If yours is better than that one you'll be in business.
Title: MTG-like card game
Post by: TIfanx1999 on January 07, 2008, 12:15:00 am
Oh yes, I am very much aware of wizards, and quite a fan of it myself. Im hoping this will compete with it. ;)
Title: MTG-like card game
Post by: trevmeister66 on January 07, 2008, 01:08:00 am
Woot MTG ftw. I love MTG, although i haven't played in quite a while. I still have all my cards from the early 2000's. I am really looking forward to this, and would gladly help in any way possible.
Title: MTG-like card game
Post by: TIfanx1999 on January 07, 2008, 01:18:00 am
Well, any suggestions are welcome . ^_^ If you want to help with coding, game design, or graphics that would be cool too.
Title: MTG-like card game
Post by: Liazon on January 07, 2008, 10:15:00 pm
even if you can only fit a core set in (10th edition), it'd still be pretty good.
Title: MTG-like card game
Post by: trevmeister66 on January 07, 2008, 10:57:00 pm
Hmm the only problem i see with this is all the possible abilites that monsters have.. It would be very time consuming and memory hogging to allow for all the abilities. I think you should just not have the abilities, and stick with att/def(or hp, whatever it is).
Title: MTG-like card game
Post by: Radical Pi on January 08, 2008, 06:59:00 am
Card games can't get too advanced if you don't have abilities. Special powers are what makes games strategic.
If you can't use abilities due to memory constraints, at least think of a decent replacement; something that makes the game take brainpower and gives you bragging rights if you win on Hard mode or something.
Title: MTG-like card game
Post by: TIfanx1999 on January 08, 2008, 03:28:00 pm
I definitly want to include abilities, otherwise I think it would be boring. I really dont think it'll be to big of a deal to implement though anyways. :)
Title: MTG-like card game
Post by: trevmeister66 on January 08, 2008, 05:58:00 pm
Eh maybe it won't be, I guess we'll find out. It's just that there are so many different abilities, some which are completely unique to one single card. But if you're only doing a limited number of cards, then you're probably right, it shouldn't be that big of a deal.
Title: MTG-like card game
Post by: DJ Omnimaga on January 08, 2008, 08:56:00 pm
or you could make some different game than mtg, so you dont need to keep it exactly like mtg, thus, allowing you to keep things more simple
Title: MTG-like card game
Post by: TIfanx1999 on January 09, 2008, 12:09:00 am
@DJOMNIMAGA; That is my goal, :) I don't want to create a Magic the gathering clone. What  I want to create  is a game that is similar in style  and gameplay to Magic the gathering but is more simplified in order to fit well with the calculator format. IE - Limit to how many monsters on the field, deck size requirement, ect. I do wish to include a variety of cards, but not so many that it takes up way too much space and bogs down the calculator's resources. In short, it will be a portable more simplifed version of Magic the gathering. ^_^
Title: MTG-like card game
Post by: DJ Omnimaga on January 09, 2008, 01:42:00 am
i see what you mean, cool :)
Title: MTG-like card game
Post by: NanoWar on January 10, 2008, 04:09:00 pm
Quote
Maybe you should check out wizards it was an asm game nominated for a POTY a while ago and is alot like what you are trying to do. If yours is better than that one you'll be in business.
Well, that's probably me! -_- But Wizards isn't very Magic-like. Your game sounds more like kv83's Battecards game (on MC), because you mentioned elemental cards etc.
I love card games! You must do this! I believe there's no other (trading)card game on ticalc yet. *thumbsup*
Title: MTG-like card game
Post by: Liazon on January 10, 2008, 06:35:00 pm
OMG it's Nanowar!!!!!! Welcome!
Title: MTG-like card game
Post by: bfr on January 10, 2008, 06:40:00 pm
Welcome! :D

Although I never played Magic the Gathering, I did play Yu-Gi-Oh for a while, so I'm kind of familiar with these types of card games.
Title: MTG-like card game
Post by: JonimusPrime on January 10, 2008, 10:14:00 pm
OMG nice to see you man I hope you stay once the board is fully restored.
Title: MTG-like card game
Post by: Liazon on January 10, 2008, 11:17:00 pm
Quote
Welcome! :D

Although I never played Magic the Gathering, I did play Yu-Gi-Oh for a while, so I'm kind of familiar with these types of card games.
TCGs are generally fun cuz of the strategy vs. the probability of drawing certain cards ^^
Title: MTG-like card game
Post by: DJ Omnimaga on January 11, 2008, 12:05:00 am
Hey nanowar! I hope the old board is gonna be restored asap
Title: MTG-like card game
Post by: NanoWar on January 14, 2008, 05:03:00 pm
...Only if Mr. camelot updates more often than I do :D .
Title: MTG-like card game
Post by: DJ Omnimaga on January 14, 2008, 06:15:00 pm
yeah i hope it gets finished ^^

Of course i hope Wizards does too tho ;)
Title: MTG-like card game
Post by: dinhotheone on January 15, 2008, 07:17:00 pm
i dunno, i always thought that 2 decks on one calc would be feasable. i think it would be easier to  transfer a deck to a diff calc than to make linkplay.
Title: MTG-like card game
Post by: kalan_vod on January 15, 2008, 09:35:00 pm
Maybe a conversion of data files (decks), Wizards<->MTG game ;)...endless possibilities.
Title: MTG-like card game
Post by: TIfanx1999 on January 15, 2008, 10:08:00 pm
Quote
Maybe a conversion of data files (decks), Wizards<->MTG game ;)...endless possibilities.
um... what? :blink:
Title: MTG-like card game
Post by: kalan_vod on January 15, 2008, 11:39:00 pm
Possible to trade decks from this game to Wizards, make the decks convertible or such.
Title: MTG-like card game
Post by: JonimusPrime on January 15, 2008, 11:44:00 pm
well depending on how wizards stores its cards it would be possible to convert it to a list and then send it to the calc with this game.
Title: MTG-like card game
Post by: {AP} on January 15, 2008, 11:58:00 pm
Please get this to work... =P
I tried this once... and failed miserably.
Title: MTG-like card game
Post by: TIfanx1999 on January 16, 2008, 12:54:00 am
@kalan_vod and the TheStorm: Wizards is ASM though, I don't know if it would be possible to allow the two to play nicley together nor do I know how to go about converting them. Also, they will probably be to differnt gameplay-wise, IE- many of the card effects in my game simply wouldnt work in wizards.
@AP: My intention is nothing but failure. :p
Title: MTG-like card game
Post by: kalan_vod on January 16, 2008, 02:55:00 am
Oops, I thought this was in asm (do not know why) sorry..
Title: MTG-like card game
Post by: NanoWar on January 16, 2008, 10:41:00 am
Hey, let's make different games :P ! ...Funky idea though.
Title: MTG-like card game
Post by: Liazon on January 16, 2008, 12:01:00 pm
i agree, just make different games.  more different kinds of fun :)
Title: MTG-like card game
Post by: TIfanx1999 on January 18, 2008, 02:38:00 pm
Does anyone know of a quick way to retrieve a value from a decimal place of a number? For example, I have the decimal number 0.12345678 . Is there a way I can retrive the values of the individual decimal places?
Title: MTG-like card game
Post by: kalan_vod on January 18, 2008, 03:51:00 pm
Quote
Does anyone know of a quick way to retrieve a value from a decimal place of a number? For example, I have the decimal number 0.12345678 . Is there a way I can retrive the values of the individual decimal places?
Depends how many decimal places:
Code: [Select]
:int(10fpart(0.12345678 ;would get 1, and increase the 10 to more if you want more of the numbers
Title: MTG-like card game
Post by: TIfanx1999 on January 18, 2008, 04:10:00 pm
I want the to grab the individual values though, if I multiply by 100 next time it would get me 12, and by 1000 123. I wanted to be able to retrive just 1, or just 2 or just 8 and so forth. I found a solution too. All i have to do is convert the number to a string, use the sub command to grab whatever part of the string i want, then convert it back to a number!
Title: MTG-like card game
Post by: kalan_vod on January 18, 2008, 04:47:00 pm
Quote
I want the to grab the individual values though, if I multiply by 100 next time it would get me 12, and by 1000 123. I wanted to be able to retrive just 1, or just 2 or just 8 and so forth. I found a solution too. All i have to do is convert the number to a string, use the sub command to grab whatever part of the string i want, then convert it back to a number!
Conversion to a string is always a quick optimized routine ;).
Title: MTG-like card game
Post by: vuurrobin on January 19, 2008, 02:49:00 pm
Quote
I want the to grab the individual values though, if I multiply by 100 next time it would get me 12, and by 1000 123. I wanted to be able to retrive just 1, or just 2 or just 8 and so forth. I found a solution too. All i have to do is convert the number to a string, use the sub command to grab whatever part of the string i want, then convert it back to a number!

if you want to get the 2, you could multiply by 10, take the fpart, multiply by 10 again, and take the int. you could even use seq( and create a list with each value.
Title: MTG-like card game
Post by: TIfanx1999 on January 19, 2008, 03:20:00 pm
could you post some sample code? I'm not exactly sure what you mean. I could see doing it like this:(off the top of my head)
Code: [Select]
0.12345678->A
1->dim L1
1->C
For I,1,8
AC->B
B->L1(dimL1)
1+dimL1->dim L1
ipart(A-A->A
10C->C
End
I'm unfamilar with the seq( command also, so I dont know how it works.
Title: MTG-like card game
Post by: vuurrobin on January 20, 2008, 08:41:00 am
0.12345678->A
seq(int(10fpart(10^(B)A)),B,0,7->L1

this creates the list {1,2,3,4,5,6,7,8}

you may want to look up what seq( does, since its a really usefull function
Title: MTG-like card game
Post by: TIfanx1999 on January 20, 2008, 02:17:00 pm
Alright, thanks alot, I will defintley check out the seq( funciton. It looks like this method may be faster and should save space as well. What is the value of B in the above example?
Title: MTG-like card game
Post by: DJ Omnimaga on January 20, 2008, 02:18:00 pm
wow there are still people who post on this forum O.o


I hope to see new progress soon  :)
Title: MTG-like card game
Post by: NanoWar on January 20, 2008, 04:19:00 pm
It's "seq(formula,variable,start,end)". seq(2X-4,X,1,3) will output {2*1-4 , 2*2-4 , 2*3-4} which is {-2 , -0 , 2}.
Title: MTG-like card game
Post by: vuurrobin on January 20, 2008, 09:03:00 pm
there is an optional 5th argument for the increment, which is 1 by standard.

and it doesn't matter what value the variable is, seq( changes it anyways
Title: MTG-like card game
Post by: TIfanx1999 on January 21, 2008, 12:55:00 am
@vuurobin: Thanks so much,this is exactly what i needed and will definitley save time and space over the method I was going to use. ^_^ NanoWar, I assume you store your indivdual card data in a list or a matrix, and I know that you must store the card Name and info into strings, but I was wondering how your program looks up what string to place for the name and what string to look up for the card text. Do you use a look up table of some sort?, do you store the info of which strings to acess in the card data itself or do you just jump to a label depending on which card it is? I'm rather curious to know .
Title: MTG-like card game
Post by: NanoWar on January 21, 2008, 12:06:00 pm
Yes, I use a giant look up table which points to the card data, card text and holds the aether costs of each card.

Code: [Select]
card(fireball,4,play.fireball,txt.fireball)
"play.fireball" and "txt.fireball" are 2-byte addresses.
Title: MTG-like card game
Post by: Liazon on January 21, 2008, 08:37:00 pm
o.o spasm macro?
Title: MTG-like card game
Post by: TIfanx1999 on January 22, 2008, 01:41:00 pm
@NanoWar: Alright thanks for the info. I have a general idea of how I want to do most of the things in this game. Since you have alot of these things worked out already though, I thought it would be a good idea to see how you were doing it. :)
Title: MTG-like card game
Post by: TIfanx1999 on January 23, 2008, 01:41:00 pm
The save/load deck system is more or less complete. I have been running some numbers to determine what kind of space this game is going to take up, and here's what i've come up with so far.
3 Starter decks (60 cards each) and 6 60 card expansion sets 4872 bytes
Current Deck list:                                                                7571 bytes
Pictures for all the cards (540 cards, 32b apiece at 16x16 size)17280 bytes
Game text for card names and card effects:                           38880 bytes
Total:                                                                                 68603 bytes
As you can see, it gets fairly large, and this is without the actual program, which as of now i have no idea how big it will be. I'd really like to find a way to shrink this somehow, as most of the space is taken up by graphics and text. On another note, it seems that I will be able to allow the user to save multiple decks (I'm thinking 3 at max) without to much hassle or without taking up too much space. So what do you guys think? I'm open to suggestions.
Title: MTG-like card game
Post by: kalan_vod on January 23, 2008, 03:07:00 pm
Sounds wonderful, and with xLIB you could have all the data archived so it would be easily feasible. I have not tried using Celtic 2 or 3, but the features are wonderful! You could have the actual program and required stuff in a BasicBuilder APP, and have the data for decks in programs that are archived.
Title: MTG-like card game
Post by: NanoWar on January 23, 2008, 06:16:00 pm
Quote
o.o spasm macro?
Oh yes!

/

68603 bytes? That's quite a bunch! I want less features, smaller size, but still much fun ;)
Or will this be a huge project?

You dont even need big graphics. Sometimes small symbols are enough.
Title: MTG-like card game
Post by: TIfanx1999 on January 26, 2008, 09:57:00 pm
Different card rarities now exist in this game . Here are the different rarities and the probability that you will pull one (from a card pack);
Common 75%
Uncommon 20%
Rare 5%
Also, here are the number of each type of rarity per set;(which also happens to follow the same ratio)
60 card set:
45 common cards per set
12 uncommon cards per set
3 rare cards per set.
Title: MTG-like card game
Post by: DJ Omnimaga on January 26, 2008, 10:01:00 pm
nice ^^
Title: MTG-like card game
Post by: sharkee on January 26, 2008, 10:50:00 pm
It seems that work has been going very fast on this project, did it even start when the new Omnimaga forums came to be? Oh yea, DJ, your spoiler is really creepy O_O  :3
Title: MTG-like card game
Post by: TIfanx1999 on January 26, 2008, 11:01:00 pm
My first post on this project was on this board (the temporary one) on January 5th, so... I'd say it started ~ January 5th ! =) . Progress is actually slower than I'd like as I have trouble motivating myself sometimes but eh whatever. I'd really like to have something to show as of monday, but we'll see if laziness gets the better of me or not. Welcome to the Omnimaga forums btw! Or re-welcome if you visited the old ones. ^_^.
Title: MTG-like card game
Post by: sharkee on January 26, 2008, 11:14:00 pm
Thanks, I just joined the forums, but I used to look at the old ones =D. It's probably faster progress than I'll get on my work X_X. That explains my 33% average in homework completion, lol.
Title: MTG-like card game
Post by: DJ Omnimaga on January 27, 2008, 02:17:00 am
welcome here ^^

I hope the old forums are back up soon
Title: MTG-like card game
Post by: Liazon on January 27, 2008, 09:55:00 am
that's a lot of data, but I guess it's basicbuilder ftw!

welcome to Omnimaga btw sharkee!
Title: MTG-like card game
Post by: TIfanx1999 on January 28, 2008, 01:13:00 am
Yea, I took a look at basic builder today and it looks like i can pack all the picture data into the app also, so that's pretty sweet. However, I'm not sure if Xlib will be able to access the picture files if they are packed into an app. If someone could give me some info about this it would be greatly appreciated.
Title: MTG-like card game
Post by: DJ Omnimaga on January 28, 2008, 01:39:00 am
basic builder cannot handle big projects such as Reuben quest, even Nitacku's sprite editor didn't worked in it
Title: MTG-like card game
Post by: Liazon on January 28, 2008, 06:32:00 pm
does it only do single page apps?
Title: MTG-like card game
Post by: vuurrobin on January 28, 2008, 07:01:00 pm
yes, it will only handle single page apps, but it compresses the programs a lot. i managed to get more than 17kb in it and it still said that I had like 5kb left.
Title: MTG-like card game
Post by: DJ Omnimaga on January 28, 2008, 07:08:00 pm
I remember once i packed both mana force 1 and illusiat 8 (both 18 KB each) in one 16 kb flash app. It didn't ran though :(
Title: MTG-like card game
Post by: TIfanx1999 on January 28, 2008, 09:14:00 pm
Well, the fact that it compresses things that much is very good news . I guess I'll play with it a bit to see if Xlib can identify the PIC files if they're packed in with the app. I should have a screenie of the gameplay layout soon.(not an actual gameplay screen though)
Title: MTG-like card game
Post by: DJ Omnimaga on January 28, 2008, 09:37:00 pm
i think the problems come where you use lot of pictures or use programs that are archived
Title: MTG-like card game
Post by: trevmeister66 on January 29, 2008, 05:57:00 pm
Both Harrierfalcon's Pegz and nitacku's Bowling were BasicBuilder apps that used xLIB for pictures and graphics and such. I don't know exactly how they did it, but they had some loop that called the picture from BasicBuilder (I have no idea how to do that), displayed it on the screen, and used xLIB to store it to a normal picture file. They would do that the first time the user ran the App, and never needed to again because the pictures were saved in the memory (unless the user deleted them for whatever reason.)
Title: MTG-like card game
Post by: kalan_vod on January 30, 2008, 12:33:00 pm
If I finish the update to my MGP I might use basic builder..I hope you can get it to work for your use, as you will have lots of data ;).
Title: MTG-like card game
Post by: sharkee on February 01, 2008, 09:00:00 am
I think BasicBuilder can store pictures. I used it before and I remember there was an option about that...
Title: MTG-like card game
Post by: vuurrobin on February 01, 2008, 11:14:00 am
you can store pics in a basic builder app, but I think that the only way of recalling them is with recallpic. so in the beginning you need to recall the pics and then use xlib to store them to a pic file. then you can use them as you would normally would.
Title: MTG-like card game
Post by: NanoWar on February 06, 2008, 10:45:00 am
BasicBuilder is teh strange! ^o)
Title: MTG-like card game
Post by: TIfanx1999 on February 13, 2008, 01:48:00 am
I've been rather busy with work lately and havent been much motivated to work on coding latley . I also had an on calc card editor half-working but then I did something to mess the code up . This also sapped some of my motivation. However; I have the whole upcoming week off so I plan to do alot of coding during this time. Hopefully I will have something to show soon. I apologize for the snail pace recently, but things should pick up this comming week (I hope).
Title: MTG-like card game
Post by: DJ Omnimaga on February 13, 2008, 01:52:00 am
sorry to hear, glad you are still working on this though :)

I can,t wait to see some screenies when you get back into it :)
Title: MTG-like card game
Post by: Liazon on February 13, 2008, 06:08:00 pm
it's no big deal.  Just glad it's not dead :)
Title: MTG-like card game
Post by: TIfanx1999 on February 14, 2008, 01:15:00 am
Heh, I'd post if it died. No news or slow news is good news. :)
Title: MTG-like card game
Post by: Liazon on February 14, 2008, 08:00:00 pm
lol that's the same for LL, though something big is in the works ^^...
Title: MTG-like card game
Post by: DJ Omnimaga on February 15, 2008, 01:49:00 am
O.O


something big, mhmm... *drools*
Title: MTG-like card game
Post by: JonimusPrime on February 15, 2008, 09:10:00 am
Quote
lol that's the same for LL, though something big is in the works ^^...
W0oT TheStorm (http://s1.zetaboards.com/omnimaga/profile/16886/) drools and waits staring at screen