Skip to content

Commit

Permalink
link intro from world map
Browse files Browse the repository at this point in the history
  • Loading branch information
aruhant committed Feb 7, 2024
1 parent 0fe54d0 commit 1bd48ce
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/lib/level_picker/level_slector.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import 'package:flutter/material.dart';
import 'package:ramayana/game/game_engine.dart';
import 'package:ramayana/level_picker/world_selector.dart';
import 'package:ramayana/title_screen/level_intro.dart';

class LevelSelector extends StatelessWidget {
final LevelInfo world;
Expand Down Expand Up @@ -37,7 +38,7 @@ class LevelTile extends StatelessWidget {
onPressed: () {
if (level.isAvailable) {
Navigator.of(context).pushReplacement(MaterialPageRoute(
builder: (context) => GameEngine(level: level.map!),
builder: (context) => LevelIntro(level: level.map!),
));
}
},
Expand Down

0 comments on commit 1bd48ce

Please sign in to comment.