Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate image of campaign map #45

Open
rythos42 opened this issue Apr 19, 2020 · 2 comments
Open

Generate image of campaign map #45

rythos42 opened this issue Apr 19, 2020 · 2 comments

Comments

@rythos42
Copy link
Contributor

rythos42 commented Apr 19, 2020

I was just working on my campaigns map and thought how cool would it be if Flagship could do this for me?

It would not be all that hard with the existing data and a little HTML canvas magic. Just need 5 images (map, Rebel/Imperial bases, Rebel/Imperial presence) and some pixel coordinates of where the tokens need to go. Maybe augment the existing campaignLocationFactory.ts with an (x, y) pair and you'd be ready to roll.

(I have most of this in hand, and may end up working on it soon)

https://developer.mozilla.org/en-US/docs/Web/API/Canvas_API/Tutorial/Using_images

@videege
Copy link
Owner

videege commented Apr 27, 2020

I think this would be very cool but I've hesitated to use any imagery from the game due to concerns over FFG's policy. I'm all for it if you want to contribute it - hopefully it will be no big deal legally.

@rythos42
Copy link
Contributor Author

It's such a weird grey area. I got a good map image from the maker of the TTS Armada mod. He had similar concerns, but noted that he's pretty sure that most of the FFG design team is using TTS to playtest stuff now, so it's not like they don't know he's using their IP that way.

Given that, and the Vassal mod, and that all the other fleet builders use official images, I feel like this one might be one that you could get away with.

Having said that, it's your app and if you're not comfortable with it, then it doesn't get included! (or maybe I draw my own, less awesome, map :D). I won't be working on this for a bit, so you've got time if you want to consider it. Also, I don't mind working on it, and if it becomes an issue, just pull the functionality. (wouldn't be the first time I spent time on a feature that got pulled...)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants