Typos in documentation and comments (#71)

This commit is contained in:
Lukas Klingsbo
2019-04-04 16:57:38 +00:00
committed by Erick
parent fe0f1e0391
commit 580ccdecfc
13 changed files with 29 additions and 29 deletions

View File

@ -10,7 +10,7 @@ import '../anchor.dart';
/// This represents a Component for your game.
///
/// Components can be bullets flying on the screen, a spaship or your player's fighter.
/// Components can be bullets flying on the screen, a spaceship or your player's fighter.
/// Anything that either renders or updates can be added to the list on [BaseGame]. It will deal with calling those methods for you.
/// Components also have other methods that can help you out if you want to overwrite them.
abstract class Component {
@ -36,7 +36,7 @@ abstract class Component {
/// Note that for a more consistent experience, you can pre-load all your assets beforehand with Flame.images.loadAll.
bool loaded() => true;
/// Wether this should be destroyed or not.
/// Whether this should be destroyed or not.
///
/// It will be called once per component per loop, and if it returns true, [BaseGame] will mark your component for deletion and remove it before the next loop.
bool destroy() => false;