diff --git a/assets/audio/sfx/bug_chomp.mp3 b/assets/audio/sfx/bug_chomp.mp3 deleted file mode 100644 index e19a62d..0000000 Binary files a/assets/audio/sfx/bug_chomp.mp3 and /dev/null differ diff --git a/assets/audio/sfx/bug_death1.mp3 b/assets/audio/sfx/bug_death1.mp3 new file mode 100644 index 0000000..4a6f502 Binary files /dev/null and b/assets/audio/sfx/bug_death1.mp3 differ diff --git a/assets/audio/sfx/button_click.mp3 b/assets/audio/sfx/button_click.mp3 new file mode 100644 index 0000000..eff2b70 Binary files /dev/null and b/assets/audio/sfx/button_click.mp3 differ diff --git a/assets/audio/sfx/fall_death.mp3 b/assets/audio/sfx/fall_death.mp3 deleted file mode 100644 index 0bffb16..0000000 Binary files a/assets/audio/sfx/fall_death.mp3 and /dev/null differ diff --git a/assets/audio/sfx/fall_death_speed.mp3 b/assets/audio/sfx/fall_death_speed.mp3 new file mode 100644 index 0000000..986aee3 Binary files /dev/null and b/assets/audio/sfx/fall_death_speed.mp3 differ diff --git a/assets/audio/sfx/fireworks.mp3 b/assets/audio/sfx/fireworks.mp3 new file mode 100644 index 0000000..716b377 Binary files /dev/null and b/assets/audio/sfx/fireworks.mp3 differ diff --git a/assets/audio/sfx/jet_boost.mp3 b/assets/audio/sfx/jet_boost.mp3 index 78930ab..98e3990 100644 Binary files a/assets/audio/sfx/jet_boost.mp3 and b/assets/audio/sfx/jet_boost.mp3 differ diff --git a/assets/audio/sfx/land.mp3 b/assets/audio/sfx/land.mp3 new file mode 100644 index 0000000..ae8be57 Binary files /dev/null and b/assets/audio/sfx/land.mp3 differ diff --git a/assets/audio/sfx/laser.mp3 b/assets/audio/sfx/laser.mp3 new file mode 100644 index 0000000..80c21c8 Binary files /dev/null and b/assets/audio/sfx/laser.mp3 differ diff --git a/assets/audio/sfx/shield.mp3 b/assets/audio/sfx/shield.mp3 new file mode 100644 index 0000000..a2e943b Binary files /dev/null and b/assets/audio/sfx/shield.mp3 differ diff --git a/assets/images/runner/death1/death10082.png b/assets/images/runner/death1/death10082.png new file mode 100644 index 0000000..b19c51b Binary files /dev/null and b/assets/images/runner/death1/death10082.png differ diff --git a/flutter_01.sksl.json b/flutter_01.sksl.json new file mode 100644 index 0000000..58da1dc --- /dev/null +++ b/flutter_01.sksl.json @@ -0,0 +1 @@ +{"platform":"android","name":"Pixel 2 XL","engineRevision":"6ac856380fa4f66469552ce986edf59f65f7cd68","data":{"BWIASAAAAQAAAAABCYIR7777AAOAAAAAAAAAAAAAZAAQAAAACAAAAAEASAAQAAAA":"BwAAAExTS1OaAQAAI2V4dGVuc2lvbiBHTF9OVl9zaGFkZXJfbm9wZXJzcGVjdGl2ZV9pbnRlcnBvbGF0aW9uOiByZXF1aXJlCnVuaWZvcm0gZmxvYXQ0IHNrX1JUQWRqdXN0OwppbiBmbG9hdDIgaW5Qb3NpdGlvbjsKaW4gaGFsZjQgaW5Db2xvcjsKaW4gaGFsZiBpbkNvdmVyYWdlOwpub3BlcnNwZWN0aXZlIG91dCBoYWxmNCB2Y29sb3JfU3RhZ2UwOwp2b2lkIG1haW4oKSAKewoJLy8gUHJpbWl0aXZlIFByb2Nlc3NvciBEZWZhdWx0R2VvbWV0cnlQcm9jZXNzb3IKCWhhbGY0IGNvbG9yID0gaW5Db2xvcjsKCWNvbG9yID0gY29sb3IgKiBpbkNvdmVyYWdlOwoJdmNvbG9yX1N0YWdlMCA9IGNvbG9yOwoJZmxvYXQyIF90bXBfMV9pblBvc2l0aW9uID0gaW5Qb3NpdGlvbjsKCXNrX1Bvc2l0aW9uID0gX3RtcF8xX2luUG9zaXRpb24ueHkwMTsKfQoAAAAAAAAAAAAAAAAAAIUBAAAjZXh0ZW5zaW9uIEdMX05WX3NoYWRlcl9ub3BlcnNwZWN0aXZlX2ludGVycG9sYXRpb246IHJlcXVpcmUKbm9wZXJzcGVjdGl2ZSBpbiBoYWxmNCB2Y29sb3JfU3RhZ2UwOwpvdXQgaGFsZjQgc2tfRnJhZ0NvbG9yOwp2b2lkIG1haW4oKSAKew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fU3RhZ2UwOwpvdXQgaGFsZjQgc2tfRnJhZ0NvbG9yOwp2b2lkIG1haW4oKSAKewoJLy8gU3RhZ2UgMCwgRGVmYXVsdEdlb21ldHJ5UHJvY2Vzc29yCgloYWxmNCBvdXRwdXRDb2xvcl9TdGFnZTA7CglvdXRwdXRDb2xvcl9TdGFnZTAgPSB1Q29sb3JfU3RhZ2UwOwoJY29uc3QgaGFsZjQgb3V0cHV0Q292ZXJhZ2VfU3RhZ2UwID0gaGFsZjQoMSk7Cgl7CgkJLy8gWGZlciBQcm9jZXNzb3I6IFBvcnRlciBEdWZmCgkJc2tfRnJhZ0NvbG9yID0gb3V0cHV0Q29sb3JfU3RhZ2UwICogb3V0cHV0Q292ZXJhZ2VfU3RhZ2UwOwoJfQp9CgAAAAABAAAAAQAAAAAAAAAAAAAAAAAAAAEAAAAKAAAAaW5Qb3NpdGlvbgAAAQAAAAAAAAA="}} \ No newline at end of file diff --git a/lib/firework.dart b/lib/firework.dart index 98df1ea..6ec3b4f 100644 --- a/lib/firework.dart +++ b/lib/firework.dart @@ -4,6 +4,8 @@ import 'package:firo_runner/main.dart'; import 'package:flame/components.dart'; import 'package:flame/extensions.dart'; import 'package:flame/flame.dart'; +import 'package:flame_audio/flame_audio.dart'; +import 'package:audioplayers/src/api/player_mode.dart'; enum FireworkState { normal } @@ -108,6 +110,8 @@ class Firework extends Component { message = messages.elementAt(random.nextInt(messages.length)); sprite1.animation!.reset(); sprite2.animation!.reset(); + FlameAudio.audioCache + .play("sfx/fireworks.mp3", volume: 0.75, mode: PlayerMode.LOW_LATENCY); } void resize(Vector2 newSize, double xRatio, double yRatio) { diff --git a/lib/lose_menu_overlay.dart b/lib/lose_menu_overlay.dart index 7f11780..4f8b789 100644 --- a/lib/lose_menu_overlay.dart +++ b/lib/lose_menu_overlay.dart @@ -3,6 +3,8 @@ import 'package:flutter/material.dart'; import 'main.dart'; +import 'package:audioplayers/src/api/player_mode.dart'; + class LoseMenuOverlay extends StatelessWidget { const LoseMenuOverlay({ Key? key, @@ -63,8 +65,10 @@ class LoseMenuOverlay extends StatelessWidget { ), ), // ), - onPressed: () { + onPressed: () async { // Go to the Main Menu + await FlameAudio.audioCache.play('sfx/button_click.mp3', + mode: PlayerMode.LOW_LATENCY); game.mainMenu(); }, ), @@ -94,6 +98,8 @@ class LoseMenuOverlay extends StatelessWidget { ), // ), onPressed: () async { + await FlameAudio.audioCache.play('sfx/button_click.mp3', + mode: PlayerMode.LOW_LATENCY); game.runner.friend = await FlameAudio.audioCache .loop('sfx/robot_friend_beep.mp3'); game.reset(); diff --git a/lib/main.dart b/lib/main.dart index c83cf2f..11a6075 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -150,14 +150,19 @@ class MyGame extends BaseGame with PanDetector, TapDetector, KeyboardEvents { FlameAudio.bgm.initialize(); await FlameAudio.audioCache.loadAll([ - 'sfx/bug_chomp.mp3', 'sfx/coin_catch.mp3', - 'sfx/fall_death.mp3', 'sfx/glitch_death.mp3', 'sfx/jet_boost.mp3', 'sfx/menu_button.mp3', 'sfx/obstacle_death.mp3', 'sfx/robot_friend_beep.mp3', + 'sfx/button_click.mp3', + 'sfx/land.mp3', + 'sfx/laser.mp3', + 'sfx/shield.mp3', + 'sfx/bug_death1.mp3', + 'sfx/fireworks.mp3', + 'sfx/fall_death_speed.mp3', 'Infinite_Menu.mp3', 'Infinite_Spankage_M.mp3', ]); diff --git a/lib/main_menu_overlay.dart b/lib/main_menu_overlay.dart index 78b72d3..5f6500e 100644 --- a/lib/main_menu_overlay.dart +++ b/lib/main_menu_overlay.dart @@ -1,6 +1,7 @@ import 'package:flame_audio/flame_audio.dart'; import 'package:flutter/material.dart'; +import 'package:audioplayers/src/api/player_mode.dart'; import 'main.dart'; class MainMenuOverlay extends StatelessWidget { @@ -66,12 +67,15 @@ class MainMenuOverlay extends StatelessWidget { // ), onPressed: () async { // Go to the Main Menu - FlameAudio.audioCache.play('sfx/menu_button.mp3'); + FlameAudio.audioCache.play('sfx/menu_button.mp3', + mode: PlayerMode.LOW_LATENCY); game.reset(); FlameAudio.bgm.stop(); FlameAudio.bgm.play('Infinite_Spankage_M.mp3'); - game.runner.friend = await FlameAudio.audioCache - .loop('sfx/robot_friend_beep.mp3'); + game.runner.friend = await FlameAudio.audioCache.loop( + 'sfx/robot_friend_beep.mp3', + volume: 0.25, + mode: PlayerMode.LOW_LATENCY); }, ), // MaterialButton( @@ -98,6 +102,7 @@ class MainMenuOverlay extends StatelessWidget { // // ), // onPressed: () { // // Show QR code + // await FlameAudio.audioCache.play('sfx/button_click.mp3', mode: PlayerMode.LOW_LATENCY); // }, // ), // MaterialButton( @@ -124,6 +129,7 @@ class MainMenuOverlay extends StatelessWidget { // // ), // onPressed: () { // // Show QR code + // await FlameAudio.audioCache.play('sfx/button_click.mp3', mode: PlayerMode.LOW_LATENCY); // }, // ), ], diff --git a/lib/runner.dart b/lib/runner.dart index a224e32..8b3d513 100644 --- a/lib/runner.dart +++ b/lib/runner.dart @@ -10,6 +10,7 @@ import 'package:flame/components.dart'; import 'package:flame/image_composition.dart'; import 'package:flame_audio/flame_audio.dart'; import 'package:flutter/animation.dart'; +import 'package:audioplayers/src/api/player_mode.dart'; enum RunnerState { run, @@ -37,7 +38,7 @@ class Runner extends Component with HasGameRef { var runnerPosition = Vector2(0, 0); late Vector2 runnerSize; bool dead = false; - late var boost = null; + late Future boost; late var friend = null; void setUp() { @@ -81,7 +82,7 @@ class Runner extends Component with HasGameRef { level = (sprite.position.y / gameRef.blockSize).round(); } - Future event(String event) async { + void event(String event) { if (gameRef.gameState.isPaused) { return; } @@ -109,7 +110,7 @@ class Runner extends Component with HasGameRef { break; } previousState = runnerState; - clearEffects(); + clearEffects(keepSounds: true); if (level - 1 < 0) { break; } @@ -152,6 +153,8 @@ class Runner extends Component with HasGameRef { case "kick": previousState = runnerState; runnerState = event; + boost = FlameAudio.audioCache + .play('sfx/laser.mp3', volume: 1.0, mode: PlayerMode.LOW_LATENCY); switch (gameRef.gameState.getRobotLevel()) { case 3: sprite.current = RunnerState.kick3; @@ -172,6 +175,8 @@ class Runner extends Component with HasGameRef { case "float": previousState = runnerState; runnerState = event; + boost = FlameAudio.audioCache.play('sfx/jet_boost.mp3', + volume: 0.25, mode: PlayerMode.LOW_LATENCY); switch (gameRef.gameState.getRobotLevel()) { case 3: sprite.current = RunnerState.float3; @@ -183,14 +188,13 @@ class Runner extends Component with HasGameRef { sprite.current = RunnerState.float; break; } - boost = await FlameAudio.audioCache.play('sfx/jet_boost.mp3'); sprite.addEffect(MoveEffect( path: [sprite.position], duration: 1.5, curve: Curves.ease, onComplete: () { updateLevel(); - boost.stop(); + // boost.stop(); if (onTopOfPlatform()) { this.event("run"); } else { @@ -202,6 +206,8 @@ class Runner extends Component with HasGameRef { case "duck": previousState = runnerState; runnerState = event; + boost = FlameAudio.audioCache + .play('sfx/shield.mp3', volume: 0.25, mode: PlayerMode.LOW_LATENCY); switch (gameRef.gameState.getRobotLevel()) { case 3: sprite.current = RunnerState.duck3; @@ -218,6 +224,10 @@ class Runner extends Component with HasGameRef { duration: 1.5, curve: Curves.linear, onComplete: () { + if (boost != null) { + boost.then((value) => value.stop()); + } + // boost.stop(); this.event("run"); }, )); @@ -226,7 +236,8 @@ class Runner extends Component with HasGameRef { if (dead) { return; } - await FlameAudio.audioCache.play('sfx/fall_death.mp3'); + FlameAudio.audioCache.play('sfx/fall_death_speed.mp3', + volume: 0.5, mode: PlayerMode.LOW_LATENCY); previousState = runnerState; clearEffects(); runnerState = event; @@ -240,7 +251,8 @@ class Runner extends Component with HasGameRef { if (dead) { return; } - await FlameAudio.audioCache.play('sfx/fall_death.mp3'); + FlameAudio.audioCache.play('sfx/fall_death_speed.mp3', + volume: 0.5, mode: PlayerMode.LOW_LATENCY); previousState = runnerState; clearEffects(); runnerState = event; @@ -254,7 +266,8 @@ class Runner extends Component with HasGameRef { if (dead) { return; } - await FlameAudio.play('sfx/glitch_death.mp3'); + FlameAudio.audioCache.play('sfx/glitch_death.mp3', + volume: 0.5, mode: PlayerMode.LOW_LATENCY); previousState = runnerState; clearEffects(); runnerState = event; @@ -292,6 +305,8 @@ class Runner extends Component with HasGameRef { onComplete: () { updateLevel(); if (onTopOfPlatform()) { + FlameAudio.audioCache + .play('sfx/land.mp3', mode: PlayerMode.LOW_LATENCY); event("run"); } else { event("fall"); @@ -309,6 +324,8 @@ class Runner extends Component with HasGameRef { curve: Curves.ease, onComplete: () { updateLevel(); + FlameAudio.audioCache + .play('sfx/land.mp3', mode: PlayerMode.LOW_LATENCY); if (onTopOfPlatform()) { event("run"); } else { @@ -380,6 +397,8 @@ class Runner extends Component with HasGameRef { if (onTopOfPlatform()) { updateLevel(); clearEffects(); + FlameAudio.audioCache + .play('sfx/land.mp3', mode: PlayerMode.LOW_LATENCY); event("run"); } } @@ -428,7 +447,7 @@ class Runner extends Component with HasGameRef { return belowPlatform; } - Future intersecting() async { + void intersecting() { if (gameRef.gameState.isPaused) { return; } @@ -439,7 +458,8 @@ class Runner extends Component with HasGameRef { for (int i = 0; i < coinLevel.length;) { if (coinLevel[i].intersect(runnerRect) != "none") { gameRef.gameState.numCoins++; - await FlameAudio.audioCache.play('sfx/coin_catch.mp3'); + FlameAudio.audioCache.play('sfx/coin_catch.mp3', + volume: 0.25, mode: PlayerMode.LOW_LATENCY); gameRef.coinHolder.remove(coinLevel, i); continue; } @@ -477,7 +497,8 @@ class Runner extends Component with HasGameRef { return; } } else if (intersectState == "left" && runnerState == "kick") { - await FlameAudio.audioCache.play('sfx/bug_chomp.mp3'); + FlameAudio.audioCache + .play('sfx/bug_death1.mp3', mode: PlayerMode.LOW_LATENCY); bugLevel[i].sprite.current = BugState.breaking; gameRef.coinHolder.generateCoin(gameRef, level, force: true, xPosition: bugLevel[i].sprite.x + gameRef.blockSize); @@ -501,7 +522,8 @@ class Runner extends Component with HasGameRef { } else if (runnerState == "duck" && intersectState != "above") { continue; } else { - await FlameAudio.audioCache.play('sfx/obstacle_death.mp3'); + FlameAudio.audioCache + .play('sfx/obstacle_death.mp3', mode: PlayerMode.LOW_LATENCY); event("die"); } } @@ -518,7 +540,8 @@ class Runner extends Component with HasGameRef { if (intersectState == "none") { continue; } else { - await FlameAudio.audioCache.play('sfx/obstacle_death.mp3'); + FlameAudio.audioCache + .play('sfx/obstacle_death.mp3', mode: PlayerMode.LOW_LATENCY); event("die"); } } @@ -534,6 +557,8 @@ class Runner extends Component with HasGameRef { } Future load() async { + boost = FlameAudio.audioCache + .play('sfx/laser.mp3', volume: 0.0, mode: PlayerMode.LOW_LATENCY); List satellites = []; for (int i = 1; i <= 38; i++) { satellites.add(await Flame.images.load( @@ -580,7 +605,7 @@ class Runner extends Component with HasGameRef { await loadSpriteAnimation("death2", 57, loop: false); SpriteAnimation dyingGlitch = - await loadSpriteAnimation("death1", 81, loop: false); + await loadSpriteAnimation("death1", 82, loop: false); sprite = SpriteAnimationGroupComponent( animations: { @@ -638,8 +663,9 @@ class Runner extends Component with HasGameRef { void clearEffects({bool keepSounds = false}) { sprite.clearEffects(); - if (!keepSounds) { - boost.stop(); + if (!keepSounds && boost != null) { + // boost.stop(); + boost.then((value) => value.stop()); } } }