Rui Miguel Alonso
32e3e8d641
fix: `SpaceshipRamp` logic ( #416 )
...
* feat: added behaviors for arrow
* feat: arrow behaviors
* refactor: changed ramp behaviors to new flame bloc
* feat: reset and blinking on ramp
* fix: added behaviors to ramp and some tests
* test: coverage
* refactor: spaceship ramp sandbox
* chore: clean prints
* refactor: unnecessary test methods
* chore: removed unused files
* refactor: remove arrow blinking from this pr
* test: coverage
* refactor: ramp bonus listen when refactored
* refactor: moved FlameBlocProvider inside SpaceshipRamp
* refactor: moved FlameBlocProvider inside SpaceshipRamp and refactor tests
* chore: removed tests failures
* test: removed golden tests for spaceship
* chore: failure tests images
* test: refactor test
* test: coverage
* Update test/game/components/android_acres/behaviors/ramp_progress_behavior_test.dart
Co-authored-by: Allison Ryan <77211884+allisonryan0002@users.noreply.github.com>
* Update test/game/components/android_acres/behaviors/ramp_reset_behavior_test.dart
Co-authored-by: Allison Ryan <77211884+allisonryan0002@users.noreply.github.com>
* Update test/game/components/android_acres/behaviors/ramp_shot_behavior_test.dart
Co-authored-by: Allison Ryan <77211884+allisonryan0002@users.noreply.github.com>
* Update test/game/components/android_acres/behaviors/ramp_reset_behavior_test.dart
Co-authored-by: Allison Ryan <77211884+allisonryan0002@users.noreply.github.com>
* Update packages/pinball_components/test/src/components/spaceship_ramp/cubit/spaceship_ramp_state_test.dart
Co-authored-by: Allison Ryan <77211884+allisonryan0002@users.noreply.github.com>
* Update test/game/components/android_acres/behaviors/ramp_progress_behavior_test.dart
Co-authored-by: Allison Ryan <77211884+allisonryan0002@users.noreply.github.com>
* Update test/game/components/android_acres/behaviors/ramp_progress_behavior_test.dart
Co-authored-by: Allison Ryan <77211884+allisonryan0002@users.noreply.github.com>
* Update test/game/components/android_acres/behaviors/ramp_progress_behavior_test.dart
Co-authored-by: Allison Ryan <77211884+allisonryan0002@users.noreply.github.com>
* Update test/game/components/android_acres/behaviors/ramp_progress_behavior_test.dart
Co-authored-by: Allison Ryan <77211884+allisonryan0002@users.noreply.github.com>
* Update test/game/components/android_acres/behaviors/ramp_progress_behavior_test.dart
Co-authored-by: Allison Ryan <77211884+allisonryan0002@users.noreply.github.com>
* refactor: flamebloclistenable
* Update packages/pinball_components/test/src/components/spaceship_ramp/cubit/spaceship_ramp_cubit_test.dart
Co-authored-by: Allison Ryan <77211884+allisonryan0002@users.noreply.github.com>
* Update packages/pinball_components/test/src/components/spaceship_ramp/spaceship_ramp_test.dart
Co-authored-by: Allison Ryan <77211884+allisonryan0002@users.noreply.github.com>
* refactor: changed listenWhen conditions
* chore: formatting
* test: coverage
* test: multiblocprovider
* Update packages/pinball_components/lib/src/components/spaceship_ramp/cubit/spaceship_ramp_cubit.dart
Co-authored-by: Alejandro Santiago <dev@alestiago.com>
* Update packages/pinball_components/lib/src/components/spaceship_ramp/cubit/spaceship_ramp_state.dart
Co-authored-by: Alejandro Santiago <dev@alestiago.com>
* test: refactored tests
* refactor: max multiplier
* test: fixed error in test
* refactor: removed trailing commas
* test: used ensureAdd
* test: awaited zero duration to trigger next event loop
* test: triggered next event loop
* test: triggered next event loop
Co-authored-by: Allison Ryan <77211884+allisonryan0002@users.noreply.github.com>
Co-authored-by: Alejandro Santiago <dev@alestiago.com>
3 years ago
Allison Ryan
cc73a52428
fix: add bumper noise to cow bumper ( #415 )
3 years ago
Allison Ryan
8b40a642ec
feat: add cow moo sound ( #412 )
3 years ago
Felix Angelov
75527d1fe1
refactor: AndroidSpaceshipBonusBehavior use FlameBlocListener ( #371 )
3 years ago
Allison Ryan
e6005cd735
refactor: add new background and reposition components ( #356 )
...
* refactor: new asset and shape resize
* refactor: add background and move components to match
* chore: update goldens
* chore: swap out computer glow
* chore: pubspec
3 years ago
Erick
135b4ed5c2
refactor: renaming noisy to noise ( #353 )
3 years ago
Rui Miguel Alonso
79624f07f1
feat: `SpaceshipRamp` shot logic ( #296 )
...
* feat: spaceship ramp added cubit and behavior to sensor
* refactor: changed spaceshipt ramp sensor, cubit and behavior names
* refactor: added behaviors to AndroidAcres
* refactor: connect rampsensors with android acres bonus
* refactor: move ramp sensor to spaceship ramp children
* test: fixed some tests for ramp
* chore: removed unused imports
* chore: removed unused import
* Update lib/game/components/android_acres/behaviors/ramp_bonus_behavior.dart
Co-authored-by: Alejandro Santiago <dev@alestiago.com>
* refactor: search sensors from parent children
* refactor: moved ramp sensor cubit to spaceship ramp
* refactor: modified ramp behaviors
* refactor: fixed ramp behaviors tests
* refactor: changed ramp behaviors
* chore: analysis errors
* test: fixed ramp contact test
* test: coverage for spaceshipramp
* Update packages/pinball_components/lib/src/components/spaceship_ramp/spaceship_ramp.dart
Co-authored-by: Alejandro Santiago <dev@alestiago.com>
* refactor: fixed test when removing children from spaceship test constructor
* refactor: moved arrow state to cubit inside ramp instead of propagate from behavior
* refactor: sandbox for spaceshipramp modified
* refactor: removed arrow value from spaceship ramp state to sprite logic
* test: golden tests for ramp arrow
* test: coverage
* test: coverage
* refactor: changed name for RampBallAscendingContactBehavior
* refactor: added ScoringBehavior on shot and bonus behaviors
* feat: cancel subscription on ramp behavior remove
* chore: unused import
Co-authored-by: Alejandro Santiago <dev@alestiago.com>
3 years ago
Alejandro Santiago
8957b96ae3
feat: defined `ScoringBehavior` and `ScoringContactBehavior` ( #329 )
...
* refactor: renamed ScoringBehavior to ScoringContactBehavior
* feat: defined ScoringBehavior
* docs: improved documentation
3 years ago
Alejandro Santiago
f38f18d60a
refactor: moved noise logic to `BumperNoisyBehavior` ( #326 )
3 years ago
Erick
ca9679ba1d
feat: adding bumper sfx ( #315 )
...
* feat: adding bumper sfx
* feat: adding missing bumpers
* Update packages/pinball_audio/lib/src/pinball_audio.dart
Co-authored-by: Allison Ryan <77211884+allisonryan0002@users.noreply.github.com>
Co-authored-by: Allison Ryan <77211884+allisonryan0002@users.noreply.github.com>
3 years ago
Allison Ryan
f2160feab9
feat: implemented `AndroidSpaceshipBonusBehavior` ( #298 )
...
* refactor: simplify ball entering spaceship
* feat: add bonus logic and scoring
* chore: add animatronic to spaceship sandbox
* chore: remove renderBody change
* chore: remove leftover children change
* chore: test typo
* refactor: re-add children property
* refactor: use firstChild
* refactor: PR suggestions
* Update packages/pinball_components/test/src/components/android_animatronic_test.dart
Co-authored-by: Alejandro Santiago <dev@alestiago.com>
Co-authored-by: Alejandro Santiago <dev@alestiago.com>
3 years ago