Quantcast
Channel: Question and Answer » libgdx
Viewing all articles
Browse latest Browse all 434

LibGDX – Level management on a level-based game

$
0
0

I’m new to LibGDX and android development in general and am trying to do a puzzle game. Being a level-based game, i’m trying to make it so in every level a certain number of blocks (just rectangular sprites) appear in a certain position / rotation, like in the image linked below:

https://i.gyazo.com/52e6c71e1f05ab4529e0fec9d4f80bd7.png

I’ve doodled some levels already but i’m really not sure about how to make the blocks’s rearrangement over the levels.
How exactly should one manage this? As the position of the blocks won’t be random i was thinking about reading from files the information from every level (x, y, rotation, colors, etc. for every block) but to do that i would have to manually organize every level’s blocks properties information (to then save), and, considering it would have atleast 100+ levels, it would take too long… Other than that, i could have them as plain assets but having an asset for every single level doesnt’t look like an efficient solution either. Do you have any tips, please?


Viewing all articles
Browse latest Browse all 434

Trending Articles