Comments (7)
stacker: counterintuitive, but technically not a bug. will be changed soon
cutter: there's an empty layer behind! it will be brought to bottom one.
from shapez.io.
What @dengr1065 said. Will soon be obsolete
from shapez.io.
Will the cutter part be obsolete too? If not, I've prepared a possible fix for it. I can also create a PR if wanted.
shape_definition.js
cloneFilteredByQuadrants(includeQuadrants) {
const newLayers = this.internalCloneLayers();
let lastNonEmptyLayer = -1;
for (let layerIndex = 0; layerIndex < newLayers.length; ++layerIndex) {
const quadrants = newLayers[layerIndex];
let anyContents = false;
for (let quadrantIndex = 0; quadrantIndex < 4; ++quadrantIndex) {
if (includeQuadrants.indexOf(quadrantIndex) < 0) {
quadrants[quadrantIndex] = null;
} else if (quadrants[quadrantIndex]) {
lastNonEmptyLayer = layerIndex;
}
}
}
// Remove top most empty layers which aren't needed anymore
if (lastNonEmptyLayer !== newLayers.length - 1) {
newLayers.splice(lastNonEmptyLayer + 1);
}
return new ShapeDefinition({ layers: newLayers });
}
This works by not removing every empty layer but only the top most empty ones.
from shapez.io.
stacker: counterintuitive, but technically not a bug. will be changed soon
Out of curiosity, regardless of things being changed soon, why would this be considered normal behavior?
from shapez.io.
stacker stacks per-layer, it's too hard to implement such logic accidentally 🙂
from shapez.io.
So it's not simply stacking the full shape from the right on top of the shape from the left and instead it's stacking each quadrant from the right on the quadrant from the left?
from shapez.io.
it "moves/stacks" one layer from right shape on the left one, checking whether they can flatten
from shapez.io.
Related Issues (20)
- what version of yarn? HOT 2
- Plugin problem with wires+ HOT 1
- Export map as image in high quality HOT 2
- Mistaken layers after trimming HOT 2
- Attempting to make a puzzle with the CuCuCuCu shortcode causes a server error.
- improve performance . (game freez in case of big base) HOT 4
- game pretty much dies after the 2nd level thru the tutorial HOT 2
- [Feature Request] Save Sync with Epic Games Store
- [Improvement] Make Belt readers output throughput as a value for more complex math/logic contraptions
- Any command to build an arm version App Bundle? HOT 1
- Gulp `imgres.buildAtlas` not throw if java not installed HOT 3
- For Puzzle mode, show completion time
- Shape lost when placing a rotator in front of a storage HOT 7
- Wrong grid color property on mod exemple `custom_theme.js`
- Publish on Flathub HOT 4
- Failed to build: libgdx.badlogicgames.com has a self-signed certificate HOT 5
- Error: error:0308010C:digital envelope routines::unsupported HOT 2
- Mobile: Some machines produce wrong output HOT 2
- Yarn build error HOT 2
- error code because it can't find any github revisions HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from shapez.io.