Here we are, the real start of our game, the initiation to the Flame Engine. It’s a lightweight and modular Flutter game engine that simplifies the process of creating 2D mobile games. It allows developers to build games using the Dart programming language and the Flutter framework.

Start with Flame

To start with the Game engine, I’ve started by following the basic tutorial available on the Flame documentation. If you would like to try by yourself, I’ve gathered some interesting link to start with the Flame Engine on this blog post https://devforever.fr/oceanrangers/2024/03/12/usefull-link-flame-engine/

Adapt to our gameplay

To meet our requirement, after completing the bacical tutorial for a 2D game, I’ve basically adapted the game to our gameplay. For that, I have changed all of the load texture and adapted the gravity factor to match what could really happend in the ocean

But we can't adapt everything

After using the provided example, we had to do the rest on our own. So it was the start of some (long) week of coding to match what we wanted. And so, I’ve worked on a world generator, fish animations, randomizer, mouse control (or tactile in a mobile), and much more. I will try to make as many articles as I can before the deadline, and some more will arrive after the end of the challenge !