Skip to content

Commit

Permalink
fix: Readme and possibility to get back to the game (#71)
Browse files Browse the repository at this point in the history
Minor fixes
  • Loading branch information
spydon authored Jul 2, 2023
1 parent 7cce617 commit a452e56
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 22 deletions.
19 changes: 5 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,7 @@
# lightrunners
# Lightrunners

A new Flutter project.
Lightrunners is a local multiplayer game built for FlutterCon 2023.
It is a king of the hill type of game where you are supposed to stay within the spotlight for as
long as possible, and keep other ships out of the spotlight by shooting or bumping into them.

## Getting Started

This project is a starting point for a Flutter application.

A few resources to get you started if this is your first Flutter project:

- [Lab: Write your first Flutter app](https://docs.flutter.dev/get-started/codelab)
- [Cookbook: Useful Flutter samples](https://docs.flutter.dev/cookbook)

For help getting started with Flutter development, view the
[online documentation](https://docs.flutter.dev/), which offers tutorials,
samples, guidance on mobile development, and a full API reference.
Enjoy!
15 changes: 9 additions & 6 deletions lib/end_game/view/end_game_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -99,12 +99,15 @@ class EndGamePage extends StatelessWidget {
],
),
OpacityBlinker(
child: Text(
'Press any button to continue',
style: TextStyle(
fontFamily: fontFamily,
fontSize: 32,
color: GamePalette.silver,
child: TextButton(
onPressed: () => Navigator.pop(context),
child: Text(
'Press any button to continue',
style: TextStyle(
fontFamily: fontFamily,
fontSize: 32,
color: GamePalette.silver,
),
),
),
),
Expand Down
1 change: 0 additions & 1 deletion lib/game/components/ship.dart
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,6 @@ class Ship extends SpriteComponent
Vector2(_random.nextBool() ? 1 : -1, _random.nextBool() ? 1 : -1),
);
angle = _random.nextDouble() * tau;
debugMode = true;
add(RectangleHitbox());
}

Expand Down
2 changes: 1 addition & 1 deletion lib/game/view/game_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class _GamePageState extends State<GamePage> {
_game = LightRunnersGame(
players: widget.players,
onEndGame: (scores) {
Navigator.of(context).push(
Navigator.of(context).pushReplacement(
EndGamePage.route(scores),
);
},
Expand Down

0 comments on commit a452e56

Please sign in to comment.