Getting started with Forge2D and Flame with Flutter
Author | : Andrés Cruz Yoris |
Publisher | : Andres Cruz |
Total Pages | : 141 |
Release | : |
ISBN-10 | : |
ISBN-13 | : |
Rating | : 4/5 ( Downloads) |
Book excerpt: This guide is intended to take your first steps with Forge 2D using Flame with Flutter; with this, we are going to propose two things: It is not a book that aims to know 100% Forge with Flame, or from zero to expert, since it would be too big an objective for the scope of this guide, otherwise, to know what it offers us, its main characteristics and how apply them to the development of games with 2D physics. It is assumed that the reader has at least basic knowledge in the development of Flame, Flutter and their basic technologies such as Dart. This book has a practical approach, knowing the key aspects of the technology and moving into practice, gradually implementing small features and functionalities that can be adapted to a real game. To follow this book you need to have a computer with Windows, Linux or MacOS. The book is currently in development. This book has a total of 7 chapters, it is recommended that you read in the order in which they are arranged and as we explain the fundamentals of Forge 2D with Flame based on examples; once you master the library, you can consult the sections in any order you want. Chapter 1: We will create a project in Flutter with the basic dependencies necessary to create games with Forge 2D, Flame and Flutter. Chapter 2: We will explain the basic concepts such as what Forge 2D is, bodies, their characteristics and components, applying momentum, speed or forces, body shapes, handling contact between bodies and how to interact with the Forge2D world in general. Chapter 3: We will create several small examples to present one by one the main characteristics and functionalities of Forge2D, we will see in a practical way the concepts presented in the previous chapter. Chapter 4: We will create our first real game in Forge which would be a jumping and horizontal scrolling platform game, we will see how to handle movement, jumping using linear speed in addition to using tile type maps. Chapter 5: We will create a second game where we will implement functionalities similar to Angry Birds such as positioning a bird, moving the bird in a specific radius using the drag event and adding impulses based on a resulting vector between the origin and final position. Chapter 6: We will create a third game where we will implement functionalities similar to Pinball, adding a ball, creating obstacles, creating an arm and implementing a moving goal. Chapter 7: We will create a fourth Pong-style game in which it consists of creating walls, a couple of bars and tilting the bars and walls according to the angle of impact of the ball.