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

Add support for mapvisuals #228

Open
thmsndk opened this issue Sep 6, 2020 · 0 comments
Open

Add support for mapvisuals #228

thmsndk opened this issue Sep 6, 2020 · 0 comments
Assignees

Comments

@thmsndk
Copy link
Owner

thmsndk commented Sep 6, 2020

image
https://docs.screeps.com/api/#Game-map-visual
https://screeps.com/forum/topic/3064/map-visuals

Map visuals seems to be a top level overlay, rendering as the highest thing

screeps/backend-local@4dfc47e

mapVisual:uid/shard for official

https://en.wikipedia.org/wiki/JSON_streaming is used in the data we recieve

@thmsndk thmsndk self-assigned this Oct 1, 2020
thmsndk added a commit that referenced this issue Apr 8, 2021
* Initial subscription and JSON stream parsing #228

* Draw a line and a simple circle with linerenderer #228

* Render circle and line in correct positions

* Draw rectangle with color

* Draw poly

* Merged develop to map visuals

merge conflict in Game.unity

* Render lines and circles as a SVG on a quad

* Draw rectangle, set opacity on shapes, disable shadows on shapes

* Render polygon

* Make paths / circles more smoothe at the cost of more triangles

* Initial rendering of text map visuals

* Move polygon such that the testcase is correct

* Only generate a new gameobject if it does not already exist

* Fiddled with stroke width rendering on circles, it's terrible :/

* set fontSize accordingly for text

* "Fixed" rendering of ⚔️ by setting scale of U+FE0F to 0.001 and updating unicode on sprite character table

* Added a button to toggle map visuals on and off
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

1 participant