Allow to generate and view any shapez.io shape
tobspr-games / shapez.io-viewer Goto Github PK
View Code? Open in Web Editor NEWAllows to generate and view any shapez.io shape.
Home Page: https://viewer.shapez.io
Allows to generate and view any shapez.io shape.
Home Page: https://viewer.shapez.io
It would be nice to have Copy button next to code field.
We have no shape history so let's protect the last one
"-UNSC" Is an acceptable Quadrant Doing The Same Thing As "--" But Will Let You Make an Empty Layer.
"--------" will result in an "Empty layers are not allowed" error but "-------UNSC" Is Valid And Will Make An Empty Layer
I've been toying with the idea of rendering the shape output as SVG rather than a canvas element. This would make it so that each quadrant of each layer is actually in the DOM. It gives us a lot more flexibility to make this tool better in the future. We'd be able to add event listeners onto the quadrants. For example, left click on a quadrant to toggle its shape and right click on the quadrant to toggle its color. Then you could build shapes right on the canvas without having to type out the object code.
I'm happy to do the work on this, but I don't want to do it if there's no chance of it being merged.
It would be great to have ability to construct shapes not only by printing their codes but by convenient controls set.
This set should support:
I don't know if it's possible to change the current version of the shape generator to implement this request, or if we should make another page/block.
Any ideas?
If I have a factory producing an uncolored shape, there's not a clear way to distinguish a label between "this is my factory" or "this is a resource node". One option you might consider is to give different options for icons that appear to the left of the marked list.
00|CuCuCuCu
would give the regular map pin icon to the left of the marker.
10|CuCuCuCu
would show a factory icon to the left.
20|CuCuCuCu
could show a miner icon to the left.
30|CuCuCuCu
could show a paint palette that might let me show this is just a factory that produces this specific color.
etc.
The reason I leave space in between is that maybe later 10
shows an icon of a small factory and 11
shows an icon of a large factory. It can give me an idea of my yield from that factory.
For any screen width over 1000, the about section and the title appear offscreen.
This appears to be due to the CSS html, body {}
styling of height: 100%;
. I looked at the code and removing index.css line 9 seemed to fix it (it also still looked fine on mobile that way).
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.