-
-
Notifications
You must be signed in to change notification settings - Fork 35
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
What happened to the blocks? #334
Comments
cursed screenshots that will haunt you down |
I think this an issue that happens when you place down squares into paddle slots but they slide a bit |
they had a mental breakdown |
think i found a fix ...
drop: (atom) => {
if (atom.highlight !== undefined) {
if (atom.highlightedAtom.isPaddle) {
const paddle = atom.highlightedAtom
atom.attached = true
// fix rule sliding
atom.dx = 0
atom.dy = 0
if (atom.highlightedSide === "right") {
const dummy = createChild(paddle, SLOT, {bottom: true})
dummy.x = PADDLE.width/2 - atom.width/2
dummy.y = PADDLE.height/2 - atom.height/2
dummy.isLeftSlot = true
dummy.isSlot = false
paddle.cellAtoms.push(dummy)
dummy.slotted = atom
atom.cellAtom = dummy
atom.x = atom.highlightedAtom.x
atom.y = atom.highlightedAtom.y
atom.slottee = true
giveChild(paddle, atom)
} else {
paddle.cellAtoms.push(atom)
atom.x = atom.highlightedAtom.x
atom.y = atom.highlightedAtom.y
atom.dx = 0
atom.dy = 0
giveChild(paddle, atom)
}
updatePaddleSize(paddle)
}
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The text was updated successfully, but these errors were encountered: