mirror of
https://github.com/flame-engine/flame.git
synced 2025-10-30 00:17:20 +08:00
docs: Added bouncing ball example in collision_detection examples and updated flame_forge2d to latest (#1868)
This PR adds two updates. It updates the flame_forge2d to latest version i.e on pub.dev in examples and padracing projects. Adds a bouncing ball example in the collision detection examples demonstrating a simple example of collision and bouncing of a ball from the walls around it.
This commit is contained in:
@ -1,5 +1,6 @@
|
||||
import 'package:dashbook/dashbook.dart';
|
||||
import 'package:examples/commons/commons.dart';
|
||||
import 'package:examples/stories/collision_detection/bouncing_ball_example.dart';
|
||||
import 'package:examples/stories/collision_detection/circles_example.dart';
|
||||
import 'package:examples/stories/collision_detection/collidable_animation_example.dart';
|
||||
import 'package:examples/stories/collision_detection/multiple_shapes_example.dart';
|
||||
@ -23,6 +24,12 @@ void addCollisionDetectionStories(Dashbook dashbook) {
|
||||
codeLink: baseLink('collision_detection/circles_example.dart'),
|
||||
info: CirclesExample.description,
|
||||
)
|
||||
..add(
|
||||
'Bouncing Ball',
|
||||
(_) => GameWidget(game: BouncingBallExample()),
|
||||
codeLink: baseLink('collision_detection/bouncing_ball_example.dart'),
|
||||
info: BouncingBallExample.description,
|
||||
)
|
||||
..add(
|
||||
'Multiple shapes',
|
||||
(_) => GameWidget(game: MultipleShapesExample()),
|
||||
|
||||
Reference in New Issue
Block a user