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

chore(web): physics & game controls #31

Merged
merged 26 commits into from
Aug 30, 2024
Merged

chore(web): physics & game controls #31

merged 26 commits into from
Aug 30, 2024

Conversation

Neosoulink
Copy link
Owner

Summary


### Description

- Initialize `webSocket` support.
  - Use `WS` library
### Description

- Initialize world module
- Initialize game module
- Initialize chess board module
- initialize core module
### Description

Use `ThreeJS` RapierPhysics addon as base.
### Description

- Use `Object3D.userData` to pass `useBoundingBox`, forcing **bounding-box** usage
### Description

- Add `@chess-d/rapier-physics`
- Add `physicsBody` property to chess-board component
### Description

- Move out of the core the `Physics` helper
  - Register it in the dependency container
- Add debug module
  - Implement physics debug
- Add new turbo env to the dev process
  - use vite `import.meta.env?.DEV` env as debug mode checker
### Description

- Move the `dropPiece` handler to `PiecesGroupModel`
  - Handle `PiecesGroupModel` count update
  - Handle `PieceModel` deletion
- `PiecesGroupModel` update `PieceMode`s
- Update `PiecesModel` composition on set coords
  - Update physics rotation
@Neosoulink Neosoulink added the enhancement New feature or request label Aug 30, 2024
@Neosoulink Neosoulink self-assigned this Aug 30, 2024
Copy link

changeset-bot bot commented Aug 30, 2024

🦋 Changeset detected

Latest commit: 8d89ba7

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 4 packages
Name Type
@chess-d/configs Patch
web Patch
@chess-d/rapier-physics Minor
api Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@Neosoulink Neosoulink merged commit a1d9dea into master Aug 30, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant