mirror of
https://github.com/flame-engine/flame.git
synced 2025-11-02 20:13:50 +08:00
fix some broken links on the docs
This commit is contained in:
@ -166,7 +166,7 @@ Once you are done with setting the parameters to your needs, render the Parallax
|
|||||||
Like the AnimationComponent, even if your parallax is static, you must call update on this component, so it runs its animation.
|
Like the AnimationComponent, even if your parallax is static, you must call update on this component, so it runs its animation.
|
||||||
Also, don't forget to add you images to the `pubspec.yaml` file as assets or they wont be found.
|
Also, don't forget to add you images to the `pubspec.yaml` file as assets or they wont be found.
|
||||||
|
|
||||||
An example implementation can be found in the [examples directory](https://github.com/flame-engine/flame/tree/master/doc/examples/parallax).
|
An example implementation can be found in the [examples directory](doc/examples/parallax).
|
||||||
|
|
||||||
## Box2D Component
|
## Box2D Component
|
||||||
|
|
||||||
@ -182,4 +182,4 @@ You can see a more complete example of box2d usage on [this WIP game](https://gi
|
|||||||
|
|
||||||
Currently we have a very basic implementation of a Tiled component. This API uses the lib [Tiled](https://github.com/feroult/tiled.dart) to parse map files and render visible layers.
|
Currently we have a very basic implementation of a Tiled component. This API uses the lib [Tiled](https://github.com/feroult/tiled.dart) to parse map files and render visible layers.
|
||||||
|
|
||||||
A example of how to use the API can be found [here](https://github.com/luanpotter/flame/tree/master/examples/tiled).
|
A example of how to use the API can be found [here](doc/examples/tiled).
|
||||||
|
|||||||
@ -4,4 +4,4 @@ Flame provides some features for debugging, these features are enabled when the
|
|||||||
|
|
||||||
BaseGame will also start record the fps when in debug mode, you can access the current fps by using the method `fps`.
|
BaseGame will also start record the fps when in debug mode, you can access the current fps by using the method `fps`.
|
||||||
|
|
||||||
To see an working example of the debugging features, [check this example](examples/debug).
|
To see an working example of the debugging features, [check this example](doc/examples/debug).
|
||||||
|
|||||||
@ -1,3 +1,3 @@
|
|||||||
# Gamepad
|
# Gamepad
|
||||||
|
|
||||||
Flame has a separated plugin for gamepad support, please checkout the plugin [github project](https://github.com/fireslime/flame_gamepad) for more information
|
Flame has a separated plugin for gamepad support, please checkout the plugin [github project](https://github.com/fireslime/flame_gamepad) for more information.
|
||||||
|
|||||||
@ -160,7 +160,7 @@ Animations are normally used inside `AnimationComponent`s, but custom components
|
|||||||
|
|
||||||
Animations can also be used as widgets, to do so, just use `Flame.util.animationAsWidget`
|
Animations can also be used as widgets, to do so, just use `Flame.util.animationAsWidget`
|
||||||
|
|
||||||
A complete example of using animations as widegets can be found [here](examples/animation_widget).
|
A complete example of using animations as widegets can be found [here](doc/examples/animation_widget).
|
||||||
|
|
||||||
## FlareAnimation
|
## FlareAnimation
|
||||||
|
|
||||||
|
|||||||
@ -16,7 +16,7 @@ const TextConfig config = TextConfig(fontSize: 48.0, fontFamily: 'Awesome Font',
|
|||||||
* fontSize : font size, in pts (default `24.0`)
|
* fontSize : font size, in pts (default `24.0`)
|
||||||
* color : the color, as a `ui.Color` (default black)
|
* color : the color, as a `ui.Color` (default black)
|
||||||
|
|
||||||
For more information regarding colors and how to create then, see the [Colors and the Palette](palette.md) guide.
|
For more information regarding colors and how to create then, see the [Colors and the Palette](doc/palette.md) guide.
|
||||||
|
|
||||||
After the creation of the config you can use its `render` method to draw some string on a canvas:
|
After the creation of the config you can use its `render` method to draw some string on a canvas:
|
||||||
|
|
||||||
|
|||||||
@ -4,4 +4,4 @@
|
|||||||
|
|
||||||
Right now Tiled support on Flame is quite simple and it only renders the map on the screen, other advanced features are not yet supported.
|
Right now Tiled support on Flame is quite simple and it only renders the map on the screen, other advanced features are not yet supported.
|
||||||
|
|
||||||
You can check a working example [here](examples/tiled).
|
You can check a working example [here](doc/examples/tiled).
|
||||||
|
|||||||
@ -15,8 +15,8 @@ It also differs from the default implementations provided (math.Point and ui.Off
|
|||||||
This class, accessible via `Flame.util`, has some sparse functions that are independent and good to have. They are:
|
This class, accessible via `Flame.util`, has some sparse functions that are independent and good to have. They are:
|
||||||
|
|
||||||
* fullScreen : call once in the main method, makes your app full screen (no top nor bottom bars)
|
* fullScreen : call once in the main method, makes your app full screen (no top nor bottom bars)
|
||||||
* addGestureRecognizer discussed [here](#Input)
|
* addGestureRecognizer discussed [here](doc/input.md#Input)
|
||||||
* text : discussed [here](#Text)
|
* text : discussed [here](doc/text.md#Text)
|
||||||
* initialDimensions : returns a Future with the dimension (Size) of the screen. This has to be done in a hacky way because of the reasons described in the code. If you are using `BaseGame`, you probably won't need to use these, as very `Component` will receive this information
|
* initialDimensions : returns a Future with the dimension (Size) of the screen. This has to be done in a hacky way because of the reasons described in the code. If you are using `BaseGame`, you probably won't need to use these, as very `Component` will receive this information
|
||||||
* drawWhere : a very simple function that manually applies an offset to a canvas, render stuff given via a function and then reset the canvas, without using the canvas built-in save/restore functionality. This might be useful because `BaseGame` uses the state of the canvas, and you should not mess with it.
|
* drawWhere : a very simple function that manually applies an offset to a canvas, render stuff given via a function and then reset the canvas, without using the canvas built-in save/restore functionality. This might be useful because `BaseGame` uses the state of the canvas, and you should not mess with it.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user