Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Component pieces architecture #5

Merged
merged 103 commits into from
Oct 26, 2024
Merged

Component pieces architecture #5

merged 103 commits into from
Oct 26, 2024

Conversation

Zequez
Copy link
Collaborator

@Zequez Zequez commented Oct 26, 2024

Created a new architecture for the game spaces. There are no fixed rules or pieces on the game. Each piece type is defined on a folder with the following files:

  • config.ts
  • ConfigMenu.svelte
  • Element.svelte
  • type.ts
  • grammar.ts (optional, allows you to plug-in into the game state delta changes)
  • index.ts

Check for examples on the src/GameSpace/elements folder.

The current pieces available are:

  • Dice
  • EmbedWal
  • Image
  • Piece
  • PieceSource
  • PlayerPiece
  • PlayerPieceSource
  • TurnTracker

Zequez added 29 commits October 15, 2024 11:02
… check; supposedly it's not available on all browsers but TypeScript wasn't complaining
@Zequez Zequez merged commit dff47ae into main Oct 26, 2024
1 check passed
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant