You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+8Lines changed: 8 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,14 @@
1
1
<!-- next-header -->
2
2
## [Unreleased] - ReleaseDate
3
3
4
+
### New
5
+
6
+
- The `level_creator` example can be installed globally with `cargo install rusty_engine --example level_creator` and run in the root of your own project with `level_creator`.
7
+
8
+
### Fixed
9
+
10
+
- Fixed sprite preset paths which broke due to the changes in 5.0.2
Copy file name to clipboardExpand all lines: scenarios/extreme_drivers_ed.md
+6-4Lines changed: 6 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,14 +12,16 @@ Navigate a driving course full of obstacles. Carefully avoid the obstacles while
12
12
13
13
## Level Setup
14
14
15
-
It can be _really_ tedious to set up dozens of obstacles via code and guessing coordinates. Instead, clone the `rusty_engine` repository and use the`level_creator` example to place several dozen obstacles and emit the level code for you to copy-and-paste into your own project.
15
+
It can be _really_ tedious to set up dozens of obstacles via code and guessing coordinates. Instead, use `rusty_engine`'s`level_creator` example to place several dozen obstacles and emit the level code for you to copy-and-paste into your own project.
16
16
17
17
The sprite preset `SpritePreset::RollingHoleStart` are the goals for collecting (you _want_ to run into them). All other sprites will be obstacles.
Copy file name to clipboardExpand all lines: tutorial/src/65-sprite-collider.md
+6-2Lines changed: 6 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -37,10 +37,14 @@ If you create a new sprite using your own image, and you want it to produce `Col
37
37
Creating colliders from scratch is quite tedius, so there is an "example" program called `collider` that you can use to create a collider! To run `collider`, clone the [`rusty_engine`](https://github.com/CleanCut/rusty_engine/) repository, place your image file in the `assets` directory (let's call it `db.png`), and then run:
38
38
39
39
```text
40
-
$ cargo run --release --example collider assets/db.png
40
+
# Install the collider example (you only need to do this once)
41
+
$ cargo install rusty_engine --example collider
42
+
43
+
# Inside your project, run the collider example
44
+
$ collider assets/db.png
41
45
```
42
46
43
-
Then follow the directions to create (or re-create) a collider and write it to a file.
47
+
Then follow the example's console instructions to create (or re-create) a collider and write it to a file.
44
48
45
49
<imgwidth="1392"alt="Screen Shot 2021-12-26 at 10 45 40 PM"src="https://user-images.githubusercontent.com/5838512/147438683-c8af2db7-66dd-463c-a269-d03f37869496.png">
0 commit comments