PuzzleLabyrinth
Posted: Tue Aug 20, 2013 12:56 pm
Hello everyone!
My name is Daniel Grünwald a.k.a. Xrott and I finally decided to join this nice little forum.
I've been occasionally reading some of the threads but I've never had any reason to actually post something. But now that I've finished my first game I finally have something I want to share with you.
So here it is, my first finished game:
It has the rather simple title "PuzzleLabyrinth" and isn't too complicated either (Probably has been done before also). I just wanted to do something I know I'm able to do and also something I can finish in a reasonable amount of time.
The basic rules are:
In each level there is an entrance and exit. You have to find a path from the start to the finish while having visited every tile exactly once. You cannot visit a tile a second time and you can't move from one tile to another if there is a "wall" between them.
And that's it.
I know it doesn't sound that difficult but it can get really tricky depending on the level.
For now there are 60 levels with the difficulty increasing as they go on.
I've also made an editor, so I can easily add new levels later. I only stopped at 60 because it takes some time to make new levels.
It sounds a bit weird, I know, but one of the things I wanted to show the player is, how many solutions there are to a level. However, solving such a maze takes time and resources since the computer has to take every possible path there is.
I can't exactly tell you how many possible paths such a level can have but I can say that it's a bit less than 3^n, where n is the number of tiles of a level and 3 being the three directions one can take from any tile minus the one you came from (it's actually a lot less... One of the reasons being that from some tiles you can go only in, for example, 2 directions. This number is just to give you at least some idea on how many possible paths there can be. Also with numbers so big a difference of a few billion is almost nothing...)
If you are interested in making some levels I've also uploaded the editor. Currently there is no way to add your level to the game other than editing the level.lua in the .love but you can post the resulting line here and (if there is a reasonable amount) I'll implement something like "CommunityLevels." (If you don't want to wait until your computer solves the level, you can also post it without being solved. I'll just let my computer solve it.)
I know that's maybe a bit much for such a simple game but who knows? Maybe people will like the idea?
Or I might be just a little bit too excited...
Anyway, have fun!
If you have anything to say about the game, I am very open to constructive criticism! If you want, you can also take a look at the code, but I'll tell you right away that it's a biiiig mess... I mean, I'm not really a complete beginner to programming but I'm not experienced either... Also, English is not my native language so if you find a grammatical or spelling error, feel free to tell me!
I couldn't attach the .loves here so I uploaded it to MediaFire:
Here is the game
Here is the editor
My name is Daniel Grünwald a.k.a. Xrott and I finally decided to join this nice little forum.
I've been occasionally reading some of the threads but I've never had any reason to actually post something. But now that I've finished my first game I finally have something I want to share with you.
So here it is, my first finished game:
It has the rather simple title "PuzzleLabyrinth" and isn't too complicated either (Probably has been done before also). I just wanted to do something I know I'm able to do and also something I can finish in a reasonable amount of time.
The basic rules are:
In each level there is an entrance and exit. You have to find a path from the start to the finish while having visited every tile exactly once. You cannot visit a tile a second time and you can't move from one tile to another if there is a "wall" between them.
And that's it.
I know it doesn't sound that difficult but it can get really tricky depending on the level.
For now there are 60 levels with the difficulty increasing as they go on.
I've also made an editor, so I can easily add new levels later. I only stopped at 60 because it takes some time to make new levels.
It sounds a bit weird, I know, but one of the things I wanted to show the player is, how many solutions there are to a level. However, solving such a maze takes time and resources since the computer has to take every possible path there is.
I can't exactly tell you how many possible paths such a level can have but I can say that it's a bit less than 3^n, where n is the number of tiles of a level and 3 being the three directions one can take from any tile minus the one you came from (it's actually a lot less... One of the reasons being that from some tiles you can go only in, for example, 2 directions. This number is just to give you at least some idea on how many possible paths there can be. Also with numbers so big a difference of a few billion is almost nothing...)
If you are interested in making some levels I've also uploaded the editor. Currently there is no way to add your level to the game other than editing the level.lua in the .love but you can post the resulting line here and (if there is a reasonable amount) I'll implement something like "CommunityLevels." (If you don't want to wait until your computer solves the level, you can also post it without being solved. I'll just let my computer solve it.)
I know that's maybe a bit much for such a simple game but who knows? Maybe people will like the idea?
Or I might be just a little bit too excited...
Anyway, have fun!
If you have anything to say about the game, I am very open to constructive criticism! If you want, you can also take a look at the code, but I'll tell you right away that it's a biiiig mess... I mean, I'm not really a complete beginner to programming but I'm not experienced either... Also, English is not my native language so if you find a grammatical or spelling error, feel free to tell me!
I couldn't attach the .loves here so I uploaded it to MediaFire:
Here is the game
Here is the editor