Alvaro Almeida Freire Stivi
d00f503ee8
Updates dependencies to flutter 3.22, fixes code to run with new dependencies version
...
Disables firebase integration for now, leaderboard functionality will be
restored in another commit.
1 year ago
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>
4 years ago
Allison Ryan
4ad59a795a
chore: fix sandbox and asset cache loading ( #445 )
4 years ago
Alejandro Santiago
6b67525716
fix: flying ball when entering SpaceshipRamp ( #380 )
4 years ago
Rui Miguel Alonso
de3569c479
feat: include `Ball` final assets ( #279 )
...
* refactor: load ball assets from cache
* feat: new ball assets
* refactor: ball loads new sprites
* refactor: modified ball assets for sandbox
* refactor: removing baseColor from ball
* refactor: moved ball assets to pinball_theme
* refactor: removed all baseColor for ball
* refactor: removed unused imports
* test: golden tests for ball
* test: added missed ball assets to tests
* chore: reorder imports
* refactor: removed all default ball, use dash
* test: fixed test for ball changes
* test: adde ball assets to forest tests
* fix: fixed tests for ball
* refactor: removed baseColor from ball tests
* chore: unused imports
* test: removed golden tests for balls
* refactor: removed unused assets at test and renamed spriteAsset for ball
* refactor: spriteAsset changed for ball sprite
Co-authored-by: Tom Arra <tarra3@gmail.com>
4 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>
4 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>
4 years ago
Alejandro Santiago
95fe7a62aa
feat: implemented rendering with `ZIndex` ( #282 )
...
* feat: defined PinballCavas
* refactor: remove unawaited
* feat: defined renderTree
* refactor: made LaunchRamp a Component
* refactor: removed RenderPriority from FlutterForest
* feat: implementing PinballCanvasComponent
* refactor: migrated to zIndex
* refactor: removed old pinball_canvas.dart
* refactor: cleaned PinballCanvasComponent
* refactor: reordered children additions
* refactor: adjusted priorities
* refactor: adjusted RenderPriority
* refactor: improved rendering algorithm
* refactor: removes Blueprint
* test: migrating blueprint tests
* docs: removed Blueprint references
* refactor: renamed PinballCanvas to ZCanvas
* test: tested z_canvas_component
* refactor: renamed LayerSensor to use zIndex
* refactor: renamed RenderPriority to ZIndexes
* refactor: removed priority instances
* refactor: removed priority occurences
* fix: plunger and tapping positions
* test: correctly testes SparkyScorch
* test: adjusted ScoringBehavior test
* docs: documented z_canvas_component
* test: fixed ScoringBehavior tests
* refactor: renamed to ZCanvas
* refactor: applied PR suggestions
4 years ago
Allison Ryan
0a1ae053d8
feat: add android assets and fix shapes ( #258 )
...
* feat: add android assets and fix shapes
* refactor: remove docs and size
* fix: asset gen styling
4 years ago
Rui Miguel Alonso
7d8cd8c357
feat: implemented `AndroidBumper.cow` ( #257 )
...
* feat: added cow assets
* feat: added cow bumper
* feat: cow sanbox
* Update packages/pinball_components/sandbox/lib/stories/android_acres/android_bumper_cow_game.dart
Co-authored-by: Alejandro Santiago <dev@alestiago.com>
* refactor: sandbox ball color
* fix: cow bumper spriteposition
* fix: cow bumper size
* refactor: cow shape and positioning
Co-authored-by: Alejandro Santiago <dev@alestiago.com>
Co-authored-by: Allison Ryan <allisonryan0002@gmail.com>
Co-authored-by: Allison Ryan <77211884+allisonryan0002@users.noreply.github.com>
4 years ago
Allison Ryan
8e9ef85dda
refactor: add spaceship rail assets ( #244 )
...
* refactor: update rail assets and shape
* fix: add assets to newly merged test
4 years ago
Allison Ryan
c33d34e42f
refactor: alien to android ( #246 )
...
Co-authored-by: Alejandro Santiago <dev@alestiago.com>
4 years ago