Skip to content

Conversation

@saumyashahi
Copy link
Contributor

Summary

This PR introduces and refines several core features in the Masonry module:

  • Drag & Drop: Improved user interaction for moving bricks within towers and from the palette.
  • Collision Detection: Enhanced logic for detecting and managing brick overlaps and placements.
  • Reverse Mapping Utility: New utility for mapping screen coordinates back to bricks/towers, supporting hit-testing.

Key Changes

  • Drag & Drop: Users can now intuitively drag single bricks from the palette to the workspace, or within the workspace itself. The UI provides visual feedback and updates brick positions accordingly.
  • Collision Detection: Has both brute force and quadTree implementation along with a collision map.
  • Reverse Mapping: Enables hit-testing, and connection logic for bricks and towers.

Checklist

  • Code linted and formatted
  • All new/updated tests pass

@saumyashahi saumyashahi requested a review from meganindya July 17, 2025 14:37
@saumyashahi saumyashahi added the gsoc Prospective task for GSoC label Jul 17, 2025
tsconfig.json Outdated
Comment on lines 27 to 30
"baseUrl": ".",
"paths": {
"@code-builder/*": [
"modules/code-builder/src/*"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why was this removed?

Comment on lines 1 to 10
import { defineConfig } from 'vite';
import path from 'path';

export default defineConfig({
resolve: {
alias: {
'@code-builder': path.resolve(__dirname, '../../code-builder/src'),
},
},
}); No newline at end of file
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why was this removed?

justin212407 and others added 26 commits July 19, 2025 19:23
…rkspace to drag ad drop bricks

Signed-off-by: Justin Charles <[email protected]>
saumyashahi and others added 24 commits July 19, 2025 19:23
…s collision detection setup

Signed-off-by: Justin Charles <[email protected]>
Signed-off-by: Justin Charles <[email protected]>
@meganindya meganindya force-pushed the gsoc-dmp-2025/week-6/justin branch from 05d364e to a9d5397 Compare July 19, 2025 13:53
@meganindya meganindya merged commit 8f4c570 into develop Jul 19, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gsoc Prospective task for GSoC

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants