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

fix: Readme and possibility to get back to the game #71

Merged
merged 1 commit into from
Jul 2, 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
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