Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Just fixing some typos #15

Merged
merged 1 commit into from
Nov 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Just fixing some typos
  • Loading branch information
mabdelaal86 committed Nov 26, 2023
commit b1e3b60e08f97f01ac9b38858c2eee2ec33617df
4 changes: 2 additions & 2 deletions lib/game/enemy.dart
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class Enemy extends SpriteComponent
// Defaults to vertically downwards.
Vector2 moveDirection = Vector2(0, 1);

// Controls for how long enemy should be freezed.
// Controls for how long enemy should be frozen.
late Timer _freezeTimer;

// Holds an object of Random class to generate random numbers.
Expand Down Expand Up @@ -128,7 +128,7 @@ class Enemy extends SpriteComponent
}
}

// This method will destory this enemy.
// This method will destroy this enemy.
void destroy() {
// Ask audio player to play enemy destroy effect.
game.addCommand(Command<AudioPlayerComponent>(action: (audioPlayer) {
Expand Down
4 changes: 2 additions & 2 deletions lib/game/game.dart
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ class SpacescapeGame extends FlameGame
// List of commands to be processed in next update.
final _addLaterCommandList = List<Command>.empty(growable: true);

// Indicates wheater the game world has been already initilized.
// Indicates weather the game world has been already initialized.
bool _isAlreadyLoaded = false;

// Returns the size of the playable area of the game window.
Expand All @@ -67,7 +67,7 @@ class SpacescapeGame extends FlameGame
// Assets loading and adding component should be done here.
@override
Future<void> onLoad() async {
// Initilize the game world only one time.
// Initialize the game world only one time.
if (!_isAlreadyLoaded) {
// Loads and caches all the images for later use.
await images.loadAll([
Expand Down
2 changes: 1 addition & 1 deletion lib/game/power_up_manager.dart
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class PowerUpManager extends Component with HasGameReference<SpacescapeGame> {
late Timer _spawnTimer;

// Controls the amount of time for which this component
/// should be freezed when [Freeze] power is activated.
/// should be frozen when [Freeze] power is activated.
late Timer _freezeTimer;

// A random number generator.
Expand Down
Loading