Skip to content

Commit

Permalink
Update & publish new doc versions
Browse files Browse the repository at this point in the history
  • Loading branch information
Blue Fire committed Oct 23, 2024
1 parent d2cc714 commit b1291dd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/main/_sources/tutorials/space_shooter/step_1.md.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ implemented as follows:

```dart
import 'package:flame/components.dart';
import 'package:flutter/material.dart';

class Player extends PositionComponent {
static final _paint = Paint()..color = Colors.white;
Expand Down
1 change: 1 addition & 0 deletions docs/main/tutorials/space_shooter/step_1.html
Original file line number Diff line number Diff line change
Expand Up @@ -354,6 +354,7 @@ <h1>Getting Started<a class="headerlink" href="#getting-started" title="Link to
on the game screen. For now, our component will only render a white square; it could be
implemented as follows:</p>
<div class="highlight-dart notranslate"><div class="highlight"><pre><span></span><span class="k">import</span><span class="w"> </span><span class="s1">&#39;package:flame/components.dart&#39;</span><span class="p">;</span>
<span class="k">import</span><span class="w"> </span><span class="s1">&#39;package:flutter/material.dart&#39;</span><span class="p">;</span>

<span class="kd">class</span><span class="w"> </span><span class="nc">Player</span><span class="w"> </span><span class="kd">extends</span><span class="w"> </span><span class="n">PositionComponent</span><span class="w"> </span><span class="p">{</span>
<span class="w"> </span><span class="kd">static</span><span class="w"> </span><span class="kd">final</span><span class="w"> </span><span class="n">_paint</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">Paint</span><span class="p">()..</span><span class="n">color</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">Colors</span><span class="p">.</span><span class="n">white</span><span class="p">;</span>
Expand Down

0 comments on commit b1291dd

Please sign in to comment.