{"id":44,"date":"2024-03-12T15:48:31","date_gmt":"2024-03-12T15:48:31","guid":{"rendered":"https:\/\/devforever.fr\/oceanrangers\/?p=44"},"modified":"2024-03-12T16:09:58","modified_gmt":"2024-03-12T16:09:58","slug":"3-start-with-flame","status":"publish","type":"post","link":"https:\/\/devforever.fr\/oceanrangers\/2024\/03\/12\/3-start-with-flame\/","title":{"rendered":"3. Start with Flame"},"content":{"rendered":"<p>[et_pb_section fb_built=&#8221;1&#8243; _builder_version=&#8221;4.24.2&#8243; _module_preset=&#8221;default&#8221; custom_padding=&#8221;3px|||||&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_row _builder_version=&#8221;4.24.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_column type=&#8221;4_4&#8243; _builder_version=&#8221;4.24.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_text _builder_version=&#8221;4.24.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;]<\/p>\n<p>Here we are, the real start of our game, the initiation to the Flame Engine. It&#8217;<span>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.<\/span><\/p>\n<p>[\/et_pb_text][\/et_pb_column][\/et_pb_row][et_pb_row _builder_version=&#8221;4.24.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_column type=&#8221;4_4&#8243; _builder_version=&#8221;4.24.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_heading title=&#8221;Start with Flame&#8221; _builder_version=&#8221;4.24.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;][\/et_pb_heading][et_pb_text _builder_version=&#8221;4.24.2&#8243; _module_preset=&#8221;default&#8221; hover_enabled=&#8221;0&#8243; global_colors_info=&#8221;{}&#8221; sticky_enabled=&#8221;0&#8243;]<\/p>\n<p>To start with the Game engine, I&#8217;ve started by following the basic tutorial available on the Flame documentation. If you would like to try by yourself, I&#8217;ve gathered some interesting link to start with the Flame Engine on this blog post <a href=\"https:\/\/devforever.fr\/oceanrangers\/2024\/03\/12\/usefull-link-flame-engine\/\">https:\/\/devforever.fr\/oceanrangers\/2024\/03\/12\/usefull-link-flame-engine\/<\/a><\/p>\n<p>[\/et_pb_text][\/et_pb_column][\/et_pb_row][et_pb_row _builder_version=&#8221;4.24.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_column type=&#8221;4_4&#8243; _builder_version=&#8221;4.24.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_heading title=&#8221;Adapt to our gameplay&#8221; _builder_version=&#8221;4.24.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;][\/et_pb_heading][et_pb_text _builder_version=&#8221;4.24.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;]<\/p>\n<p>To meet our requirement, after completing the bacical tutorial for a 2D game, I&#8217;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<\/p>\n<p>[\/et_pb_text][\/et_pb_column][\/et_pb_row][et_pb_row _builder_version=&#8221;4.24.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_column type=&#8221;4_4&#8243; _builder_version=&#8221;4.24.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_heading title=&#8221;But we can&#8217;t adapt everything&#8221; _builder_version=&#8221;4.24.2&#8243; _module_preset=&#8221;default&#8221; hover_enabled=&#8221;0&#8243; global_colors_info=&#8221;{}&#8221; sticky_enabled=&#8221;0&#8243;][\/et_pb_heading][et_pb_text _builder_version=&#8221;4.24.2&#8243; _module_preset=&#8221;default&#8221; hover_enabled=&#8221;0&#8243; global_colors_info=&#8221;{}&#8221; sticky_enabled=&#8221;0&#8243;]<\/p>\n<p>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&#8217;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 !<\/p>\n<p>[\/et_pb_text][\/et_pb_column][\/et_pb_row][\/et_pb_section]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Flame Engine will help us create game, let&#8217;s get started !<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_et_pb_use_builder":"on","_et_pb_old_content":"","_et_gb_content_width":"","footnotes":""},"categories":[3],"tags":[],"class_list":["post-44","post","type-post","status-publish","format-standard","hentry","category-our-game-creation"],"_links":{"self":[{"href":"https:\/\/devforever.fr\/oceanrangers\/wp-json\/wp\/v2\/posts\/44","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devforever.fr\/oceanrangers\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devforever.fr\/oceanrangers\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devforever.fr\/oceanrangers\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/devforever.fr\/oceanrangers\/wp-json\/wp\/v2\/comments?post=44"}],"version-history":[{"count":6,"href":"https:\/\/devforever.fr\/oceanrangers\/wp-json\/wp\/v2\/posts\/44\/revisions"}],"predecessor-version":[{"id":89,"href":"https:\/\/devforever.fr\/oceanrangers\/wp-json\/wp\/v2\/posts\/44\/revisions\/89"}],"wp:attachment":[{"href":"https:\/\/devforever.fr\/oceanrangers\/wp-json\/wp\/v2\/media?parent=44"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devforever.fr\/oceanrangers\/wp-json\/wp\/v2\/categories?post=44"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devforever.fr\/oceanrangers\/wp-json\/wp\/v2\/tags?post=44"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}