Skip to content

Commit

Permalink
Add stub code
Browse files Browse the repository at this point in the history
  • Loading branch information
richelbilderbeek committed Dec 27, 2024
1 parent 7277f32 commit 5238cf0
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 2 deletions.
11 changes: 10 additions & 1 deletion docs/chapters/click_sprite.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,13 @@ tags:
- sprite
---

# Respond to clicking on a sprite.
# Respond to clicking on a sprite

This page is a stub.

```rust
fn main() {
let mut app = create_app();
app.run();
}
```
2 changes: 1 addition & 1 deletion docs/chapters/respond_to_key_press.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ fn test_player_responds_to_key_press() {
fn main() {
let mut app = create_app();
let add_camera_fn = |mut commands: Commands| {
commands.spawn(Camera2d::default());
commands.spawn(Camera2d);
};
app.add_systems(Startup, add_camera_fn);
app.add_plugins(DefaultPlugins);
Expand Down
9 changes: 9 additions & 0 deletions docs/chapters/use_game_state.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,12 @@ tags:
---

# Use game state

This page is a stub.

```rust
fn main() {
let mut app = create_app();
app.run();
}
```
10 changes: 10 additions & 0 deletions docs/chapters/use_resources.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,13 @@ tags:
---

# Use resources

This page is a stub.

```rust
fn main() {
let mut app = create_default_app();
app.add_plugins(DefaultPlugins);
app.run();
}
```
9 changes: 9 additions & 0 deletions docs/chapters/use_window_title.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,12 @@ tags:
---

# Use window title

This page is a stub.

```rust
fn main() {
let mut app = create_app();
app.run();
}
```

0 comments on commit 5238cf0

Please sign in to comment.