Shandalar Clone
Post MTG Forge Related Programming Questions Here
Moderators: timmermac, Agetian, friarsol, Blacksmith, KrazyTheFox, CCGHQ Admins
Re: Shandalar Clone
by Marek14 » 05 Aug 2010, 06:50
Well, there are still a few unresolved issues. For example, Terravore might need a theme deck, but I'm not sure how it would look... lots of land destruction, and playing fetchlands?
Or Lord of Extinction -- will it be OK without a specialized theme, when it just lets the graveyard fill by itself?
Basically, the graveyard cards need more thinking, I think.
I will update the file as new releases come.
Or Lord of Extinction -- will it be OK without a specialized theme, when it just lets the graveyard fill by itself?
Basically, the graveyard cards need more thinking, I think.
I will update the file as new releases come.
Re: Shandalar Clone
by Rob Cashwalker » 05 Aug 2010, 13:32
not EVERY card needs to be used.
The Force will be with you, Always.
-

Rob Cashwalker - Programmer
- Posts: 2167
- Joined: 09 Sep 2008, 15:09
- Location: New York
- Has thanked: 5 times
- Been thanked: 40 times
Re: Shandalar Clone
by friarsol » 05 Aug 2010, 14:08
I agree that not every card needs a theme deck. We could just stick with a small amount for now, and bring it upwards as we fill out more decks. Something like Terravore thematically fits in a WG Knight of the Reliquary/Armageddon deck.
- friarsol
- Global Moderator
- Posts: 7593
- Joined: 15 May 2010, 04:20
- Has thanked: 243 times
- Been thanked: 965 times
Re: Shandalar Clone
by Marek14 » 06 Aug 2010, 06:16
Also, I was wondering about the morph cards. I included "morph" as a theme, since a deck can benefit from having many different morph cards in it -- it makes it harder for opponent to guess them. But maybe morph cards could be encountered in either face-up or face-down version, where face-down would have a five-color deck with morph theme, and face-up would have standard deck for that particular creature 
Re: Shandalar Clone
by DennisBergkamp » 06 Aug 2010, 07:17
I've been experimenting with a bunch of things...
One thing I got working now is a day-night cycle, but I'm not sure if I'll end up using it (it increases load time by a factor of two since it has to load a second background which represents the "night" bg image). Perhaps I could somehow apply different color palettes to the same background image within java and accomplish the same thing with better performance.
Anyway, I'm pleased the way it looks, just not pleased with the extra load times.
One thing I got working now is a day-night cycle, but I'm not sure if I'll end up using it (it increases load time by a factor of two since it has to load a second background which represents the "night" bg image). Perhaps I could somehow apply different color palettes to the same background image within java and accomplish the same thing with better performance.
Anyway, I'm pleased the way it looks, just not pleased with the extra load times.
-

DennisBergkamp - AI Programmer
- Posts: 2602
- Joined: 09 Sep 2008, 15:46
- Has thanked: 0 time
- Been thanked: 0 time
Re: Shandalar Clone
by mtgrares » 06 Aug 2010, 18:12
The screenshots looks very good, almost like a commercial videogame.
- mtgrares
- DEVELOPER
- Posts: 1352
- Joined: 08 Sep 2008, 22:10
- Has thanked: 3 times
- Been thanked: 12 times
Re: Shandalar Clone
by DennisBergkamp » 07 Aug 2010, 00:00
The background is nice I suppose, but I don't think it's anywhere near commercial video game quality. Maybe 20 years ago
Anyway, I've been looking around online to see if there's anyway to change the color palette to a GIF within Java (and I KNOW there has to be a way), but still haven't found a solution that makes sense. Does anyone else have experience with this?
Anyway, I've been looking around online to see if there's anyway to change the color palette to a GIF within Java (and I KNOW there has to be a way), but still haven't found a solution that makes sense. Does anyone else have experience with this?
-

DennisBergkamp - AI Programmer
- Posts: 2602
- Joined: 09 Sep 2008, 15:46
- Has thanked: 0 time
- Been thanked: 0 time
Re: Shandalar Clone
by Rob Cashwalker » 07 Aug 2010, 01:28
In VB, I would change the drawing pen mode to mix colors. Then draw a filled box (across the whole dimension) in a blue color.
I would look for Java raster operations to apply filters or gamma correction... ImageMagick comes to mind, since I happen to be playing with it for a work project...
I would look for Java raster operations to apply filters or gamma correction... ImageMagick comes to mind, since I happen to be playing with it for a work project...
The Force will be with you, Always.
-

Rob Cashwalker - Programmer
- Posts: 2167
- Joined: 09 Sep 2008, 15:09
- Location: New York
- Has thanked: 5 times
- Been thanked: 40 times
Re: Shandalar Clone
by DennisBergkamp » 07 Aug 2010, 03:40
Ahh, yeah I've been using imagemagick for concatenating the animation sprites for this thing.
I'll search for those terms, and see if I have more luck
I'll search for those terms, and see if I have more luck
-

DennisBergkamp - AI Programmer
- Posts: 2602
- Joined: 09 Sep 2008, 15:46
- Has thanked: 0 time
- Been thanked: 0 time
Re: Shandalar Clone
by DennisBergkamp » 10 Aug 2010, 00:57
I have done the following steps:
1. extracted the color palette from photoshop (.act file).
2. opened the .act file in a hex editor, and exported these numbers into decimal values.
3. from these decimal values, I generated three big static arrays (R, G, B).
4. created an IndexColorModel using these arrays, and applied it to the original image.
And... well, the colors are all messed up now
I guess for now, I'll just use the two separate images.
1. extracted the color palette from photoshop (.act file).
2. opened the .act file in a hex editor, and exported these numbers into decimal values.
3. from these decimal values, I generated three big static arrays (R, G, B).
4. created an IndexColorModel using these arrays, and applied it to the original image.
And... well, the colors are all messed up now
-

DennisBergkamp - AI Programmer
- Posts: 2602
- Joined: 09 Sep 2008, 15:46
- Has thanked: 0 time
- Been thanked: 0 time
Re: Shandalar Clone
by Rob Cashwalker » 10 Aug 2010, 02:50
Point me the java docs for the graphics packages that you're using, and I'll see if I can come up with any better suggestions.
The Force will be with you, Always.
-

Rob Cashwalker - Programmer
- Posts: 2167
- Joined: 09 Sep 2008, 15:09
- Location: New York
- Has thanked: 5 times
- Been thanked: 40 times
Re: Shandalar Clone
by DennisBergkamp » 10 Aug 2010, 03:10
Hmm, I don't think I'm using anything special (I'd have to double check though).
Just:
Image
BufferedImage
IndexColorModel
I read in the GIF file (and end up with an Image), then I apply the palette to the IndexColorModel, and from those two I generate the BufferedImage, which is drawn to the screen.
Just:
Image
BufferedImage
IndexColorModel
I read in the GIF file (and end up with an Image), then I apply the palette to the IndexColorModel, and from those two I generate the BufferedImage, which is drawn to the screen.
-

DennisBergkamp - AI Programmer
- Posts: 2602
- Joined: 09 Sep 2008, 15:46
- Has thanked: 0 time
- Been thanked: 0 time
Re: Shandalar Clone
by DennisBergkamp » 12 Aug 2010, 01:14
I've been copying a bunch of stuff from the regular fantasy quest mode, but a lot of things will be different also:
Credits -> Gold (just a rename).
Winning cards after a match -> Winning a 15-card booster pack after a match (see screenshot).
Winning random rares after a match -> Finding random rares as treasure while exploring the map.
I'm also thinking of giving the shops a big overhaul, certain towns will only have certain shops, and the pet shops will be different (you'd only be able to buy the bird in a "white" town, only the wolf in a "green" town, etc. etc.... this also means you can buy pets out of the current order).
Credits -> Gold (just a rename).
Winning cards after a match -> Winning a 15-card booster pack after a match (see screenshot).
Winning random rares after a match -> Finding random rares as treasure while exploring the map.
I'm also thinking of giving the shops a big overhaul, certain towns will only have certain shops, and the pet shops will be different (you'd only be able to buy the bird in a "white" town, only the wolf in a "green" town, etc. etc.... this also means you can buy pets out of the current order).
-

DennisBergkamp - AI Programmer
- Posts: 2602
- Joined: 09 Sep 2008, 15:46
- Has thanked: 0 time
- Been thanked: 0 time
Re: Shandalar Clone
by Chris H. » 12 Aug 2010, 02:24
`DennisBergkamp wrote:I've been copying a bunch of stuff from the regular fantasy quest mode, but a lot of things will be different also:
Credits -> Gold (just a rename).
Winning cards after a match -> Winning a 15-card booster pack after a match (see screenshot).
Winning random rares after a match -> Finding random rares as treasure while exploring the map.
I'm also thinking of giving the shops a big overhaul, certain towns will only have certain shops, and the pet shops will be different (you'd only be able to buy the bird in a "white" town, only the wolf in a "green" town, etc. etc.... this also means you can buy pets out of the current order).
Are you planning to make this an addition to the fantasy quest mode? Or will this become a 3rd quest mode?
-

Chris H. - Forge Moderator
- Posts: 6320
- Joined: 04 Nov 2008, 12:11
- Location: Mac OS X Yosemite
- Has thanked: 644 times
- Been thanked: 643 times
Re: Shandalar Clone
by Rob Cashwalker » 12 Aug 2010, 02:35
Cool!
If you want to continue the attempt to darken the existing map, check out this gamma correction code out:
http://www.acme.berkeley.ca.us/resource ... Gamma.java
If you want to continue the attempt to darken the existing map, check out this gamma correction code out:
http://www.acme.berkeley.ca.us/resource ... Gamma.java
The Force will be with you, Always.
-

Rob Cashwalker - Programmer
- Posts: 2167
- Joined: 09 Sep 2008, 15:09
- Location: New York
- Has thanked: 5 times
- Been thanked: 40 times
Who is online
Users browsing this forum: No registered users and 69 guests