Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
(1 edit)

Cheers David, past few days have been productive, I've added a solver to the proceedings, basically, checks if a level is completable when editing it in the tile map editor, and also, I'm using it to "auto play" the level when in game mode.


The solver uses Breadth-First Search (BFS) to find the shortest solution.
This is the reference material I used, and fudged it into BambooBasic to work with the spinny mechanics and stuff:

https://github.com/RajPShinde/8-Puzzle-BFS_Algorithm

Brill reference to get going on the subject.

The difference between BFS and DFS (Depth-First Search, which I also looked at) is that BFS explores all 1-move solutions, then all 2-move solutions, then all 3-move solutions, etc. This guarantees that the first solution found is the shortest possible. A little slower apparently, but in regards to this, it doesnt matter about the speed.

Works a treat! :)

Dabzy

I see. Well done!!! The development progress of this computer game is going very well.

It's going lovely, trapped some bugs as well, so, bonus for that! :)

Though, it does help when you know the engine too, like, I've learnt it by making it, which, again, is what I did it for really... it's mine! :D

Currently doing a bit mundane work on it, like, area map screens, which you click a level to play:



Very basic as you can see, but it works, complete a level, and it unlocks the next level, complete the levels in the area, and you can move on to the next area. Loads of spit and polish required, but, I'm only going to start that when I've got all the levels in, currently looking at 5 areas with 10 levels in each.

I'm also going to implement the 3-star system for each level... Complete the grid, 1*, complete grid and open chest, 2*, complete grid, open chest and, do something else (Havent thought about that one yet, lol) and you 3* the level.

I reckon most of the development time after this will be asset based stuff, I can rattle through code, media wise, it's more of a drag for me really, pooling stuff together that fits and all that... This is what ultimately kills any of my projects, but, I'm keen to get this finished and a decent level of shininess so it highlights what BambooBasic can do!

Dabzy 

Hello!

 "........ a decent level of shininess so it highlights what BambooBasic can do!" <----- Correct!!! Yeah! Let the BASIC enthusiasts realize that the language is similar to a modern version of Blitz3D.