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

Level Browser #13

Open
TheYellowArchitect opened this issue Aug 11, 2022 · 0 comments
Open

Level Browser #13

TheYellowArchitect opened this issue Aug 11, 2022 · 0 comments
Labels
high priority Very important, heavily influences the game, must be looked ASAP level editor Anything related to the level editor UI Anything related to User Interface (e.g. menu)

Comments

@TheYellowArchitect
Copy link
Owner

TheYellowArchitect commented Aug 11, 2022

Sharing levels is as important as making them.
Currently, you only play levels made by your friends. But the best would be for someone to make a level, and its shared globally, hence one-by-one player creating levels, true replayability is achieved. Because currently, you can literally run out of levels to play!!

I have not determined exactly how to integrate this browser into the game. Ideally, the database is accessible by more than just DoubleDamnation.exe
For example, a website storing levels uploaded by users, or steam workshop

Steam Workshop

  • Bloated to subscribe to items for a <1 minute map.
  • Bloated to code, too much event handling and setup needed for something so simple!
  • Cannot even download independently from web browser
  • Proprietary Software - Demands steam access to play the game again and again...

JS Website
Bloated as it needs JS. Remove Javascript bloat, and you get the peak of user-made sharing levels, which has a static site generator.
See https://www.epicwar.com
Given I don't have the following fields:

  • Image
  • PlayerNumber
  • Share this map

It becomes a lot simpler.
No one should be able to delete the levels (even their uploaders) except server admins ofc.

Final Implementation
MySQL. Every map submitted has an internal unique ID as its filename, hence thats how they are retrieved.
https://www.geeksforgeeks.org/retrieve-image-and-file-stored-as-a-blob-from-mysql-table-using-python/

Anyway, data url, SQL databases or whatever, having a website for this ftw!

And obviously, you can access this website's back-end from in-game with a brand new UI (themed on current level editor UI)

@TheYellowArchitect TheYellowArchitect added level editor Anything related to the level editor UI Anything related to User Interface (e.g. menu) high priority Very important, heavily influences the game, must be looked ASAP labels Aug 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
high priority Very important, heavily influences the game, must be looked ASAP level editor Anything related to the level editor UI Anything related to User Interface (e.g. menu)
Projects
None yet
Development

No branches or pull requests

1 participant