JakeJayB / Bug-Jump-Group-Application

Bug Jump is a 2D platformer game which I was the lead programmer for, leading a group of 4 undergraduate students
0 stars 0 forks source link

Custom level recognizer #3

Open JakeJayB opened 8 months ago

JakeJayB commented 8 months ago

Like I said in the "level creator" issue, there are 8 base level files that the file reader and level selectors reads from. When a user creates their own level file or level in the level creator (if it is implemented), the level selector doesn't recognizes these custom levels and doesn't display them on the screen to be selected. In other words, you cannot play them unless you change the level selector code manually.

Since the user has the ability to create their own level, I'd like to give them the ability to actually play them. So, I'd like to update the level selector class so that it can recognize and read custom levels to display them for the user to select. This will be an automated system and will allow users to add and play as many custom levels as they want.

This is how I would update the level selector class:

  1. after the level selector reads and displays the first 8 base files, it will check if there are extra level files
  2. If not, function will return and do nothing else
  3. if there is, the level selector will treat these as custom levels and count how many there are to consider. goes to step 4
  4. once the program knows how many custom levels there are, it will divide that amount by 4(the number of levels displayed at a time) to determine how many windows to fit all custom levels goes to step 5
  5. will iterate the # of new window times to generate the new windows and display the custom levels for the user to select.
onzfonz commented 8 months ago

@JakeJayB this is OK but feels too simple compared to the other that I out the rocket emoji on I've reviewed all three now please message me on discord with any questions