Allison Ryan
9714bead89
feat: gravity override ( #192 )
3 years ago
Erick
43ca2beca7
feat: game over with initials input ( #187 )
...
* adding backboard stories
* progress on the input
* feat: finishing contrls
* adding missing tests
* tests
* removing todo
* Apply suggestions from code review
Co-authored-by: Allison Ryan <77211884+allisonryan0002@users.noreply.github.com>
* feat: pr suggestions
* feat: pr suggestions
* fix: lint
* feat: pr suggestions
Co-authored-by: Allison Ryan <77211884+allisonryan0002@users.noreply.github.com>
3 years ago
Allison Ryan
707e2e78b0
chore: bump flame versions ( #185 )
...
* chore: bumped version numbers
* refactor: resolved gravityScale problems
* chore: fix inverted y axis issues
* test: update tests related to y directions
* fix: unused math imports
* chore: flame version in sandbox
* fix: merge axis adjustments
Co-authored-by: alestiago <dev@alestiago.com>
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
arturplaczek
034c3719bf
chore: StartGameBloc for control flow before launch the game ( #184 )
3 years ago
Allison Ryan
e1bdb0e14b
feat: prevent re-entering launch ramp ( #174 )
...
* fix: launch ramp render issue
* feat: prevent going back into launch ramp
* fix: changes from merge
3 years ago
Allison Ryan
bc53fb64d9
refactor: ball priority ( #183 )
...
* refactor: ball priority
* refactor: ramp opening and score text
3 years ago
arturplaczek
64f3bbea5e
chore: update characters theme ( #182 )
3 years ago
arturplaczek
7bd0a60bc7
chore: add png assets for character dialog ( #181 )
3 years ago
Allison Ryan
3ead0f76b0
refactor: spaceship ramp curve ( #173 )
...
* refactor: spaceship ramp curve and new assets
* refactor: use separate base assets
* refactor: group spaceship stories
* refactor: set opacity on all sprite descendants
* chore: move positioning
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
Allison Ryan
b424f0a008
feat: add Dash animatronic ( #169 )
...
* feat: add Dash animatronic
* refactor: controlled animatronic
* fix: unused import
* refactor: remove animatronic controller
* chore: non-nullable onLoad
* test: animatronic is in forest
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
Rui Miguel Alonso
69a88441a6
feat: added SparkyFireZone component to the board ( #165 )
...
* feat: added SparkyFireZone component to the board
* chore: doc for sparky fire zone
* refactor: moved sparky from board to pinball
* refactor: ControlledSparkyBumper visible for testing
* test: fixed test
* test: fixed sparky test in pinball
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
Allison Ryan
502babf38e
refactor: flipper position and angle ( #161 )
...
* chore: board todos
* refactor: flipper position and angle
* fix: unused import
* style: add space in comment
* chore: half sweeping angle
3 years ago
Erick
5fe5fc007d
feat: adding assets manager ( #163 )
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
Rui Miguel Alonso
4744f552f0
fix: removed ghost PlungerAnchor shape ( #162 )
3 years ago
Alejandro Santiago
d86ef40cb9
feat: Flipper joint adjustment ( #159 )
...
* feat(sandbox): removed FlipperTracingGame
* feat: adjusted flipper anchor
* refacto: adjusted anchoring points
* refactor: removed unused import
* refactor: renamed FlipperGame
3 years ago
Allison Ryan
2f40dcc971
feat: add slingshots ( #148 )
...
* feat: add slingshots
* test: slingshot
* feat: add slingshot to sandbox
* chore: add todo
3 years ago
Alejandro Santiago
655007b2d2
feat: improved extra ball logic ( #151 )
3 years ago
Rui Miguel Alonso
d798fdf9fe
feat: plunger asset ( #145 )
...
* 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
3 years ago
Alejandro Santiago
1a8f534ece
refactor: test with an empty game ( #147 )
...
* refactor: used EmptyPinballGame
* refactor: removed extension
* refactor: used EmptyPinballGame
* fix: merge conflicts
3 years ago
Allison Ryan
625e033709
chore: preload kicker assets ( #146 )
3 years ago
Rui Miguel Alonso
39b04c1393
feat: kicker assets and dimension ( #144 )
...
* refactor: added kicker asset and fixed dimensions and sizes
* refactor: loadsprite for kicker
* test: added golden test for kicker
* feat: included Kicker sandbox
* refactor: analyzer fixes
Co-authored-by: alestiago <dev@alestiago.com>
3 years ago
Allison Ryan
d25643ce9a
fix: component render order ( #142 )
...
* fix: simplify and order priorities
* test: remove position
3 years ago
Erick
c65dfb6001
feat: adds sound effects ( #143 )
...
* feat: adding placeholder sound effects
* feat: adding sound effects
* fix: lint
* fix: adding pinball audio to mock
* fix: tests
3 years ago
Allison Ryan
4e0f0ffe29
refactor: smooth out drop tube exit ( #135 )
...
* refactor: shrink sensor and add foreground
* fix: uncomment line
* style: trailing comma
* refactor: organize spaceship assets
* refactor: asset name change and size fix
3 years ago
Erick
d857a784b2
fix: ball spawn logic ( #136 )
...
* fix: ball spawn logic
* Update lib/game/components/controlled_ball.dart
Co-authored-by: Alejandro Santiago <dev@alestiago.com>
Co-authored-by: Alejandro Santiago <dev@alestiago.com>
3 years ago
Allison Ryan
b41cd80540
feat: add game boundaries ( #131 )
...
* feat: add outer and bottom boundaries
* test: add golden test
* refactor: load sprite method
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
Alejandro Santiago
2c425670f6
feat: added ChromeDino assets ( #138 )
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
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
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
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
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
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
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
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
Rui Miguel Alonso
573e16d0d5
refactor: leaderboard model ( #78 )
...
* refactor: changed name of LeaderboardEntry at LeaderboardRepository to LeaderboardEntryData
* chore: doc and analysis errors
* refactor: removed findNested extensions (#77 )
* Update lib/leaderboard/bloc/leaderboard_bloc.dart
Co-authored-by: Allison Ryan <77211884+allisonryan0002@users.noreply.github.com>
* Update lib/leaderboard/bloc/leaderboard_bloc.dart
Co-authored-by: Allison Ryan <77211884+allisonryan0002@users.noreply.github.com>
* fix: leaderboard gen file
* refactor: moved leaderboard models to separate path
* test: fixed tests with leaderboard model
* chore: doc
Co-authored-by: Alejandro Santiago <dev@alestiago.com>
Co-authored-by: Allison Ryan <77211884+allisonryan0002@users.noreply.github.com>
3 years ago
Alejandro Santiago
5bbfd0c362
refactor: made Pathway createFixtureDefs public ( #81 )
...
* refactor: made createFixtureDefs public
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
Alejandro Santiago
d5f41277c8
fix: set userData for ScorePoints #67
3 years ago
Allison Ryan
ed36a162d6
refactor: dimension boundaries according to designs ( #75 )
...
* refactor: correctly dimension boundaries
* refactor: adjust zoom level
3 years ago
Erick
c03cf6b2a2
chore: refactoring to use flutter gen on the game ( #73 )
...
* chore: refactoring to use flutter gen on the game
* fix: lint
* Update lib/game/components/spaceship.dart
Co-authored-by: Allison Ryan <77211884+allisonryan0002@users.noreply.github.com>
* fix: lint
Co-authored-by: Allison Ryan <77211884+allisonryan0002@users.noreply.github.com>
3 years ago
Erick
c0f451b6f7
fix: camera position ( #74 )
...
* fix: camera position
* Update lib/game/pinball_game.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
Rui Miguel Alonso
5f90e62258
fix: deactivate bonus word while effect ( #61 )
...
* fix: fixed error activating bottom letter while bonus word animation
* test: coverage for test isEnabled
* Update lib/game/components/bonus_word.dart
Co-authored-by: Alejandro Santiago <dev@alestiago.com>
* chore: test method name
Co-authored-by: Alejandro Santiago <dev@alestiago.com>
Co-authored-by: Erick <erickzanardoo@gmail.com>
3 years ago
Erick
a111fd417e
feat: fixed positioning ( #70 )
...
* feat: game uses fixed positioning now
* feat: fixed positioning
* feat: pr suggestion
* lint
3 years ago
Alejandro Santiago
4af09b64fa
chore: bumped flame versions ( #71 )
...
* chore: increased version
* fix: changes due to versions
3 years ago
Rui Miguel Alonso
e0e8fabce5
feat: leaderboard bloc ( #57 )
...
* feat: added bloc for request ranking
* feat: added empty repository
* test: tests for bloc
* refactor: adapt bloc events and models to what leaderboard repository has
* feat: extension to convert between CharacterTheme and CharacterType
* doc: documented leaderboard bloc
* refactor: merge with leaderboard_repository
* doc: completed doc
* chore: unused import, trailing comma
* chore: removed ios files
* Update lib/leaderboard/bloc/leaderboard_bloc.dart
Co-authored-by: Erick <erickzanardoo@gmail.com>
* Update lib/leaderboard/bloc/leaderboard_bloc.dart
Co-authored-by: Erick <erickzanardoo@gmail.com>
* refactor: remove props from abstract event class to force childs to implement it
* Update lib/leaderboard/bloc/leaderboard_bloc.dart
Co-authored-by: Alejandro Santiago <dev@alestiago.com>
* Update lib/leaderboard/bloc/leaderboard_event.dart
Co-authored-by: Alejandro Santiago <dev@alestiago.com>
* Update lib/leaderboard/bloc/leaderboard_event.dart
Co-authored-by: Alejandro Santiago <dev@alestiago.com>
* Update lib/leaderboard/bloc/leaderboard_state.dart
Co-authored-by: Alejandro Santiago <dev@alestiago.com>
* Update lib/leaderboard/bloc/leaderboard_state.dart
Co-authored-by: Alejandro Santiago <dev@alestiago.com>
* Update lib/leaderboard/bloc/leaderboard_state.dart
Co-authored-by: Alejandro Santiago <dev@alestiago.com>
* Update lib/leaderboard/bloc/leaderboard_state.dart
Co-authored-by: Alejandro Santiago <dev@alestiago.com>
* Update lib/leaderboard/bloc/leaderboard_event.dart
Co-authored-by: Alejandro Santiago <dev@alestiago.com>
* chore: ignore doc for file
* chore: wrong reference at doc
* Update lib/leaderboard/bloc/leaderboard_state.dart
Co-authored-by: Alejandro Santiago <dev@alestiago.com>
* Update lib/leaderboard/bloc/leaderboard_state.dart
Co-authored-by: Alejandro Santiago <dev@alestiago.com>
* Update lib/leaderboard/bloc/leaderboard_state.dart
Co-authored-by: Alejandro Santiago <dev@alestiago.com>
* refactor: leaderboard state initial method
Co-authored-by: Erick <erickzanardoo@gmail.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
Alejandro Santiago
5b355ff406
refactor: used size instead of width and height ( #69 )
3 years ago
Rui Miguel Alonso
aa1a2d7674
feat: connect spaceship ramp ( #65 )
...
* refactor: improve layer and ramp to allow connection between different layers outside from board
* refactor: modified spaceship to be Layered and RampOpening
* refactor: moved ramp and game components to connect jetpack ramp with spaceship
* test: test coverage and removed layer unnecessary tests for spaceship
* refactor: jetpack ramp removed rotation
* refactor: hardcoded layer spaceship inside each component
Co-authored-by: Erick <erickzanardoo@gmail.com>
3 years ago
Alejandro Santiago
38b28243a7
feat: allow `Ball` to be stopped and resumed ( #58 )
...
* feat: implemented stop and reusme methods
* feat: included tests
* docs: improved doc comment
* feat: improved tests
* feat: removed gravity from tests
* refactor: renamed tests
3 years ago
Alejandro Santiago
32529e42be
feat: made`SlingShot` rounded ( #63 )
...
* feat: made SlingShot rounded
* feat: updated SlingShot tests
* refactor: defined Shape extension
* refactor: fixed test name typo
Co-authored-by: Rui Miguel Alonso <ruiskas@gmail.com>
3 years ago
Erick
1af0c47328
feat: Blueprints as a method of grouping game components ( #62 )
...
* feat: Blueprints as a method of grouping game components
* fix: lint
* feat: pr suggestions
* feat: pr suggestions
* fix: test from merge
3 years ago
Alejandro Santiago
74e448cbf9
docs: renamed Anchor reference ( #64 )
...
* docs: renamed Anchor reference
* docs: updated Anchor reference
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
Allison Ryan
bc5a2f343e
chore: connect app to firebase ( #55 )
...
* docs: changes missed in last PR
* chore: connect to firebase
* chore: hide firebase setup
* refactor: revert ios changes
* chore: update gitignore
3 years ago
Alejandro Santiago
aba49660c2
feat: include DashForest area ( #49 )
...
* feat: removed Wall friction
* feat: included SlingShot
* feat: adjusted SlingShot size
* feat: included tests
* refactor: fixed tests
* feat: included DashForest
* feat: included tests
* docs: used correct reference
* docs: fixed typo in comment
* docs: improved doc comments
* refactor: used initialPosition API
3 years ago
Alejandro Santiago
9fd7078968
fix: correctly handled key propagation ( #53 )
3 years ago
Alejandro Santiago
dc3de740d3
fix: used `initialPosition` in `BodyDef` ( #52 )
...
* fix: using BodyDef
* feat: included test
* refactor: removed TODO
3 years ago
Alejandro Santiago
0dc8851e3b
feat: implemented `InitialPosition` on `BodyComponent`s ( #50 )
...
* feat: made Baseboard use InitialPosition
* feat: made Plunger use InitialPosition
* feat: made SlingShot use InitialPosition
* fix: fixed plunger not initialised
* feat: made RoundBumper use InitialPosition
* feat: made Pathway use InitialPosition
* feat: made JointAnchor use InitialPosition
* feat: made BonusWord use InitialPosition
* feat: changed override to onLoad
* feat: made Flipper use InitialPosition
* feat: made Ball use InitialPosition
* feat: made InitialPosition position the body
* feat: included default value
* feat: removed unnecessary positioning
* refactor: removed old test
* refactor: removed unnecessary tests
* refactor: improved assertion message
Co-authored-by: Erick <erickzanardoo@gmail.com>
Co-authored-by: Erick <erickzanardoo@gmail.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
1d30278ee4
feat: group Slingshots ( #48 )
...
* feat: removed Wall friction
* feat: included SlingShot
* feat: adjusted SlingShot size
* feat: included tests
* refactor: fixed tests
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
Alejandro Santiago
b93e104b08
feat: include boardSide.direction ( #46 )
...
* feat: implemented BoardSide.direction
* docs: included doc comment
3 years ago
Allison Ryan
45f1c6e48b
feat: add how to play dialog ( #45 )
...
* feat: add how to play dialog
* style: comma for readability
3 years ago
Erick
78a616ccd1
feat: adding effect on completing bonus word ( #44 )
...
* feat: adding effect on completing bonus word
* Apply suggestions from code review
Co-authored-by: Allison Ryan <77211884+allisonryan0002@users.noreply.github.com>
* feat: pr suggestions
Co-authored-by: Allison Ryan <77211884+allisonryan0002@users.noreply.github.com>
3 years ago
Allison Ryan
2671ec4020
chore: anchor plunger internally ( #43 )
...
* chore: anchor plunger internally
* chore: remove group
* Update lib/game/components/plunger.dart
Co-authored-by: Alejandro Santiago <dev@alestiago.com>
Co-authored-by: Alejandro Santiago <dev@alestiago.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
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
Alejandro Santiago
ddec3c0f44
feat: implemented Flipper grouping ( #32 )
...
* feat: started implementing FlipperGroup
* refactor: simplified Flipper logic
* refactor: used extension instead of condition
* docs: used "loads" over "adds"
* feat: used size rather than width and height
* refactor: removed unecessary mixin
* feat: reorder methods
* refactor: removed _joint over joint
* docs: fixed macro typo
* feat: unawait add operation
* feat: included tests
* 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: 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>
* feat: add plunger to board (#25 )
* feat: add plunger to board
* refactor: leave spawn ball synchronous
* fix: ball test
* refactor: position ball internally
* fix: ball position test
* refactor: use joint specific anchor
* refactor: remove ballSize
* fix: plunger position
* refactor: use relative positioning
Co-authored-by: Alejandro Santiago <dev@alestiago.com>
* refactor: added missing white space
Co-authored-by: Allison Ryan <77211884+allisonryan0002@users.noreply.github.com>
* refactor: adding missing white space
Co-authored-by: Allison Ryan <77211884+allisonryan0002@users.noreply.github.com>
* refactor: renamed test
* refactor: used ! instead of ?
* chore: rebasing
* refactor: simplified Flipper logic
* refactor: used extension instead of condition
* docs: used "loads" over "adds"
* feat: used size rather than width and height
* refactor: removed unecessary mixin
* feat: reorder methods
* refactor: removed _joint over joint
* docs: fixed macro typo
* chore: rebasing
* refactor: added missing white space
* refactor: used ! instead of ?
Co-authored-by: Allison Ryan <77211884+allisonryan0002@users.noreply.github.com>
Co-authored-by: Erick <erickzanardoo@gmail.com>
3 years ago
Allison Ryan
19c0172cac
feat: add plunger to board ( #25 )
...
* feat: add plunger to board
* refactor: leave spawn ball synchronous
* fix: ball test
* refactor: position ball internally
* fix: ball position test
* refactor: use joint specific anchor
* refactor: remove ballSize
* fix: plunger position
* refactor: use relative positioning
Co-authored-by: Alejandro Santiago <dev@alestiago.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
Erick
d0756e0b60
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
3 years ago
Alejandro Santiago
e9d2d13bb3
chore: removed unecessary end callback ( #30 )
3 years ago
Allison Ryan
ffef053678
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
3 years ago
Erick Zanardo
b92ee475a2
fix: misisng doc
3 years ago
Erick
9aab90efe3
Merge branch 'main' into feat/flipper-placeholder-art
3 years ago
Alejandro Santiago
e9776a8d5e
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
3 years ago
Erick
6ed0203054
Update lib/game/components/flipper.dart
...
Co-authored-by: Alejandro Santiago <dev@alestiago.com>
3 years ago
Erick
42bcd3c012
Merge branch 'main' into feat/flipper-placeholder-art
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
c1a25df01a
feat: adding placeholder art for the flippers
3 years ago
RuiAlonso
85cbe42958
refactor: renamed wall1 and wall2 vars
3 years ago
RuiAlonso
ec300bec9c
fix: fix merge conflicts with imports from main
3 years ago
Alejandro Santiago
360b5876cf
feat: Flipper ( #15 )
...
* feat: explicitely imported Anchor
* feat: implemented Flipper
* feat: implemented Flipper in PinballGame
* feat: implemented calculateRequiredSpeed
* feat: included right and left constructors
* feat: used right and left constructors
* refactor: cleaned calcualteSpeed method
* refactor: used width and height instead of size
* feat: implemented FlipperAnchor
* feat: implemented BoardSide enum
* docs: used prose in doc comment
* feat: implemented BoardSideX
* refactor: used isLeft instead of isRight
* refactor: implemented unlock method
* refactor: same line assignment
Co-authored-by: Erick <erickzanardoo@gmail.com>
* feat: add themes
* feat: add theme cubit
* test: character themes
* test: remove grouping
* refactor: move themes to package
* chore: add workflow
* fix: workflow
* docs: character themes update
* refactor: one theme for entire game
* chore: add to props
* fix: changing ball spawning point to avoid context errors
* refactor: modified unlock method due to invalid cast
* feat: included test for BoardSide
* refactor: removed sweepingAnimationDuration
* feat: tested flipper.dart
* refactor: included flippersPosition
* refactor: implemented _addFlippers method
* feat: centered vertices
* feat: modified test to match new center
* refactor: removed unecessary parenthesis
* refactor: removed unecessary calculation
* fix: changing ball spawning point to avoid context errors
* chore: rebasing
* docs: included FIXME comment
* feat: moved key listening to Flipper
* docs: include TOOD comment
* feat: including test and refactor
* docs: fixed doc comment typo
Co-authored-by: Allison Ryan <77211884+allisonryan0002@users.noreply.github.com>
* docs: fixed do comment template name
Co-authored-by: Allison Ryan <77211884+allisonryan0002@users.noreply.github.com>
* refactor: removed unnecessary verbose multiplication
Co-authored-by: Allison Ryan <77211884+allisonryan0002@users.noreply.github.com>
* refactor: removed unnecessary verbose multiplication
* refactor: used ensureAddAll instead of ensureAdd
Co-authored-by: Allison Ryan <77211884+allisonryan0002@users.noreply.github.com>
* docs: fixed doc comment typo
* refactor: used bigCircleShape.radius
* refactor: reorganized methods
* docs: improved doc comment
* refactor: removed unecessary class variables
* docs: fix doc comment typo
* refactor: removed unused helper
* fix: simplified keyEvents
* fix: corrected erroneous key tests
* refactor: modified component tests
* refactor: capitalized Flipper test description
* refactor: changed angle calculations
* fix: tests
* refactor: removed exta line
Co-authored-by: Erick <erickzanardoo@gmail.com>
Co-authored-by: Allison Ryan <allisonryan0002@gmail.com>
Co-authored-by: Allison Ryan <77211884+allisonryan0002@users.noreply.github.com>
3 years ago
RuiAlonso
bbab659b85
refactor: changed docs and use angles in radians instead of degrees
3 years ago
Erick Zanardo
884d8b36b0
fix: lint
3 years ago
Erick Zanardo
38b8a28ffc
feat: pr suggestions
3 years ago
Erick
f9f109ba5a
Apply suggestions from code review
...
Co-authored-by: Alejandro Santiago <dev@alestiago.com>
3 years ago
Erick Zanardo
a3dc9d09cf
feat: adding game hud
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
RuiAlonso
5bff54f3d8
Merge branch 'main' into feat/paths
3 years ago
Erick Zanardo
df2ce91b06
feat: adding bonus letter feature state management
3 years ago
Erick
aca7022fdb
Merge pull request #19 from VGVentures/feat/ball-placeholder-asset
...
feat: adding ball component placeholder asset
3 years ago
Erick
8a5fbda51f
Apply suggestions from code review
...
Co-authored-by: Allison Ryan <77211884+allisonryan0002@users.noreply.github.com>
3 years ago
Erick
0b9a0c2c6a
Merge pull request #16 from VGVentures/doc/wall-docs
...
docs: adding dart docs to the wall component
3 years ago
Erick Zanardo
a2093811fa
feat: adding tests
3 years ago
RuiAlonso
6b3158b019
chore: removed unscope Ball refs in doc
3 years ago
RuiAlonso
4290cb5a8d
refactor: changed math package to geometry
3 years ago
RuiAlonso
4faf703648
chore: applied changes from GH comments, doc descriptions, var names, asserts, etc
3 years ago
alestiago
bf4b262a9d
docs: removed erroneous reference
3 years ago
Erick Zanardo
ac0aca5f8f
feat: adding placeholder sprite for the ball component
3 years ago
Erick
618ce97adc
Apply suggestions from code review
...
Co-authored-by: Alejandro Santiago <dev@alestiago.com>
3 years ago
Erick Zanardo
a8c2257ce3
fix: changing ball spawning point to avoid context errors
3 years ago
Erick Zanardo
9587a4fe77
docs: adding dart docs to the wall component
3 years ago
Allison Ryan
530f110fb9
Merge pull request #11 from VGVentures/feat/character-theming
...
feat: add theming for different characters
3 years ago
RuiAlonso
7e43e0042e
refactor: changed name of Path to Pathway
3 years ago