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

What happened to the blocks? #334

Open
usernamepluto2022 opened this issue Dec 27, 2023 · 4 comments
Open

What happened to the blocks? #334

usernamepluto2022 opened this issue Dec 27, 2023 · 4 comments

Comments

@usernamepluto2022
Copy link

image

@Muhtasim-Rasheed
Copy link

cursed screenshots that will haunt you down

@TodePond
Copy link
Owner

I think this an issue that happens when you place down squares into paddle slots but they slide a bit

@loglot
Copy link

loglot commented May 16, 2024

they had a mental breakdown

@TeraByte-Official
Copy link

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants