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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Grid system 馃搹 #29

Open
1 of 4 tasks
blairjordan opened this issue Jul 13, 2023 · 0 comments 路 May be fixed by #33
Open
1 of 4 tasks

Grid system 馃搹 #29

blairjordan opened this issue Jul 13, 2023 · 0 comments 路 May be fixed by #33

Comments

@blairjordan
Copy link
Owner

blairjordan commented Jul 13, 2023

The grid system allows the game to scale:

  • Add a computed column to user which exposes which grid they belong to

#31

#32

  • Publish player and marker subscriptions to relevant grid areas
  • Restrict subscriptions to a player's area
  • Also publish to global topics

#33

Example grid area:

-------------------------------------
|           |           |           |     
|     s1    |     s2    |     s3    |
|           |           |           |
-------------------------------------
|           | player loc|           |     
|     s4    |    s0     |     s5    |
|           |           |           |
-------------------------------------
|           |           |           |     
|     s6    |     s7    |     s8    |
|           |           |           |
-------------------------------------

(i.e., 8 subscriptions when not in a region bordering an edge)
@blairjordan blairjordan changed the title 馃搹 Grid system Grid system 馃搹 Jul 13, 2023
@blairjordan blairjordan linked a pull request Aug 8, 2023 that will close this issue
@blairjordan blairjordan linked a pull request Aug 8, 2023 that will close this issue
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

Successfully merging a pull request may close this issue.

1 participant