Ask here your questions to get help using GDevelop.
User avatar
By erdo
#44425 I'm releasing the Group-It (http://forum.compilgames.net/viewtopic.php?f=37&t=5421) source project for petition.

Some things to take in account when take a look at my project are:

  • I think I had do my best sweeping out all unnecesary algorithms and useless variables off the project (remanents of old versions of the game) so it can look cleaner as possible.
  • I always work in english because it's a more practical (yet less elegant in my opinion) language, so the name of the variables are in english; anyways it's not my native language so there's the possibility of some variables names sounds silly, even in that case I trust the names are enough descriptive to avoid confusion.
  • The font and some graphics were changed for this version.
  • Apart of the mentioned changes, I'm releasing the source project as it is and I'm not entering in algorithm and implementation details. The project is not commented. If there is interest I can go further with a tutorial to explain why and how a specific algorithm works.
  • This game was made as part of an "optimization project" for the algorithms comomnly used in 3-match style games (example: bejeweled), although the game mechanic and goal is different, the algorithms contained in the project can be easily adapted to use with other grid-based games.
  • The game shows some lag when it runs from GD, once compiled to a native platform it will run faster.
  • As you will notice when you see the project, I use the comparison of expressions condition to evaluate the values ​​of all variables and other properties of the objects, rather than the built-in evaluation conditions for each variable or parameter type. That's because I find this condition more versatile and flexible in working terms when it comes to migrate variables due to project changes.

Example:

I use this: Image,
instead of this: Image.

Here's the project:
(18.02 KiB) Downloaded 290 times


Hope it will be useful.
User avatar
By erdo
#44562
foreverip wrote:Nice job!


Thanks! But now I realize the variabe structure based solution (for variable arrays) propossed by @victor and @4ian in the other thread (http://forum.compilgames.net/viewtopic.php?f=19&t=5448) it's cleaner than the iteration based solution of mine (although it perfectly works).

So, I'm migrating all the variables now and I'll release a new version of the project soon.
User avatar
By erdo
#44643
komencanto wrote:I like puzzles and I like to learn how to make games - so your project is a perfect combination of both. :)


Cool! Currently I'm making a ittle changes and fixing a minor bug, so I'll
update the project soon.

komencanto wrote:Recently learned NewLine() command from it. ;)


Me too! haha :D