Skip to content
This repository has been archived by the owner on Mar 6, 2024. It is now read-only.

Commit

Permalink
chore: dash run > super dash (#177)
Browse files Browse the repository at this point in the history
  • Loading branch information
erickzanardo authored Nov 30, 2023
1 parent 9233bd6 commit 5c27d5c
Show file tree
Hide file tree
Showing 62 changed files with 212 additions and 203 deletions.
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Dash Run
# Super Dash

![coverage][coverage_badge]
[![style: very good analysis][very_good_analysis_badge]][very_good_analysis_link]
Expand All @@ -10,6 +10,10 @@ A Very Good Platformer Game generated by Very Good CLI.

---

## Play the game 🎮

[Play directly](https://superdash.flutter.dev/) in your desktop browser, or download the application for [Android](https://play.google.com/store/apps/details?id=com.verygoodventures.super_dash) and [iOS](https://apps.apple.com/app/super-dash-flutter-game/id6473050393).

## Getting Started 🚀

This project contains 3 flavors:
Expand All @@ -31,7 +35,7 @@ $ flutter run --flavor staging --target lib/main_staging.dart
$ flutter run --flavor production --target lib/main_production.dart
```

_\*Dash Run works on iOS, Android, Web, and Windows._
_\*Super Dash works on iOS, Android, Web, and Windows._

---

Expand Down
14 changes: 7 additions & 7 deletions lib/app/view/app.dart
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
import 'package:app_ui/app_ui.dart';
import 'package:authentication_repository/authentication_repository.dart';
import 'package:dash_run/app_lifecycle/app_lifecycle.dart';
import 'package:dash_run/audio/audio.dart';
import 'package:dash_run/game_intro/game_intro.dart';
import 'package:dash_run/l10n/l10n.dart';
import 'package:dash_run/map_tester/map_tester.dart';
import 'package:dash_run/settings/settings.dart';
import 'package:dash_run/share/share.dart';
import 'package:flutter/material.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
import 'package:leaderboard_repository/leaderboard_repository.dart';
import 'package:super_dash/app_lifecycle/app_lifecycle.dart';
import 'package:super_dash/audio/audio.dart';
import 'package:super_dash/game_intro/game_intro.dart';
import 'package:super_dash/l10n/l10n.dart';
import 'package:super_dash/map_tester/map_tester.dart';
import 'package:super_dash/settings/settings.dart';
import 'package:super_dash/share/share.dart';

class App extends StatelessWidget {
const App({
Expand Down
4 changes: 2 additions & 2 deletions lib/audio/audio.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
import 'dart:collection';

import 'package:audioplayers/audioplayers.dart';
import 'package:dash_run/audio/songs.dart';
import 'package:dash_run/settings/settings_controller.dart';
import 'package:flutter/foundation.dart';
import 'package:flutter/widgets.dart';
import 'package:logging/logging.dart';
import 'package:super_dash/audio/songs.dart';
import 'package:super_dash/settings/settings_controller.dart';

typedef CreateAudioPlayer = AudioPlayer Function({required String playerId});

Expand Down
2 changes: 1 addition & 1 deletion lib/game/behaviors/player_controller_behavior.dart
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import 'dart:async';

import 'package:dash_run/game/game.dart';
import 'package:flame_behaviors/flame_behaviors.dart';
import 'package:flutter/widgets.dart';
import 'package:super_dash/game/game.dart';

class PlayerControllerBehavior extends Behavior<Player> {
@visibleForTesting
Expand Down
2 changes: 1 addition & 1 deletion lib/game/behaviors/player_state_behavior.dart
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import 'dart:async';
import 'dart:ui';

import 'package:dash_run/game/game.dart';
import 'package:flame/components.dart';
import 'package:flame/effects.dart';
import 'package:flame_behaviors/flame_behaviors.dart';
import 'package:super_dash/game/game.dart';

enum DashState {
idle,
Expand Down
5 changes: 3 additions & 2 deletions lib/game/components/item_effect.dart
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import 'dart:async';

import 'package:dash_run/game/game.dart';
import 'package:flame/components.dart';
import 'package:super_dash/game/game.dart';

class ItemEffect extends SpriteAnimationComponent with HasGameRef<DashRunGame> {
class ItemEffect extends SpriteAnimationComponent
with HasGameRef<SuperDashGame> {
ItemEffect({
required this.type,
super.position,
Expand Down
4 changes: 2 additions & 2 deletions lib/game/components/object_group_proximity_spawner.dart
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
import 'dart:async';
import 'dart:ui';

import 'package:dash_run/game/dash_run_game.dart';
import 'package:flame/components.dart';
import 'package:flame_tiled/flame_tiled.dart';
import 'package:ordered_set/comparing.dart';
import 'package:ordered_set/ordered_set.dart';
import 'package:super_dash/game/game.dart';

typedef ObjectGroupProximitySpawner = PositionComponent Function({
required TiledObject tiledObject,
});

class ObjectGroupProximityBuilder<Reference extends PositionComponent>
extends Component with HasGameRef<DashRunGame> {
extends Component with HasGameRef<SuperDashGame> {
ObjectGroupProximityBuilder({
required this.proximity,
required this.tileLayerName,
Expand Down
4 changes: 2 additions & 2 deletions lib/game/components/tree_sign.dart
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import 'dart:async';
import 'dart:ui';

import 'package:dash_run/game/dash_run_game.dart';
import 'package:flame/components.dart';
import 'package:flame/text.dart';
import 'package:super_dash/game/super_dash_game.dart';

class TreeSign extends TextComponent with HasGameRef<DashRunGame> {
class TreeSign extends TextComponent with HasGameRef<SuperDashGame> {
TreeSign({
super.position,
}) : super(
Expand Down
4 changes: 2 additions & 2 deletions lib/game/components/treehouse_front.dart
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
import 'dart:ui';

import 'package:dash_run/game/dash_run_game.dart';
import 'package:flame/components.dart';
import 'package:flutter/material.dart';
import 'package:super_dash/game/super_dash_game.dart';

typedef TreeHouseFrontRender = void Function(
Canvas canvas,
CameraComponent camera,
);

class TreeHouseFront extends PositionComponent with HasGameRef<DashRunGame> {
class TreeHouseFront extends PositionComponent with HasGameRef<SuperDashGame> {
TreeHouseFront({
required this.renderFront,
}) : super(priority: 1000, position: Vector2(0, 0));
Expand Down
4 changes: 2 additions & 2 deletions lib/game/entities/enemy.dart
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import 'package:dash_run/game/game.dart';
import 'package:flame/components.dart';
import 'package:flame_tiled/flame_tiled.dart';
import 'package:flutter/material.dart';
import 'package:leap/leap.dart';
import 'package:pathxp/pathxp.dart';
import 'package:super_dash/game/game.dart';

enum EnemyType {
bettle,
Expand Down Expand Up @@ -32,7 +32,7 @@ enum EnemyType {
}
}

class Enemy extends PhysicalEntity<DashRunGame> {
class Enemy extends PhysicalEntity<SuperDashGame> {
Enemy({
required this.tiledObject,
this.enemyDamage = 1,
Expand Down
4 changes: 2 additions & 2 deletions lib/game/entities/item.dart
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import 'dart:async';

import 'package:dash_run/game/dash_run_game.dart';
import 'package:flame/components.dart';
import 'package:flame/effects.dart';
import 'package:flame_tiled/flame_tiled.dart';
import 'package:flutter/material.dart';
import 'package:leap/leap.dart';
import 'package:super_dash/game/super_dash_game.dart';

enum ItemType {
acorn(10),
Expand All @@ -26,7 +26,7 @@ enum ItemType {
}
}

class Item extends PhysicalEntity<DashRunGame> {
class Item extends PhysicalEntity<SuperDashGame> {
Item({
required this.tiledObject,
}) : super(static: true, collisionType: CollisionType.standard);
Expand Down
6 changes: 3 additions & 3 deletions lib/game/entities/player.dart
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import 'dart:async';

import 'package:dash_run/audio/audio.dart';
import 'package:dash_run/game/game.dart';
import 'package:flame/components.dart';
import 'package:flame/effects.dart';
import 'package:flame_tiled/flame_tiled.dart';
import 'package:flutter/widgets.dart';
import 'package:leap/leap.dart';
import 'package:super_dash/audio/audio.dart';
import 'package:super_dash/game/game.dart';

class Player extends JumperCharacter<DashRunGame> {
class Player extends JumperCharacter<SuperDashGame> {
Player({
required this.levelSize,
required this.cameraViewport,
Expand Down
2 changes: 1 addition & 1 deletion lib/game/game.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
export 'behaviors/behaviors.dart';
export 'bloc/game_bloc.dart';
export 'components/components.dart';
export 'dash_run_game.dart';
export 'entities/entities.dart';
export 'super_dash_game.dart';
export 'view/view.dart';
export 'widgets/widgets.dart';
10 changes: 5 additions & 5 deletions lib/game/dash_run_game.dart → lib/game/super_dash_game.dart
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
import 'dart:async';
import 'dart:ui' as ui;

import 'package:dash_run/audio/audio.dart';
import 'package:dash_run/game/game.dart';
import 'package:dash_run/score/score.dart';
import 'package:flame/cache.dart';
import 'package:flame/components.dart';
import 'package:flame/events.dart';
Expand All @@ -14,6 +11,9 @@ import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:leap/leap.dart';
import 'package:super_dash/audio/audio.dart';
import 'package:super_dash/game/game.dart';
import 'package:super_dash/score/score.dart';

bool _tsxPackingFilter(Tileset tileset) {
return !(tileset.source ?? '').startsWith('anim');
Expand All @@ -25,9 +25,9 @@ Paint _layerPaintFactory(double opacity) {
..isAntiAlias = false;
}

class DashRunGame extends LeapGame
class SuperDashGame extends LeapGame
with TapDetector, HasKeyboardHandlerComponents {
DashRunGame({
SuperDashGame({
required this.gameBloc,
required this.audioController,
this.customBundle,
Expand Down
8 changes: 4 additions & 4 deletions lib/game/view/game_view.dart
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import 'package:dash_run/audio/audio.dart';
import 'package:dash_run/game/game.dart';
import 'package:dash_run/game_intro/game_intro.dart';
import 'package:flame/game.dart';
import 'package:flutter/material.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
import 'package:super_dash/audio/audio.dart';
import 'package:super_dash/game/game.dart';
import 'package:super_dash/game_intro/game_intro.dart';

class Game extends StatelessWidget {
const Game({super.key});
Expand Down Expand Up @@ -35,7 +35,7 @@ class GameView extends StatelessWidget {
GameWidget.controlled(
loadingBuilder: (context) => const GameBackground(),
backgroundBuilder: (context) => const GameBackground(),
gameFactory: () => DashRunGame(
gameFactory: () => SuperDashGame(
gameBloc: context.read<GameBloc>(),
audioController: context.read<AudioController>(),
),
Expand Down
2 changes: 1 addition & 1 deletion lib/game/widgets/game_background.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import 'package:dash_run/gen/assets.gen.dart';
import 'package:flutter/material.dart';
import 'package:super_dash/gen/assets.gen.dart';

class GameBackground extends StatelessWidget {
const GameBackground({super.key});
Expand Down
6 changes: 3 additions & 3 deletions lib/game/widgets/score_label.dart
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import 'package:app_ui/app_ui.dart';
import 'package:dash_run/game/bloc/game_bloc.dart';
import 'package:dash_run/gen/assets.gen.dart';
import 'package:dash_run/l10n/l10n.dart';
import 'package:flutter/material.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
import 'package:super_dash/game/bloc/game_bloc.dart';
import 'package:super_dash/gen/assets.gen.dart';
import 'package:super_dash/l10n/l10n.dart';

class ScoreLabel extends StatelessWidget {
const ScoreLabel({super.key});
Expand Down
2 changes: 1 addition & 1 deletion lib/game/widgets/tap_to_jump_overlay.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import 'package:dash_run/l10n/l10n.dart';
import 'package:flutter/material.dart';
import 'package:super_dash/l10n/l10n.dart';

class TapToJumpOverlay extends StatelessWidget {
const TapToJumpOverlay({super.key});
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import 'dart:ui' as ui;

import 'package:app_ui/app_ui.dart';
import 'package:dash_run/game_intro/game_intro.dart';
import 'package:dash_run/gen/assets.gen.dart';
import 'package:dash_run/l10n/l10n.dart';
import 'package:dash_run/utils/utils.dart';
import 'package:equatable/equatable.dart';
import 'package:flutter/material.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
import 'package:super_dash/game_intro/game_intro.dart';
import 'package:super_dash/gen/assets.gen.dart';
import 'package:super_dash/l10n/l10n.dart';
import 'package:super_dash/utils/utils.dart';

class GameInstruction extends Equatable {
const GameInstruction({
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import 'package:app_ui/app_ui.dart';
import 'package:dash_run/game_intro/game_instructions/game_instructions.dart';
import 'package:flutter/material.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
import 'package:super_dash/game_intro/game_instructions/game_instructions.dart';

class GameInstructionNavigationControls extends StatelessWidget {
const GameInstructionNavigationControls({
Expand Down
6 changes: 3 additions & 3 deletions lib/game_intro/view/game_info_dialog.dart
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import 'dart:ui';

import 'package:app_ui/app_ui.dart';
import 'package:dash_run/constants/constants.dart';
import 'package:dash_run/gen/assets.gen.dart';
import 'package:dash_run/l10n/l10n.dart';
import 'package:flutter/gestures.dart';
import 'package:flutter/material.dart';
import 'package:super_dash/constants/constants.dart';
import 'package:super_dash/gen/assets.gen.dart';
import 'package:super_dash/l10n/l10n.dart';
import 'package:url_launcher/url_launcher_string.dart';

class GameInfoDialog extends StatelessWidget {
Expand Down
10 changes: 5 additions & 5 deletions lib/game_intro/view/game_intro_page.dart
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import 'package:app_ui/app_ui.dart';
import 'package:dash_run/constants/constants.dart';
import 'package:dash_run/game/game.dart';
import 'package:dash_run/game_intro/game_intro.dart';
import 'package:dash_run/gen/assets.gen.dart';
import 'package:dash_run/l10n/l10n.dart';
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'package:super_dash/constants/constants.dart';
import 'package:super_dash/game/game.dart';
import 'package:super_dash/game_intro/game_intro.dart';
import 'package:super_dash/gen/assets.gen.dart';
import 'package:super_dash/l10n/l10n.dart';
import 'package:url_launcher/url_launcher.dart';

class GameIntroPage extends StatefulWidget {
Expand Down
6 changes: 3 additions & 3 deletions lib/game_intro/widgets/bottom_bar.dart
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import 'package:dash_run/constants/constants.dart';
import 'package:dash_run/game_intro/game_intro.dart';
import 'package:dash_run/l10n/l10n.dart';
import 'package:flutter/gestures.dart';
import 'package:flutter/material.dart';
import 'package:super_dash/constants/constants.dart';
import 'package:super_dash/game_intro/game_intro.dart';
import 'package:super_dash/l10n/l10n.dart';
import 'package:url_launcher/url_launcher_string.dart';

class BottomBar extends StatelessWidget {
Expand Down
6 changes: 3 additions & 3 deletions lib/game_intro/widgets/game_intro_buttons.dart
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import 'package:app_ui/app_ui.dart';
import 'package:dash_run/game_intro/game_intro.dart';
import 'package:dash_run/leaderboard/leaderboard.dart';
import 'package:dash_run/settings/settings_controller.dart';
import 'package:flutter/material.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
import 'package:font_awesome_flutter/font_awesome_flutter.dart';
import 'package:super_dash/game_intro/game_intro.dart';
import 'package:super_dash/leaderboard/leaderboard.dart';
import 'package:super_dash/settings/settings_controller.dart';

class AudioButton extends StatelessWidget {
const AudioButton({super.key});
Expand Down
Loading

0 comments on commit 5c27d5c

Please sign in to comment.