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

Block Generator Algorithm #107

Open
E-A-N opened this issue Nov 29, 2018 · 1 comment
Open

Block Generator Algorithm #107

E-A-N opened this issue Nov 29, 2018 · 1 comment
Assignees

Comments

@E-A-N
Copy link
Collaborator

E-A-N commented Nov 29, 2018

  • Make a layout of the game stage (sort of like map)
    • Use a matrix (arrays nested in an array) for this layouts base data structures
      • Matrix should be 2 separately generated 4 X 14 in sequential fashion
    • Decide the values the represent the different elements in the matrix
  • Make rules for the spacing of the obstacles
    • Obstacles can only be generated above offscreen markers
    • If the Element is a block, it cannot overlap with other elements
      • If the obstacle is a Full Block the next 3 FULL columns cannot generate other elements
      • If the obstacle is a Half Block the next 2 half columns cannot generate other elements
        • If there's a Half Block, the next half block should not be generated for atleast the next 2 columns
      • If the obstacle is a Quarter Block only that tile cannot generate other elements
      • If the obstacle is a pickup then it does not align to the grid.
        • Pickups still cannot appear in block spaces
      • Wipe Matrix Cells when they go below the screen boundry
  • Make rules for the coloring of the block
    • The Next Block (full block) is based on the color pickups that are already on screen (below the next marker)
    • Color Pickups are randomly generated
      • Color Pickups should spawn every 2 to 4 tiles
    • Spawned Colors should be added to an active colors list
    • When a full block is spawned, it can only spawn an attainable color combo
      • An attainable color combo is the potential color of spawned pickups and player colors
@E-A-N
Copy link
Collaborator Author

E-A-N commented Dec 1, 2018

Simple mode Color System should be implemented 1st!!

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

2 participants