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
0285698e5c
feat(sandbox): made BasicFlipperGame respond to KeyEvents ( #123 )
...
* feat: made Flippers movable
* feat(sanbox): included balls in flipper example
* feat: improved moving logic
* refactor: removed unused import
3 years ago
Rui Miguel Alonso
21cc04facc
feat: spaceship entrance ramp ( #126 )
...
* feat: added spaceship entrance ramp assets
* refactor: modified ramp to fit on curves
* fix: fixed priorities and positions on ramp
* refactor: placed jetpack ramp
* fix: modified rampopening for priority changes
* fix: launcher ramp ball priority
* fix: fixed positions and priority
* chore: removed unused import
* refactor: priority on jetpack ramp
* refactor: removed position and changed sprite load method
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
Rui Miguel Alonso
c8bc7c1942
feat: spaceship drop assets ( #110 )
...
* feat: added assets for drop rail
* feat: placed assets and base bodies
* feat: assets and bases
* refactor: hide spaceship hole
* refactor: redimension curves
* fix: lint
* test: fix geometry tests
* refactor: tube to fit spaceship opening
* refactor: applied priority changes to drop tube
* test: fixed tests for ball contact with exit rail
* Update test/game/components/spaceship_exit_rail_test.dart
Co-authored-by: Alejandro Santiago <dev@alestiago.com>
* chore: formatted test file
Co-authored-by: Allison Ryan <allisonryan0002@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
e6fd5f90fa
feat: disallowed adding components to `ComponentController` ( #121 )
...
* feat: disallowed adding components to a ComponentController
* docs: rephrased text
* refactor: fixed variable typo
* feat: included addAll test
3 years ago
Alejandro Santiago
40d0fd0995
refactor: implemented FlameBlocTester ( #122 )
...
* refactor: implemented FlameBlocTester
* refactor: renamed parameter bloc to blocBuilder
3 years ago
Alejandro Santiago
cbbf7b121e
fix: flaky FireEffect test ( #124 )
...
* refactor: migrated to ParticleSystemComponent
* refactor: simplified tests
* feat: forced min count to be 1
* feat: adjusted priorities
3 years ago
Alejandro Santiago
e5c3708952
feat: implemented DashBumper assets ( #119 )
...
* chore: rebase
* chore: rebase
* chore: rebase
* docs: removed extra paragraph
* fix: removed checks
* refactor: removed ephemeral state
* refactor: uncommented code
* feat: automatically sized Sprites
* docs: included TODO comment
* refactor: corrected typo
* docs: updated doc comment
* feat: adjusted tests
* chore: rebase
* feat: included mustCallSuper
* feat: implemented FlutterForest controllers
* feat: improved tests
* fix: analyzer
* refactor: removed unneccessary mock
* feat: include DashNestBumper tests
* docs: improved doc comment
* refactor: fixed test name grammar
* fix: fixed test
3 years ago
Rui Miguel Alonso
48f831264e
feat: add dino wall ( #115 )
...
* feat: added dino walls
* refactor: moved board
* fix: undo board movement
* feat: fixing shapes for wall with asset
* fix: placed dino wall asset and shapes
* fix: fixed top wall shape
* feat: added dino bottom wall
* fix: show background
* fix: fixed geometry test
* test: added golden tests for dino wall
* test: removed unused import
* refactor: moved dino walls to pinball_components
* chore: analysis errors
* refactor: more analysis errors
* chore: analysis error
* test: added tests for dino walls
* chore: unused import
* test: refactored golden test
* refactor: refactored vertices shapes
* test: make dino wall private and removed golden tests for them
Co-authored-by: Alejandro Santiago <dev@alestiago.com>
3 years ago
Rui Miguel Alonso
8b86656412
refactor: priority layer ( #83 )
...
* refactor: removed findNested extensions (#77 )
* feat: added new Elevation for manage priority of BodyComponents
* refactor: changed ball with Elevated
* refactor: changed spaceship with Elevated
* test: tests for Elevated
* test: fix tests
* chore: removed unused
* test: fixed tests
* refactor: changed Elevated mixin to Priority extension
* test: fixed priority test changes
* chore: ignore for file
* test: fixed tests for PriorityX
* chore: unused import
* chore: removed unecessary ignore
* refactor: removed unnecessary comma
Co-authored-by: Allison Ryan <77211884+allisonryan0002@users.noreply.github.com>
* refactor: fixed grammatical error in test named
Co-authored-by: Allison Ryan <77211884+allisonryan0002@users.noreply.github.com>
* refactor: moved priority set to constructors
* chore: tests names
* doc: doc priority
* refactor: moved priority to flame dir
* feat: added priority to rampopening
* fix: fixed priority changes
* test: fixed tests for spaceship priority changes
* fix: fixed tests for priority
* chore: renamed pathwayLayer and pathwayPriority to inside
* Update packages/pinball_components/lib/src/components/ramp_opening.dart
Co-authored-by: Alejandro Santiago <dev@alestiago.com>
Co-authored-by: Alejandro Santiago <dev@alestiago.com>
Co-authored-by: Allison Ryan <77211884+allisonryan0002@users.noreply.github.com>
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
Allison Ryan
83e6cb892b
feat: dynamic ball size ( #113 )
...
* feat: scale ball and add ball asset
* refactor: increase plunger properties
* test: board dimensions
* refactor: store adjusted height
* chore: add todo
3 years ago
Alejandro Santiago
930c7fa001
refactor: used new createJoint method ( #117 )
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
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
Alejandro Santiago
631c1e9860
fix: made mocked instance late ( #114 )
3 years ago
Erick
84d7ab8564
feat: updating flame versions ( #112 )
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
e7ba6dc91d
feat: better spaceship hole area ( #109 )
...
* feat: improving the spaceship hole area
* fix: lint
* feat: improved wall area for the spaceship
* fix: lint
3 years ago
Alejandro Santiago
dd88114d1c
feat: included FlutterSignPost ( #107 )
...
* feat: loaded flutter_sign_post.png
* feat: added board priority
* feat: included FlutterSignPost
* feat: included tests
* refactor: renamed tests names for consistency
* chore: refactored exception
* docs: fixed incorrect grammar
Co-authored-by: Allison Ryan <77211884+allisonryan0002@users.noreply.github.com>
* docs: fixed typo
* refactor: cleaned SpriteComponent logic
Co-authored-by: Allison Ryan <77211884+allisonryan0002@users.noreply.github.com>
3 years ago
Erick
0b72a28183
feat: improving the spaceship hole area ( #108 )
...
* feat: improving the spaceship hole area
* fix: lint
3 years ago
Rui Miguel Alonso
4558acd03d
feat: add user at end game ( #98 )
...
* refactor: move user score to gameover dialog
* feat: added input textfield
* feat: fixed ui
* feat: send user added to bloc and firebase
* chore: todo for future ui refactor
* feat: capitalize playerinitials to bloc
* refactor: show button on success add user
* test: fixed tests
* test: adding more tests for tap
* test: fixed tests
* test: fixed tests for gameover dialog pressed buttons
* fix: fixed tests and doc
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
c4012b1c65
feat: implemented `BallType` ( #105 )
...
* feat: implemented BallType
* docs: improved doc comment
* refactor: renamed egg to extra
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
e0bfe3015c
feat: included debug Background image ( #103 )
...
* feat: added design background
* refactor: moved Background to DebugGame
* feat: included priority value
* docs: updated TODO comment
3 years ago
Alejandro Santiago
fad355b2f8
feat: positioned FlutterForest bumpers ( #104 )
...
* feat: positioned FlutterForest bumpers
* feat: removed unused parameters
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
ce8917e17d
refactor: used `descendants` to retrieve tested subject ( #94 )
...
* refactor: used descendants to retrieve the subject
* fix: included game.ready in tests
3 years ago
Erick
2d647f9630
fix: sandbox github workflow ( #99 )
...
* fix: sandbox github workflow
* fix: forcing error to test
* fix: lint
* fix: lint
3 years ago
Rui Miguel Alonso
9f1f9f4466
feat (sandbox): added layers story at sandbox to check collision with nested components ( #97 )
...
* feat: added layers story to check collision with nested components
* feat: added more components to layer story
* chore: unused import
* chore: renamed component
3 years ago
Allison Ryan
e6eacfa9e7
fix: sort scores in descending order ( #100 )
3 years ago
Erick
de963cbc86
feat: adds ball turbocharge effect ( #66 )
...
* feat: adding ball boost effect
* fix: lint
3 years ago
Allison Ryan
e6dca1ed7f
refactor: dimension and position `Plunger` ( #96 )
...
* refactor: dimension plunger
* refactor: adjust launch ramp and ball size
* refactor: use board center for positioning
Co-authored-by: Erick <erickzanardoo@gmail.com>
3 years ago
Allison Ryan
db29e5c7b1
refactor: position and dimension google letters ( #93 )
...
* refactor: relative positions
* chore: remove unused code
* test: fix failing tests
* refactor: position logic
* refactor: position logic
* chore: clean up bonus word
* refactor: use relative positions
* refactor: await adding letters
* refactor: remove local variable
* chore: remove empty line
Co-authored-by: Alejandro Santiago <dev@alestiago.com>
3 years ago
Rui Miguel Alonso
1f0a0c2f04
feat: leaderboard screen ( #51 )
...
* feat: leader board page
* feat: strings for leader board ui
* feat: navigate to leaderboard from gameover dialog
* feat: set character theme for leaderboard
* test: test leaderboard page
* chore: removed unused var from tests
* chore: leaderboard misspelling, doc and minor fixes
* chore: doc
* chore: api doc
* refactor: pass theme to leaderboard widgets
* Update lib/leaderboard/view/leaderboard_page.dart
Co-authored-by: Alejandro Santiago <dev@alestiago.com>
* chore: removed ios files
* refactor: leaderboard screen now uses leaderboard_repository models
* test: added tests for extensions
* chore: added todo to move model
* feat: added navigator helper method
* feat: add Flame compatibility to test navigator helper
* chore: removed unused import
* test: modify test to avoid time out
* chore: test method name changed
* refactor: changes from pr
* refactor: removed themecubit
* feat: provide leaderbloc
* feat: added leaderbloc to screen
* chore: removed unused imports
* chore: strings names
* fix: fixed test with model changed
* refactor: removed multirepositoryprovider
* test: remove unnecessary tests
* chore: unused variable
* chore: unused imports
Co-authored-by: Alejandro Santiago <dev@alestiago.com>
3 years ago
Allison Ryan
ae9e6453ce
feat: add launch config for sandbox ( #95 )
...
* feat: launch config for sandbox
* refactor: match existing naming
3 years ago
Erick
cf92856dc1
feat: implementing composable blueprints ( #92 )
...
* feat: implementing composable blueprints
* fix: coverage
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
Allison Ryan
e2c67571d5
feat: reshape `Baseboards` ( #85 )
...
* refactor: removed findNested extensions (#77 )
* refactor: baseboard shape and position
* chore: remove unused asset
* test: update fixture test
Co-authored-by: Alejandro Santiago <dev@alestiago.com>
3 years ago
Erick
b8f86a9976
feat: adding sandbox project on pinball_components ( #90 )
3 years ago
Allison Ryan
6caf50edc5
fix: firestore connection ( #91 )
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
394acd1802
refactor: included ScorePoint generics ( #88 )
3 years ago
Alejandro Santiago
d5d3640f0a
refactor: define `FlipperJoint` ( #72 )
...
* refactor: defined FlipperJoint
* refactor: simplified logic
* refactor: removed tests
* docs: included TODO comment
* refactor: simplified shape logic
* docs: included asset TODO comment
* refactor: removed verbose constructors
* refactor: reordered classes
* refactor: used renderBody
* chore: removed unused import
* refactor: moved renderBody to onLoad
3 years ago
Rui Miguel Alonso
f1b35d3eb2
feat: create ellipses from geometry ( #84 )
...
* feat: create ellipses from geometry
* test: geometry test for ellipse
* feat: removed required angle and added tests
* test: completed tests for geometry
* chore: unused import
* Update lib/game/components/pathway.dart
Co-authored-by: Allison Ryan <77211884+allisonryan0002@users.noreply.github.com>
* refactor: renaming params
* chore: missed test saved
Co-authored-by: Allison Ryan <77211884+allisonryan0002@users.noreply.github.com>
3 years ago