vittorioromeo / SSVOpenHexagon

C++20 FOSS clone of "Super Hexagon". Depends on SSVStart, SSVEntitySystem, SSVLuaWrapper, SSVMenuSystem, JSONcpp, SFML2.0. Features JSON/LUA customizable game files, a soundtrack by BOSSFIGHT, pseudo-3D effects.
https://vittorioromeo.com/openhexagon.html
Other
610 stars 76 forks source link

add lua function to get scores #376

Closed Bauumm closed 2 years ago

Bauumm commented 2 years ago

This would allow for progression in level packs. I wasn't sure if you should be able to only get scores of your own pack, but since I don't think it's an issue if you can see other scores and it's easier to implement that way too, I think it's fine.

vittorioromeo commented 2 years ago

Generally not a fan of sharing state between levels, and having to manually pass level ids around sounds a bit fragile. My idea is that each level should be as independent as possible, at least right now. If we want to implement progression, we should have some better ways of doing that -- e.g. pack-based state that is customizable and retained on a per-profile basis.