Alejandro Santiago
0b22b712b0
refactor: removed `ControlledFlipper` ( #343 )
...
* feat: implemented Flippers behaviors
* test: tested Flipper behaviors
* refactor: fixed typo
* refactor: removed unecessary import
* feat: removed and added behavior depending on game status
* test: renamed test
* test: changed golden path
* refactor: removed TODOs
3 years ago
Allison Ryan
da064ade32
refactor: `SparkyComputer` behaviors and removed `ControlledBall` ( #365 )
...
* refactor: sparky behaviors and remove controlled ball
* fix: test typo
* fix: PR suggestions
3 years ago
Alejandro Santiago
ace61193fb
refactor: removed `GameBallsController` ( #349 )
3 years ago
Alejandro Santiago
3465c9f1e7
refactor: implemented `CameraFocusingBehavior` ( #346 )
3 years ago
Alejandro Santiago
2ad0196e44
refactor: include `GameStatus` on `GameBloc` ( #345 )
3 years ago
Allison Ryan
6ed62f37e8
refactor: add `Backbox` asset and localized text ( #319 )
...
* refactor: clean up backboard
* test: backboard changes
* refactor: rename backbox
* fix: tests
* test: localization mocking
* test: initials input display
* chore: remove extra golden file
* chore: small changes
* test: scoreFormat
* style: cascade
* fix: no optimizations for main
* fix: loading assets
Co-authored-by: Tom Arra <tarra3@gmail.com>
3 years ago
Alejandro Santiago
f38f18d60a
refactor: moved noise logic to `BumperNoisyBehavior` ( #326 )
3 years ago
Allison Ryan
9784091f84
feat: add dino game bonus ( #301 )
...
* feat: connect dino bonus
* fix: remove ball on spit
* refactor: move logic to cubit
* chore: update test cases
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
Rui Miguel Alonso
3a593c2e6e
feat: multiball asset ( #235 )
...
* feat: multiball assets
* feat: added multiball to components
* feat: added controller for multiball
* feat: positioned multiball and changed animation
* feat: added sandbox for multiball
* chore: unused import
* refactor: add rotation to multiball constructor
* test: coverage for multiball
* chore: todos for refactor multiball childrens
* test: removed unused mock
* chore: removed unused imports
* test: removed golden tests
* refactor: changed assets and refactored multiball
* refactor: changed assets and refactored multiball
* test: tests for multiball
* refactor: multiballs group refactored
* chore: names and doc
* refactor: removed duplicated images for multiball
* refactor: changed multiball cubit and state
* refactor: changed multiball and group
* chore: positions of lights
* refactor: changing blink behavior
* test: blink behavior
* refactor: blinking multiball lights
* test: tests for blink behavior
* chore: analysis errors
* test: coverage for blinking
* test: coverage
* test: trying to fix tests
* fix: fixed bloc error on behavior with tests
* refactor: multiball blink
* refactor: blinking behavior to TimerComponent and test coverage
* refactor: modified blinking behavior
* chore: error on merge tests
* test: coverage multiballs
* refactor: cleaned blink behavior
* chore: unused import
* Update packages/pinball_components/test/src/components/multiball/behaviors/multiball_blinking_behavior_test.dart
Co-authored-by: Allison Ryan <77211884+allisonryan0002@users.noreply.github.com>
* Update packages/pinball_components/test/src/components/multiball/behaviors/multiball_blinking_behavior_test.dart
Co-authored-by: Allison Ryan <77211884+allisonryan0002@users.noreply.github.com>
* Update test/game/components/multiballs/behaviors/multiballs_behavior_test.dart
Co-authored-by: Allison Ryan <77211884+allisonryan0002@users.noreply.github.com>
* Update packages/pinball_components/test/src/components/multiball/multiball_test.dart
Co-authored-by: Allison Ryan <77211884+allisonryan0002@users.noreply.github.com>
* refactor: changed multiball states enum values
* test: multiball descendant test at pinball
Co-authored-by: Allison Ryan <77211884+allisonryan0002@users.noreply.github.com>
3 years ago
Allison Ryan
3bb5f42f58
refactor: `SparkyScorch` and asset renaming ( #268 )
...
* refactor: sparky scorch
* test: update golden
* chore: update preLoad method
* chore: remove constructor
3 years ago
Rui Miguel Alonso
cc3ba899ce
feat: implemented `Multipliers` ( #231 )
...
* feat: added multipliers
* feat: added multipliers to sandbox
* test: tests and golden tests for multipliers
* feat: multipliers controller
* fix: missed assets load
* refactor: multiplier refactored and tested
* refactor: changed sandbox for multipliers
* feat: multiplier controller
* refactor: moved assets to constructor at sandbox
* test: coverage for multipliers
* test: removed test
* refactor: coverage for multiplier
* test: coverage for multiplier
* chore: multiplier doc
* Update packages/pinball_components/sandbox/lib/stories/multipliers/multipliers_game.dart
Co-authored-by: Alejandro Santiago <dev@alestiago.com>
* chore: little code refactor, doc
* refactor: multiplier creation refactored
* test: fixed tests for multipliers
* refactor: changed properties names
* refactor: multipliers cubit
* test: refactored tests for multipliers
* refactored: sandbow for multipliers
* refactor: multipliers controller
* test: tests for multiplier behavior
* chore: analysis errors
* feat: multipliers behavior with multiplier from gamebloc
* refactor: changed toggle to next at multipliers
* test: coverage for cubit
* refactor: refactored multipliers and coverage
* refactor: sandbox
* test: flamebloctester
* Update lib/game/components/multipliers/multipliers.dart
Co-authored-by: Allison Ryan <77211884+allisonryan0002@users.noreply.github.com>
* Update packages/pinball_components/lib/src/components/multiplier/cubit/multiplier_cubit.dart
Co-authored-by: Allison Ryan <77211884+allisonryan0002@users.noreply.github.com>
* Update lib/game/components/multipliers/multipliers.dart
Co-authored-by: Allison Ryan <77211884+allisonryan0002@users.noreply.github.com>
* Update packages/pinball_components/lib/src/components/multiplier/cubit/multiplier_state.dart
Co-authored-by: Allison Ryan <77211884+allisonryan0002@users.noreply.github.com>
* Update packages/pinball_components/lib/src/components/multiplier/cubit/multiplier_state.dart
Co-authored-by: Allison Ryan <77211884+allisonryan0002@users.noreply.github.com>
* Update test/game/components/multipliers/behaviors/multipliers_behavior_test.dart
Co-authored-by: Allison Ryan <77211884+allisonryan0002@users.noreply.github.com>
* test: fixed test names and golden files
* test: golden tests
* fix: fixed bloc bug for tests on multiplier behavior
* chore: renamed rotation
* chore: doc ignore
* test: grouped
* test: golden tests dir
* Update packages/pinball_components/sandbox/lib/stories/multipliers/stories.dart
Co-authored-by: Allison Ryan <77211884+allisonryan0002@users.noreply.github.com>
* refactor: moved extension for multiplier value
* chore: multiplier extension equalsTo name
* fixed: missed method rename
Co-authored-by: Alejandro Santiago <dev@alestiago.com>
Co-authored-by: Allison Ryan <77211884+allisonryan0002@users.noreply.github.com>
3 years ago
Allison Ryan
cf688f0f26
chore: removed `Wall` and `Board` ( #224 )
...
* chore: remove wall and board
* fix: lint
* refactor: bottom group test
* chore: remove start and end variables
* refactor: group stories
* refactor: bottom group blueprint
* style: remove whitespace and add comma
* refactor: add drain behavior
* refactor: bottom group to component
* fix: render issue
3 years ago
Allison Ryan
c33d34e42f
refactor: alien to android ( #246 )
...
Co-authored-by: Alejandro Santiago <dev@alestiago.com>
3 years ago
Alejandro Santiago
2673c419b5
feat: migration to new `ContactCallbacks` ( #234 )
...
* feat: migrated to new ContactCallbacks
* refactor: moved renderBody to super call
* feat: defined AlienBumper behaviours
* feat: included ParentIsA mixin
* refactor: modified ContactCallbacksGroup
* feat: resolved missing ContactCallbacks with Behaviors
* refactor: removed unused ParentIsA
* refactor: moved tests
* fix: invalid export
* refactor: renamed behaviours
* test: tested pinball_components
* refactor: removed "Behaviour" typo
* docs: included TODO comment for generics
* docs: included flame_bloc TODO comments
* refactor: renamed ContacCallbacksGroup variable
* docs: included doc comments where possible
* docs: rephrased ContactBehaviour doc comment
* test: included ContactBehavior tests
* feat: implemented FlutterForestBonusBehavior
* refactor: fixed analyser warnings
* test: tested DashNestBumper
* refactor: moved children to last arguement
* test: included closing test
* refactor: used barrel files as imports
* docs: included flutter_bloc TODO
* test: correctly tested GoogleWordBonusBehavior
* refactor: moved flutter_forest_test.dart
* test: fixed AlienZone typo
* feat: removed FlutterForestCubit
* test: closed streams
* refactor: removed optional bloc parameter
* refactor: added flame_bloc TODO comment
* docs: included .test constructor docs
* feat: included GoogleLetter.test
* test: made blink test pass
* fix: renamed theme to CharacterTheme
* refactor: moved timer.stop();
* refactor: renamed hasBonus to achievedBonus
* refactor: ignore public_member_api_docs for cubits
* test: removed beginContact group
* refactor: typos correction
* docs: used correct AlienBumper reference
* docs: removed TODO comment from ContactBehavior subclasses
* docs: includes ScoringBehavior doc
* feat: adjusted FlutterForest priorities
Co-authored-by: Allison Ryan <77211884+allisonryan0002@users.noreply.github.com>
3 years ago
Allison Ryan
7cc41231a9
feat: add sparky animatronic ( #194 )
...
* feat: add sparky animatronic
* refactor: move computer into sparky fire zone
* test: sparky animatronic and controller
* chore: removed old test
* test: remove test for sparky fire zone component
* refactor: use onComplete
* chore: included SparkyTurboChargeSensor
* feat: specified priority
* fix: specified render priority
* refactor: spacing changes
* refactor: used children param
* feat: made SparkyFireZone a Blueprint
* feat: updated assets
* refactor: moved SparkyComputerSensor
* test: fix contact callback tests
* test: updated SparkyComputer loading test
* test: updated golden animatronic tests
* feat: modified turboCharge duration
* fix: included missing cached image
* fix: coverage
* refactor: removed unused HasGameRef mixin
* fix: included missing plunger assets
* Update test/game/components/sparky_fire_zone_test.dart
* fix: unused import
Co-authored-by: alestiago <dev@alestiago.com>
3 years ago
Alejandro Santiago
9615d6105f
feat: spawned ScoreText on Ball's position ( #210 )
3 years ago
Alejandro Santiago
a65fb692b5
feat: implement GoogleWord ( #176 )
3 years ago
Rui Miguel Alonso
333f91fc1e
feat: add rocket plunger ( #180 )
...
* feat: plunger rocket
* feat: added plunger zone and placed rocket over plunger
* chore: doc and unused import
* refactor: move rocket to pinball components
* refactor: created Launcher to group rocket, plunger and launchramp
* chore: unused import
* test: plunger and rocket tests
* Update lib/game/components/launcher.dart
Co-authored-by: Allison Ryan <77211884+allisonryan0002@users.noreply.github.com>
* Update lib/game/components/launcher.dart
Co-authored-by: Allison Ryan <77211884+allisonryan0002@users.noreply.github.com>
* refactor: add LauncherRamp nested to Launcher
Co-authored-by: Allison Ryan <77211884+allisonryan0002@users.noreply.github.com>
Co-authored-by: Erick <erickzanardoo@gmail.com>
3 years ago
Rui Miguel Alonso
aafc254ad3
feat: add alien bumper ( #166 )
...
* feat: added alien bumpers
* test: tests for alien bumpers
* feat: sandbox for alien bumpers
* refactor: changed alien bumper ellipses
* feat: added alien bumpers zone to game
* test: tests for alien zone
* refactor: final size and positions for alien bumpers
* feat: added new alien zone bumpers
* test: changed tests for alien
* chore: api doc
* refactor: alien sandbox traceable
* Update lib/game/components/alien_zone.dart
Co-authored-by: Allison Ryan <77211884+allisonryan0002@users.noreply.github.com>
* refactor: moved alien from board to pinball and fixed sprites
* test: fixed test for alien at pinball
* Update packages/pinball_components/sandbox/lib/stories/alien_bumper/alien_bumper_game.dart
Co-authored-by: Alejandro Santiago <dev@alestiago.com>
* test: clean flamebloc test
* refactor: ControlledAlienBumper visible for testing
* chore: removed unused file
* test: fixed alien test in pinball
* refactor: refactored alien dashbook stories
* chore: analysis error
Co-authored-by: Allison Ryan <77211884+allisonryan0002@users.noreply.github.com>
Co-authored-by: Alejandro Santiago <dev@alestiago.com>
3 years ago
Rui Miguel Alonso
bf0596846b
refactor: `Plunger` controls ( #152 )
...
* feat: added plunger asset and move
* feat: fixed plunger assets and position
* fix: set limits to plunger compression correctly
* chore: unused import
* fix: placed plunger correctly
* test: refactor test game
* refactor: changed spawnBall initialPosition
* chore: plunger golden test
* refactor: moved plunger to pinball_components
* feat: plunger story
* refactor: plunger assets preload
* chore: assets for plunger
* refactor: added key events to plunger game
* refactor: make pull and release public to call from outside plunger
* chore: update to retry tests
* refactor: added Traceable to Plunger sandbox story
* refactor: add Traceable
* fix: removed body from PlungerAnchor
* refactor: removed keyevents from plunger
* test: plunger tests refactored without keyevents
* refactor: removed unused keyevents
* refactor: plunger spritecomponent
* refactor: keyevents to gamecontroller
* feat: added plunger controller
* test: tests for plunger controller
* test: tested plunger controller
* fix: assets gen
* chore: removed export from barrel
* refactor: removed unnecessary keyhandler
* refactor: sprite size
* test: anchor at setup
* refactor: plunger const keys
* Update lib/game/components/controlled_plunger.dart
Co-authored-by: Alejandro Santiago <dev@alestiago.com>
Co-authored-by: Alejandro Santiago <dev@alestiago.com>
3 years ago
Erick
1fd6d9bf46
feat: adding score text effects ( #170 )
...
* feat: adding score effects
* feat: adding score text effect
* feat: finishing score text effects
* fixing tests
* feat: pr suggestion
* feat: pr suggestion
* Update lib/game/components/score_effect_controller.dart
Co-authored-by: Alejandro Santiago <dev@alestiago.com>
* Update packages/pinball_components/lib/src/components/score_text_effect.dart
Co-authored-by: Alejandro Santiago <dev@alestiago.com>
* pr suggestions
* more pr suggestions
* nit
* Apply suggestions from code review
Co-authored-by: Alejandro Santiago <dev@alestiago.com>
Co-authored-by: Alejandro Santiago <dev@alestiago.com>
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
Erick
bfba65823f
feat: implementing the new game start flow ( #160 )
...
* feat: implementing the new game start flow
* fix: coverage
* fix: lint
* fix: lint
* Apply suggestions from code review
Co-authored-by: Alejandro Santiago <dev@alestiago.com>
Co-authored-by: Allison Ryan <77211884+allisonryan0002@users.noreply.github.com>
* feat: PR suggestions
* feat: improve test docs
* feaT: pr suggestions
* feat: adding backboard assets to the pre fetch
* feat: pr suggestions
* feat: pr suggestions
* fix: lint
* fix: ci
* fix: tests
Co-authored-by: Alejandro Santiago <dev@alestiago.com>
Co-authored-by: Allison Ryan <77211884+allisonryan0002@users.noreply.github.com>
3 years ago
Rui Miguel Alonso
fdc3039f72
feat: sparky bumpers game logic ( #154 )
...
* feat: added event for sparky bumpers hit
* test: test sparky bumper bloc event
* refactor: added sparky bumpers actives to GameState
* refactor: removed active sparky bumper from game bloc logic
* refactor: moved sparky bumpers logic to SparkyBumperController
* test: tests for SparkyBumperController
* chore: removed unused import
* refactor: changed sparky fire zone
* refactor: changed sparky fire zone
* chore: analysis errors
* chore: analysis error
* Update test/game/bloc/game_bloc_test.dart
Co-authored-by: Allison Ryan <77211884+allisonryan0002@users.noreply.github.com>
* Update lib/game/components/sparky_fire_zone.dart
Co-authored-by: Allison Ryan <77211884+allisonryan0002@users.noreply.github.com>
* chore: formatting file
Co-authored-by: Allison Ryan <77211884+allisonryan0002@users.noreply.github.com>
3 years ago
Allison Ryan
ab1dbe99d5
feat: add launcher ramp assets ( #120 )
...
* feat: add launcher asset and dimension
* refactor: some visual adjustments
* refactor: revert unintended changes
* refactor: simplify variable names
* refactor: move to package and test
* fix: lint warning
* fix: another lint warning
* fix: merge layer changes
* fix: golden test
* refactor: load sprite method
3 years ago
Rui Miguel Alonso
b40dccb6bf
refactor: move spaceship exit rail ( #130 )
...
* refactor: moved SpaceshipExitRail to pinball components
* test: refactor tests and coverage
* chore: ignore cascade invocations on tests
* refactor: renamed SpaceshipExitRail to SpaceshipRail
3 years ago
Rui Miguel Alonso
61c347c72d
refactor: move JetpackRamp to pinball_components as SpaceshipEntranceRamp ( #129 )
...
* refactor: renamed JetpackRamp to SpaceshipEntranceRamp
* refactor: renamed Layer.jetpack to Layer.spaceshipEntranceRamp
* refactor: moved spaceship entrance ramp and assets to pinball components
* test: tests for spaceship ramp
* refactor: renamed SpaceshipEntranceRamp to SpaceshipRamp
3 years ago
Alejandro Santiago
b67b08a18d
refactor: moved ChromeDino to pinball_components ( #134 )
3 years ago
Alejandro Santiago
b243c063a3
refactor: moved Kicker to pinball_components ( #133 )
3 years ago
Alejandro Santiago
5e2ab9bf7b
refactor: renamed flipper_controller.dart to controlled_flipper.dart ( #128 )
...
* refactor: renamed files
* refactor: renamed barrel file export
3 years ago
Allison Ryan
90588d95c4
feat: add `Baseboard` assets ( #106 )
...
* feat: add baseboard assets
* refactor: move to components package
* test: coverage fix
* chore: small suggestions
* refactor: adjust size
* style: make angle readable
3 years ago
Alejandro Santiago
79687c8ea3
feat: implemented `ComponentController` ( #111 )
...
* feat: defined component controller
* feat: inclued flame barrel file
* feat: implemented ComponentController
* feat: implemented PlungerBallController
* feat: improved tests
* feat: enhanced component_controller
* feat: included instantiation test
* feat: removed attach method for mixin
* docs: improved doc comment
* feat: included Controls tests
* fix: commented golden test
3 years ago
Rui Miguel Alonso
f44c2bc25e
feat: spaceship drop tube ( #79 )
...
* feat: added spaceship drop ramp to board
* refactor: removed findNested extensions (#77 )
* refactor: placed drop ramp below spaceship, fixed position and layers
* test: tests coverage
* chore: analysis errors
* refactor: named SpaceshipExitRail
* chore: doc
* Update lib/game/components/spaceship_exit_rail.dart
Co-authored-by: Allison Ryan <77211884+allisonryan0002@users.noreply.github.com>
* Update test/game/components/spaceship_exit_rail_test.dart
Co-authored-by: Allison Ryan <77211884+allisonryan0002@users.noreply.github.com>
* Update test/game/components/spaceship_exit_rail_test.dart
Co-authored-by: Allison Ryan <77211884+allisonryan0002@users.noreply.github.com>
* refactor: changed name for spaceshipexit layer
* refactor: placed curve for spaceship exit rail
* fix: fixed drop tube sizes
* refactor: placed drop tube and fixed layers from spaceship
* fix: fixed exit hole contact size
* refactor: reordered mocks at tests
* chore: reorder params and typo
* fix: moved drop tube
* test: fixed spaceship exit test
Co-authored-by: Alejandro Santiago <dev@alestiago.com>
Co-authored-by: Allison Ryan <77211884+allisonryan0002@users.noreply.github.com>
Co-authored-by: Erick <erickzanardoo@gmail.com>
3 years ago
Erick
90131d9724
feat: applying assets to the spaceship ( #101 )
...
* feat: applying assets to the spaceship
* fix: rebase issues
* feat: adding missing coverage
* fix: lint
* feat: improving test
* Apply suggestions from code review
Co-authored-by: Allison Ryan <77211884+allisonryan0002@users.noreply.github.com>
Co-authored-by: Alejandro Santiago <dev@alestiago.com>
* feat: pr suggestions
* feat: pr suggestions
* Update packages/pinball_components/lib/src/components/spaceship.dart
Co-authored-by: Alejandro Santiago <dev@alestiago.com>
* feat: pr suggestions
* fix: rebase issues
Co-authored-by: Allison Ryan <77211884+allisonryan0002@users.noreply.github.com>
Co-authored-by: Alejandro Santiago <dev@alestiago.com>
3 years ago
Alejandro Santiago
72b8213f74
feat: including black and white Flipper assets ( #102 )
...
* feat: included left and right flipper assets
* feat: loaded left and right flipper assets
* feat: moved Flipper to components and defined controller
* refactor: moved lock to FlipperJoint
* refactor(sandbox): rephrased description
* feat(sanbox): including Flipper example
* feat: included Tracing story
* feat: defined trace method
* feat(sandbox): included right flipper
* feat: sized Flipper to match asset
* refactor: moved tests
* feat: tested flipper_controller
* feat: adjusted flipper size
* feat(sandbox): removed TapDetector
* refactor: removed unused import
* fix: increased test coverage
* docs: improved doc comments
* fix: changing merge imports
* refactor: simplified loading asset logic
Co-authored-by: Allison Ryan <77211884+allisonryan0002@users.noreply.github.com>
* chore: removed old Flipper asset
* fix: used correct variable
* feat: enchanced tracing example
* refactor: renamed circleAssetShadow to assetShadow
Co-authored-by: Allison Ryan <77211884+allisonryan0002@users.noreply.github.com>
3 years ago
Alejandro Santiago
6f32c4f2b8
feat: implemented ChromeDino mechanics ( #76 )
...
* feat: included ChromeDino in Board
* feat: made ChromeDino sweep
* feat: enclosed ChromeDino
* feat: included ChromeDino in Board
* feat: included initial file
* feat: made ChromeDino sweep
* feat: enclosed ChromeDino
* feat: positioned and clean
* feat: used ChromeDinoJoint
* feat: used a Timer in ChromeDino animation
* feat: positioned ChromeDino
* feat: adjusted motor values
* feat: created test file
* feat: included tests
* refactor: used TimerComponent
* feat: adjusted ChromeDino
* refactor: renamed test variable
* refactor: removed redundant test
* fix: included components import
* refactor: removed joint member
* refactor: included missing new line
* docs: fixed "dinosaur" typo
Co-authored-by: Erick <erickzanardoo@gmail.com>
Co-authored-by: Rui Miguel Alonso <ruiskas@gmail.com>
3 years ago
Alejandro Santiago
411b489e1e
refactor: Pathway to Shapes ( #87 )
...
* refactor: removed findNested extensions (#77 )
* refactor: changed Pathway for Shapes
* refactor: renamed pathway to shape
* refactor: moved shapes to components package
* fix: fixed arc radius on shapes
* refactor: changed jetpack to shapes
* refactor: modified jetpack ramp to use shapes and blueprint
* refactor: launcher ramp
* test: removed unnecessary tests for ramps
* refactor: refactored baseboard with arcshapes
* chore: doc refactor
* test: coverage tests
* refactor: refactored launcher ramp
* test: tests for shapes
* test: added removed ellipse tests
* test: arcshape coverage
* test: unnecessary tests removed
* chore: params names
* chore: modified doc for Layered and added one test for nested
* test: changed tests names
* test: not layered nested children
* refactor: moved static param and made other private on ramps
* Update lib/game/components/jetpack_ramp.dart
Co-authored-by: Allison Ryan <77211884+allisonryan0002@users.noreply.github.com>
* Update lib/game/components/jetpack_ramp.dart
Co-authored-by: Allison Ryan <77211884+allisonryan0002@users.noreply.github.com>
* Update lib/game/components/launcher_ramp.dart
Co-authored-by: Allison Ryan <77211884+allisonryan0002@users.noreply.github.com>
* chore: renamed straight path vars
* Update packages/pinball_components/lib/src/components/shapes/arc_shape.dart
Co-authored-by: Allison Ryan <77211884+allisonryan0002@users.noreply.github.com>
* refactor: constructors with rotation instead of separated method
* test: refactored tests
* refactor: moved rotate to separate method
* refactor: rotation on shapes
Co-authored-by: RuiAlonso <rui.alonso@verygood.ventures>
Co-authored-by: Rui Miguel Alonso <ruiskas@gmail.com>
Co-authored-by: Allison Ryan <77211884+allisonryan0002@users.noreply.github.com>
3 years ago
Alejandro Santiago
cfd4e790fa
feat: bumping all `DashNestBumper`s summons a new `Ball` ( #89 )
...
* refactor: rename RoundBumper to DashNestBumper
* feat: implemented DashNestBumper
* refactor: renamed files and tests
* chore: removed unused import
* refactor: renamed file to be a test file
* feat: added a new Ball on new state
Co-authored-by: Allison Ryan <77211884+allisonryan0002@users.noreply.github.com>
3 years ago
Erick
c8782cfbf4
refactor: splitting `Ball` business from UI logic ( #86 )
...
* feat: refactoring ball component to separate business from ui logic
* fix: tests
* fix: lint
* fix: test coverage
* Update lib/game/components/ball.dart
Co-authored-by: Alejandro Santiago <dev@alestiago.com>
Co-authored-by: Alejandro Santiago <dev@alestiago.com>
3 years ago
Alejandro Santiago
79bb95bef9
refactor: rename `SlingShot` to `Kicker` ( #68 )
...
* refactor: renamed SlingShot to Kicker
3 years ago
Erick
4c0774b792
feat: adds the spaceship component ( #60 )
...
* feat: implementing spaceship
* feat: spaceship working
* feat: adding dartdoc to spaceship
* feat: more tests and improving sizes
* fix: lint
* fix: lint
* feat: pre fetching spaceship assets
* fix: typo
* Apply suggestions from code review
Co-authored-by: Alejandro Santiago <dev@alestiago.com>
* feat: pr suggestion
* fix: removing duplicated class
* feat: pr suggestions
Co-authored-by: Alejandro Santiago <dev@alestiago.com>
3 years ago
Rui Miguel Alonso
6867187659
feat: crossing upper ramps ( #40 )
...
* feat: added generic area and area callback for ramps crossing
* feat: added jetpack ramp (blue one) and own area, contact callback and maskbits
* feat: added sparky ramp (yellow one) and own area, contact callback and maskbits
* feat: included ramp components
* feat: added maskbits to ball for collisions
* feat: added paths to pinball game
* feat: added maskbits to paths
* fix: fixed collisions of a ball that only touch path entrance but doesn't get into
* fix: analysis warnings
* feat: ball default maskbits
* chore: refactor some names and vars
* test: tests for ramps and callbacks, and coverage
* test: pinball game check ramps are added
* test: tests for ramps check childrens
* test: fixing tests for ramps
* test: fix tests
* chore: increase sparky angle
* fix: placed plunge aligned with straight launcher path
* fix: fixed maskBits change for ball on crossing ramps and tests coverage
* doc: public member api docs
* chore: placed launcher ramp
* test: moved mock from crossing ramps to helpers file
* fix: build and dep where broken by forge2d/position_body_component
* Update lib/game/components/crossing_ramp.dart
Co-authored-by: Erick <erickzanardoo@gmail.com>
* Update lib/game/components/jetpack_ramp.dart
Co-authored-by: Erick <erickzanardoo@gmail.com>
* Update test/game/components/crossing_ramp_test.dart
Co-authored-by: Erick <erickzanardoo@gmail.com>
* Update test/game/components/jetpack_ramp_test.dart
Co-authored-by: Erick <erickzanardoo@gmail.com>
* Update test/game/components/sparky_ramp_test.dart
Co-authored-by: Erick <erickzanardoo@gmail.com>
* Update lib/game/components/jetpack_ramp.dart
Co-authored-by: Erick <erickzanardoo@gmail.com>
* chore: fixed formatting
* chore: removed coverage tool
* Update lib/game/components/crossing_ramp.dart
Co-authored-by: Allison Ryan <77211884+allisonryan0002@users.noreply.github.com>
* Update test/game/components/ball_test.dart
Co-authored-by: Allison Ryan <77211884+allisonryan0002@users.noreply.github.com>
* Update lib/game/components/crossing_ramp.dart
Co-authored-by: Allison Ryan <77211884+allisonryan0002@users.noreply.github.com>
* Update lib/game/components/jetpack_ramp.dart
Co-authored-by: Allison Ryan <77211884+allisonryan0002@users.noreply.github.com>
* Update test/game/components/crossing_ramp_test.dart
Co-authored-by: Allison Ryan <77211884+allisonryan0002@users.noreply.github.com>
* Update test/game/components/pathway_test.dart
Co-authored-by: Allison Ryan <77211884+allisonryan0002@users.noreply.github.com>
* Update test/game/pinball_game_test.dart
Co-authored-by: Allison Ryan <77211884+allisonryan0002@users.noreply.github.com>
* Update test/game/components/pathway_test.dart
Co-authored-by: Allison Ryan <77211884+allisonryan0002@users.noreply.github.com>
* test: fix tests and groups
* chore: ramp area name changed to opening
* refactor: ball with mixin Layer for mask collisions
* chore: avoid foreach in a function literal
* refactor: hide maskbits and manage only with layer param
* chore: formatting file
* refactor: changed name for ramp area
* refactor: sparky+launcher into one path
* doc: doc layer for ball
* refactor: sparky to launcher
* feat: allow jetpack ramp to be over the board
* feat: refactor to allow jetpack ramp to be above board and launcher ramp
* test: coverage
* fix: fixed conflict with merge Component position
* chore: analysis fixes
* chore: doc and comments
* refactor: initial position to ramps and cleaned ramp callbacks
* refactor: improved ramp contact callback
* refactor: ball layer and ramp addAll components
* refactor: create fixtures for pathways and opening improved
* refactor: placed ramps on pinball game
* refactor: splitted layer from rampopening
* refactor: rampopening with layered mixin
* test: fixed all changes with tests
* test: fixed tests after Layer mixin changes
* chore: refactor names, test and doc
* chore: review docs and names
* fix: fixed tests and bug with initialposition collision
* chore: analysis error
* fix: fixed collision end from ramps
* test: coverage
* chore: fixed spaces between methods and other comments from pr
* chore: remove unnecessary layer set on Layered
* fix: removed unrelated files from pr
* chore: removed unused import
* refactor: ballsInside private and removed from tests
* chore: todo comment
* chore: removed unused import
* chore: removed podfile
* doc: changed Layered doc
* doc: changed Layered doc
* Update test/game/components/ramp_opening_test.dart
Co-authored-by: Alejandro Santiago <dev@alestiago.com>
* Update lib/game/components/layer.dart
Co-authored-by: Alejandro Santiago <dev@alestiago.com>
* docs: improved punctuation
Co-authored-by: Erick <erickzanardoo@gmail.com>
Co-authored-by: Allison Ryan <77211884+allisonryan0002@users.noreply.github.com>
Co-authored-by: Alejandro Santiago <dev@alestiago.com>
3 years ago
Alejandro Santiago
401244a8c0
feat: defined InitialPosition mixin ( #37 )
...
* feat: defined InitialPosition mixin
* docs: included doc comments
* refactor: cleaned test file
* fix: solved ball_test loading
* feat: included generics
3 years ago
Alejandro Santiago
7a8f808822
feat: group Baseboards and Flipper ( #47 )
...
* feat: connected baseboards to flipper
* chore: removed FlipperGroup
* refactor: simplified Baseboard constructor
* refactor: simplified BottomGroup
* refactor: changed constructors
* refactor: removed unecessary import
* refactor: modified Flipper constructor
* docs: updated doc comment
* docs: used macro for BottomGroupSide
* docs: improved doc comment
* refactor: renamed magnitude to direction
* refactor: renamed bumper to baseboard
* feat: included board tests
* docs: improved doc comment
* feat: include boardSide.direction (#46 )
* feat: implemented BoardSide.direction
* docs: included doc comment
* refactor: used _side.direction
* refactor: used ensureAdd
* chore: removed old test
* docs: improved comments
3 years ago
Alejandro Santiago
413900e89f
feat: define SlingShot component ( #39 )
...
* feat: created sling-short.dart
* refactor: used appropiate file name
* chore: included sling_shot export
* refactor: simplified _createFixtureDefs
* doc: included SlingShot in doc comment
* feat: implemented basic SlingShot
* feat: used EdgeShape instead of PolygonShape
* feat: implemented _addSlingShot method
* feat: adding placeholder art for the flippers
* Update lib/game/components/flipper.dart
Co-authored-by: Alejandro Santiago <dev@alestiago.com>
* docs: included missing documentation (#29 )
* chore: ignored lint rue
* docs: documented ball.dart
* docs: ignored lint rule
* docs: documented wall.dart
* docs: documented game_over_dialog.dart
* docs: fixed typo
* docs: included TODO comments
* fix: misisng doc
* chore: add code owners (#31 )
* feat: add character selection (#20 )
* chore: lock file
* feat: character selection page
* fix: ignore generated asset coverage
* chore: add suggestions
* feat: tint ball with theme color
* refactor: decrease theme cubit scope
* chore: minimize changes
* chore: typos and readability
* refactor: use extension for initial pinball game
* fix: tests from merge
* refactor: ignore docs for views
* refactor: revert to ignoring for file
* fix: todo analyzer warning
* refactor: remove Flutter dep from geometry (#27 )
* fix: removed flutter dependency
* test: fixed tests for assertions
* test: check assertion with isA
* ci: added geometry workflow file
* refactor: changed flame dep to vector_math for vector2
* fix: changed import for vector to vector_math_64
* Update .github/workflows/geometry.yaml
Co-authored-by: Allison Ryan <77211884+allisonryan0002@users.noreply.github.com>
Co-authored-by: Allison Ryan <77211884+allisonryan0002@users.noreply.github.com>
* chore: rename pinball game test extension (#33 )
* chore: rename pinball game test extension
* refactor: initial to create
* docs: small change
* chore: removed unecessary end callback (#30 )
* feat: adding ball spawning upon click on debug mode (#28 )
* feat: adding ball spawming upon click on debug mode
* PR suggestions
* fix: coverage
* fix: rebase
* feat: rebase fixes
* feat: moved triangle to centroid
* feat: made SlingShot a PositionBodyComponent
* feat: removed PositionBodyComponent
* refactor: moved centroid function
* refactor: simplified centroid function
* docs: typo in macro
* feat: modified restitution value
* refactor: added variable for incline
* docs: included TODO comment
* feat: included tests
* feat: removed friction from SlingShot
* feat: removed adding slinghsots
* refactor: used variables for fixtures
* feat: included side in SlingShot
* feat: included different shapes test
* docs: fixed typo
* refactor: removed unused import
* refactor: used centroid from geometry package
* docs: fixed typo
* refactor: improved triangleVertices readability
* refactor: removed EmptyGame class
Co-authored-by: Erick Zanardo <erickzanardoo@gmail.com>
Co-authored-by: Allison Ryan <77211884+allisonryan0002@users.noreply.github.com>
Co-authored-by: Rui Miguel Alonso <ruiskas@gmail.com>
3 years ago
Allison Ryan
6a68bf1ed7
feat: add round bumper ( #42 )
...
* feat: add round bumper
* refactor: PR suggestions
* fix: remove unused import 🤦♀️
3 years ago
Erick
1539ab7bd3
chore: update project to the latest flame and forge2d ( #41 )
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
Allison Ryan
f6f171b7c7
feat: add baseboards ( #34 )
...
* feat: add baseboards
* docs: baseboard
* fix: test extension
* chore: simplify rectangle
* refactor: PR suggestions
3 years ago