Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 09-29-2012, 12:03 AM   PM User | #1
green_meep
New Coder

 
Join Date: Sep 2012
Posts: 14
Thanks: 1
Thanked 0 Times in 0 Posts
green_meep is an unknown quantity at this point
Efficient way to convert string into images?

Hey all,

I'm working on getting card documentation for a game I'm working on with a friend online. I've been mostly successful just parsing an xml document which is stored on the website. However, some cards will include symbols a la Magic the Gathering.

I figured I could parse single letters like 'n' or 'a' and convert them directly into image form. There's two problems with this, though:

Some symbols are used to represent several different costs. For example, you might see a '3 gold' symbol, but also a '2 gold' symbol somewhere else. It would be easier to upload a single, blank image, then essentially "write" each number on the image as needed.

There are hybrid symbols. For example, I might have a symbol that is partially 'n' and partially 'a'. I need help correctly parsing not only the single characters 'n' and 'a', but also things like 'n/a'.

Thanks in advance.
green_meep is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 01:58 AM.


Advertisement
Log in to turn off these ads.