It is currently 18 Apr 2024, 02:32
   
Text Size

Deck-builder sneak peek

Moderators: ubeefx, beholder, melvin, ShawnieBoy, Lodici, CCGHQ Admins

Deck-builder sneak peek

Postby madmarcel » 04 Aug 2011, 12:31

Sneak peek of what I'm working on at the moment...

Not much too look at just yet, but I've got the 'live' search working,
only filters missing are full text search and filter by set (because we haven't got that data in the card definition file :)

It's well past midnight, I'll have another tinker tomorrow night and change the code so that you can combine filters.
i.e.
Code: Select all
conv:3 type:knight {W}{W}
would find
all knight creature cards with converted casting cost of {3} and a casting cost that contains {W} {W}

Big ugly tooltip:
ImageBigger is better, find cards with converted casting cost of {7} :
Image

Feel free to suggest features you would like to see in the deckbuilder...

Initial goal is to run this as separate app and just be able to load and save decklists to .dec files, you would still have to load your newly made deck from inside the MagArena program.
User avatar
madmarcel
 
Posts: 18
Joined: 17 Jul 2011, 03:18
Location: New Zealand
Has thanked: 0 time
Been thanked: 0 time

Re: Deck-builder sneak peek

Postby melvin » 04 Aug 2011, 12:52

Looks awesome =D> The advance search is a nice feature, reminds me of the advance search page at http://magiccards.info/search.html Perhaps you can consider using a similar syntax as magiccards.info since folks may be familiar with that.
User avatar
melvin
AI Programmer
 
Posts: 1062
Joined: 21 Mar 2010, 12:26
Location: Singapore
Has thanked: 36 times
Been thanked: 459 times

Re: Deck-builder sneak peek

Postby beholder » 04 Aug 2011, 14:43

Hooray! :) good job.

What will happen to the card explorer now? Will this replace it?
If debugging is the process of removing bugs, then programming must be the process of putting them in.
User avatar
beholder
Programmer
 
Posts: 123
Joined: 17 Jul 2011, 17:56
Location: Netherlands
Has thanked: 16 times
Been thanked: 25 times

Re: Deck-builder sneak peek

Postby melvin » 04 Aug 2011, 15:22

Hard to say, the card explorer is integrated into the game while the deck editor is a separate program. So for simple browsing while playing the game, the card explorer is still useful. For serious deck building, the deck editor will be the tool of choice.
User avatar
melvin
AI Programmer
 
Posts: 1062
Joined: 21 Mar 2010, 12:26
Location: Singapore
Has thanked: 36 times
Been thanked: 459 times

Re: Deck-builder sneak peek

Postby ubeefx » 04 Aug 2011, 17:05

Nice work! :)

For the conv: filter, maybe you can use cmc:, which is the abbreviation for converted mana cost, as in gatherer.
The Add 1 and Add 4 buttons are cool, but why no have all of them (+1, +2, +3 and +4).
Instead of making it a separate app, add a "Deck Builder..." option to menu.
That just starts the deck builder as a separate frame.
When you are done editing, close the deck editor and you can play with the deck.
User avatar
ubeefx
DEVELOPER
 
Posts: 748
Joined: 23 Nov 2010, 19:16
Has thanked: 34 times
Been thanked: 249 times

Re: Deck-builder sneak peek

Postby madmarcel » 05 Aug 2011, 05:34

Just had a tinker, can now use multiple filters, so
Code: Select all
conv:3 type:knight {W}{W}
now works, so my list of filters is now any combination of:

Code: Select all
pow|power:X|X+
tough|toughness:X|X+
rare|rarity:c|b|r|m|u
type:creature|artifact|enchantment|aura|equipment|land|instant|sorcery|legendary|<creaturetype>
cmc|ccc|conv:X|X+
{G|B|U|W|R|X
mana:w|b|r|g|u
where X of course is any number.

will add these four later
set: ...
block: ...
text:<anything>
format:standard|extended|legacy|vintage

Not too fussed about having filters the same as MtG or Magiccards website at the moment, just want get it working and out there for people to use and we'll go from there. Going to work on the important part tonight...the actual deck 'views'.

Have only put in +1 and +4 buttons, seems sufficient to me and only have limited space there.

I am tempted to add a 'card browser' mode, like the old shandalar game. (enable/disable with a toggle)
A list of cardnames and fancy search filters is nice if you know what you are looking for, but it doesn't quite match up to rifling through a pile of cards, especially if you are a new player and/or unfamiliar with what a lot of the cards do.
So this would be a bar at the bottom of the screen where you could see say 10 cards at once and you can flick 10 cards left or right. Something like that...
User avatar
madmarcel
 
Posts: 18
Joined: 17 Jul 2011, 03:18
Location: New Zealand
Has thanked: 0 time
Been thanked: 0 time

Re: Deck-builder sneak peek

Postby madmarcel » 07 Aug 2011, 01:40

Slowly getting there.

Can load and save decks, can add cards...
The card layout/space usage is not quite optimal, but almost there.
Now to figure out a way to remove cards that is intuitive.

Image
User avatar
madmarcel
 
Posts: 18
Joined: 17 Jul 2011, 03:18
Location: New Zealand
Has thanked: 0 time
Been thanked: 0 time

Re: Deck-builder sneak peek

Postby Huggybaby » 07 Aug 2011, 05:24

Right click on it to remove?
User avatar
Huggybaby
Administrator
 
Posts: 3205
Joined: 15 Jan 2006, 19:44
Location: Finally out of Atlanta
Has thanked: 696 times
Been thanked: 594 times

Re: Deck-builder sneak peek

Postby mtgrares » 25 Aug 2011, 17:14

madmarcel wrote:Slowly getting there.
The card layout/space usage is not quite optimal, but almost there.
The deck editor looks great. Nothing is ever perfect but I know that us programmers try to get as close as possible. Sometimes you should just stop at good enough.
mtgrares
DEVELOPER
 
Posts: 1352
Joined: 08 Sep 2008, 22:10
Has thanked: 3 times
Been thanked: 12 times

Re: Deck-builder sneak peek

Postby pedro1973 » 03 Sep 2011, 11:15

Looks very nice:)


It could be a nice addition!
pedro1973
 
Posts: 52
Joined: 17 Apr 2011, 22:17
Has thanked: 0 time
Been thanked: 3 times


Return to Magarena

Who is online

Users browsing this forum: No registered users and 22 guests


Who is online

In total there are 22 users online :: 0 registered, 0 hidden and 22 guests (based on users active over the past 10 minutes)
Most users ever online was 4143 on 23 Jan 2024, 08:21

Users browsing this forum: No registered users and 22 guests

Login Form