Giter Site home page Giter Site logo

building-games-with-flutter's Introduction

Building Games with Flutter

Building Games with Flutter

This is the code repository for Building Games with Flutter, published by Packt.

The ultimate guide to creating multiplayer games using the Flame engine in Flutter

What is this book about?

With its powerful tools and quick implementation capabilities, Flutter provides a new way to build scalable cross-platform apps. In this book, you'll learn how to build on your knowledge and use Flutter as the foundation for creating games.

This book covers the following exciting features: <First 5 What you'll learn points>

  • Discover the Flame engine and how to use it in game programming in Flutter
  • Organize the graphics and sounds used in your game
  • Animate a sprite in your games and detect when the player collides with tiles
  • Run the game as a web page and desktop app
  • Expand our player control with key navigation

If you feel this book is for you, get your copy today!

https://www.packtpub.com/

Instructions and Navigations

All of the code is organized into folders. For example, Chapter02.

The code will look like the following:

 @override
  void render(Canvas canvas) {
    canvas.drawRect(squarePos, squarePaint); // Draw the green square on the canvas
  }

Following is what you need for this book: If you are a Flutter developer looking to apply your Flutter programming skills to games development, this book is for you. Basic knowledge of Dart will assist with understanding the concepts covered.

With the following software and hardware list you can run all code files present in the book (Chapter 1-11).

Software and Hardware List

Chapter Software required OS required
1-11 Flutter v2.8 Windows, Mac OS X, and Linux (Any)
1-11 Flame v1.0.0 Windows, Mac OS X, and Linux (Any)
1-11 Dart 2.16.x Windows, Mac OS X, and Linux (Any)

We also provide a PDF file that has color images of the screenshots/diagrams used in this book. Click here to download it.

Related products

Get to Know the Author

Paul Teale was born and raised in Leeds, West Yorkshire before moving to London to pursue a career in software engineering. He has been a software engineer for 25+ years covering backend, web, and mobile, where he has spent the last 12 years as a mobile developer covering Android and more recently Flutter. He has worked on many large projects during his career for companies like Discovery, Sky, Shazam, Visa, NBC, and Channel 5. He is a massive sci-fi fan and loves watching all the latest movies. He is happily married for the last 15 years to Mariel where they live together in West London with their son Alfie and their 2 cats.

Download a free PDF

If you have already purchased a print or Kindle version of this book, you can get a DRM-free PDF version at no cost.
Simply click on the link to claim your free PDF.

https://packt.link/free-ebook/9781801816984

building-games-with-flutter's People

Contributors

hedwards1997 avatar packt-itservice avatar pteale avatar saurabhk710 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

building-games-with-flutter's Issues

Regarding book

Hello @pteale , I am waiting for your book to understand the code in this repo., when can we expect that one?

with Loadable ???

class GoldRush with Loadable, Game{}
error getting Loadable class
Unbenannt

Flame 1.0.0

I got an error
addHitbox(HitboxRectangle());
and
renderHitboxes(canvas, paint: squarePaint);
then I changed to flame 1.5.0
and using
addHitbox(HitboxRectangle()); -> add(RectangleHitbox());
but I don't know how can change
renderHitboxes(canvas, paint: squarePaint);
into lame 1.5.0 and got an error

"message": "The named parameter 'paint' isn't defined.\nTry correcting the name to an existing named parameter's name, or defining a named parameter with the name 'paint'.",

Thanks

Missing Assets and Chapter 3

Hello, the assets needed for chapter 2 are missing from the branch related to that chapter also there isn't a branch for chapter 3, would be of great help if you update the branch of chapter 2 with the respective missing assets.

Flame package version...

I wonder if you have any plans to update the Flame package version applied to this repo to the latest version(1.6.0).
If you have a plan, when will you update it?
There is a big difference between the Flame 1.0.0 version and the current version,
and I think it is better to study the latest version as much as possible for the future.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.