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
Alejandro Santiago
0ac9cb3140
fix: replaying resets game state ( #441 )
...
* feat: added replay functionality
* feat: resetting google word bonus
* Merge remote-tracking branch 'origin' into feat/replay-functionality
* test: tested Replay overlay
* docs: fixed typo
* test: renamed test
Co-authored-by: Allison Ryan <77211884+allisonryan0002@users.noreply.github.com>
3 years ago
Allison Ryan
a1329ec354
chore: set max score ( #408 )
3 years ago
Alejandro Santiago
46557f718e
refactor: removed SparkyTurboChargeActivated event ( #401 )
3 years ago
Alejandro Santiago
fd87afb23b
refactor: renamed `DashNestBumper` to `DashBumper` ( #381 )
...
* refactor: renamed DashNestBumper to DashBumper
* refactor: PR suggestions
* refactor: renamed stories
* refactor: renamed test names
* test: renamed test name
* docs: improved bumper docs
* docs: improve docs
* refactor: renamed stories
3 years ago
Jorge Coca
4a3e9f7abc
chore: cleanup public api docs annotations ( #382 )
3 years ago
Alejandro Santiago
ace61193fb
refactor: removed `GameBallsController` ( #349 )
3 years ago
Alejandro Santiago
2ad0196e44
refactor: include `GameStatus` on `GameBloc` ( #345 )
3 years ago
Rui Miguel Alonso
d729a9ac69
refactor: split `GameState` score into `totalScore`, `roundScore` and `displayScore` ( #331 )
...
* refactor: GameState adding totalScore, roundScore and displayScore
* chore: trailing commas
* chore: doc
Co-authored-by: Tom Arra <tarra3@gmail.com>
3 years ago
Rui Miguel Alonso
4524849c29
feat: game bloc multiplier ( #213 )
...
* feat: added events for multiplier
* feat: added events for increment, apply and reset multiplier
* feat: added multiplier to game bloc state
* test: test for multiplier at game bloc
* test: added multiplier to game state
* refactor: multiplier always increased by 1
* refactor: add multiplier state on BallLost
* refactor: added round to game state and changed gameover and ball lost logic
* test: fixed tests for game bloc
* refactor: multiplier max value 6 at game bloc
* test: fixed tests with new game over logic
* chore: properties renamed and removed unused
* Update lib/game/bloc/game_event.dart
Co-authored-by: Alejandro Santiago <dev@alestiago.com>
* fix: pubspec from main
* refactor: pubspec from main
* chore: removed unused import
* feat: ball added event to game bloc
* test: fixed test for ball added
* feat: added BallAdded event on ball mounted
* test: fixing tests for BallAdded
* test: flamebloctester for ball added
* test: refactored tests for pinballgame
* refactor: BallAdded event on ball mounted
* chore: removed unnecessary imports
* test: refactor tests for pinball_game
* refactor: use rounds instead of balls
* refactor: changed BallLost event with RoundLost, and moved part of the logic to controlled_ball
* test: tests for RoundLost
* fix: fixed wrong tests for pinball_game
* test: remove deleted balls property from GameState
* chore: doc
Co-authored-by: Alejandro Santiago <dev@alestiago.com>
Co-authored-by: Allison Ryan <77211884+allisonryan0002@users.noreply.github.com>
3 years ago
arturplaczek
b9c2f3a54f
feat: score widget with animation ( #206 )
3 years ago
Alejandro Santiago
831d374705
refactor: Flutter forest logic ( #190 )
...
* refactor: removed FlutterForest logic from Bloc
* refactor: removed ids from Bumpers
* refactor: improved casting
* feat: registered event
* refactor: removed unecessary properties
* feat: properly deactivated bumpers
* refactor: removed unused import
* feat: animated animatronic
3 years ago
Alejandro Santiago
a65fb692b5
feat: implement GoogleWord ( #176 )
3 years ago
Allison Ryan
0bec997178
feat: add Sparky's computer ( #155 )
...
* feat: add sparky computer and mechanics
* test: sparky mechanics
* refactor: reposition
* test: contact callback test
* refactor: new separated sprite components
* fix: lint
* refactor: improve ball turbo charge tests
3 years ago
Alejandro Santiago
655007b2d2
feat: improved extra ball logic ( #151 )
3 years ago
Alejandro Santiago
07ddb1f7b6
refactor: made ball controller listen to bloc ( #116 )
...
* refactor: included BonusBallController
* feat: made LaunchedBallControler react to states
* refactor: removed isLastBall
* fix: solved tests
* fix: solved BonusLetterActivated test
* refactor: used ensureAdd
3 years ago
Alejandro Santiago
823cdb6af5
feat: include DashNest bonus ( #80 )
...
* feat: included dash nest logic
Co-authored-by: Allison Ryan <77211884+allisonryan0002@users.noreply.github.com>
3 years ago
Erick
1754602634
feat: adding bonus score to the user when they complete the bonus ( #36 )
...
* feat: adding bonus score to the user when they complete the bonus
* feat: pr suggestions
3 years ago
Erick
03d48eac40
feat: adding bonus letters to board ( #35 )
...
* feat: adding ball spawming upon click on debug mode
* PR suggestions
* fix: rebase
* feat: adding bonus letter component
* feat: bonus letter callback
* feat: removing flip
* feat: adding bonus letters to board
* Apply suggestions from code review
Co-authored-by: Allison Ryan <77211884+allisonryan0002@users.noreply.github.com>
* feat: improving bonus letters grouping
* feat: removing not needed pump
* feat: rebase fix
* fix: re adding wrongly removed code during rebase
* fix: lint
* fix: flaky test
* Apply suggestions from code review
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
Erick
07d16fbac0
feat: adding bonus logic to the game bloc ( #24 )
...
* feat: adding bonus logic to the game bloc
* feat: PR suggestions
* Apply suggestions from code review
Co-authored-by: Alejandro Santiago <dev@alestiago.com>
* feat: pr suggestions
* chore: main rebase
* feat: pr suggestions
* Apply suggestions from code review
Co-authored-by: Alejandro Santiago <dev@alestiago.com>
* feat: pr suggestion
* feat: pr suggestions
* feat: pr suggestions
* Apply suggestions from code review
Co-authored-by: Alejandro Santiago <dev@alestiago.com>
* feat: pr suggestions
Co-authored-by: Alejandro Santiago <dev@alestiago.com>
3 years ago
Alejandro Santiago
61ba65ce61
feat: include `public_member_api_docs` ( #13 )
...
* feat: included public_member_api_docs lint rule
* docs: included ignore comment
* docs: included Ball method comment
3 years ago
Erick Zanardo
e4cd4342c0
feat: pr suggestions
3 years ago
Erick
de25974f8c
Update lib/game/bloc/game_state.dart
...
Co-authored-by: Alejandro Santiago <dev@alestiago.com>
3 years ago
Erick Zanardo
df2ce91b06
feat: adding bonus letter feature state management
3 years ago
Erick
9fc554927d
Apply suggestions from code review
...
Co-authored-by: Alejandro Santiago <dev@alestiago.com>
3 years ago
Erick Zanardo
dba7761e01
feat: addressing PR comments
3 years ago
Alejandro Santiago
18e1f950ad
feat: implement GameBloc ( #3 )
...
* chore: generated bloc using VS extension
* chore: included equatable dependency
* feat: implemented BallLost and Scored events
* refactor: renamed ballsLeft to balls
* chore: exported bloc in barrel file
* feat: tested and improved GameState
* feat: tested and improved GameState
* feat: tested and improved GameEvent
* feat: tested GameBloc
* refactor: modified redundant test message
* refactor: included initial factory constructor
* refactor: corrected class doc comment
* feat: made GameEvent support value equality
* refactor: adapted equality test to pick coverage
* refactor: moved linter ignore comment
* refactor: removed const from equality comparison
* refactor: changed factory constructor for named constructor
* refactor: added trailing commas
3 years ago