Nice tutorial, was very helpful, Can you let me know if you created the character by yourself or got from some website, I am trying to add some more animations in that spritesheet and include it in the game, If its possible, can you share the link or character editable file as svg or as aseprite file?
The collision that has been used in this tutorial is not full tile collision. I drew a rectangle in Tiled overlaying the image for the level, I then took the X,Y positions of each of the four points on the rectangle and added that to my tilemap.json file as a collision object. With that information the code can then loop through those objects, and create a collision object for each one loaded using the same coordinates (check out world collision in the project).
For a complete game, you’d load each tile in and render each tile using a tile sprite map, including the collision overlays, and create the collision objects and intractable objects at the same time. Check out a video course like this: Tiled Map Editor Tutorial Part One: The Basics - YouTube
thank you to @vguzzi for writing this excellent tutorial. It is very high quality and is a real contribution to the community. I really enjoyed learning from you.
I have a question about using the stack to overlay the GameWidget and the joystick controller.
I have been trying to figure out when to use the GameWidget Overlay instead of the Flutter stack. I am also interested in an example of the overlay that shows how to use GameWidget() as the top parent widget. The example in the source code uses dashbook and I’m not sure how to just use runApp(GameWidget())