Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commite814db9

Browse files
committed
rename to bevy_new_3d_rpg
1 parente0cb688 commite814db9

File tree

6 files changed

+81
-72
lines changed

6 files changed

+81
-72
lines changed

‎.github/workflows/release.yaml‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -49,15 +49,15 @@ permissions:
4949

5050
env:
5151
# Must be the same as the main crate name for platform dependent builds
52-
pkg_name:bevy_new_third_person
52+
pkg_name:bevy_new_3d_rpg
5353

5454
build_web:true
5555
build_linux:true
5656
build_windows:true
5757
build_macos:true
5858

5959
# The itch.io project to upload to in the format `user-name/project-name`.
60-
itch:olekspickle/bevy-third-person
60+
itch:olekspickle/bevy-3d-rpg
6161
upload_github:true
6262

6363
# The path to the assets directory.
@@ -66,7 +66,7 @@ env:
6666
# The ID of the app produced by this workflow.
6767
# Applies to macOS releases.
6868
# Must contain only A-Z, a-z, 0-9, hyphen, and period: https://developer.apple.com/documentation/bundleresources/information_property_list/cfbundleidentifier
69-
app_id:olekspickle.bevy-third-person
69+
app_id:olekspickle.bevy-3d-rpg
7070

7171
# The base filename of the binary in the package produced by this workflow.
7272
# Applies to Windows, macOS, and Linux releases.
@@ -75,18 +75,18 @@ env:
7575

7676
# The name of the `.zip` or `.dmg` file produced by this workflow.
7777
# Defaults to `app_binary_name` if commented out.
78-
app_package_name:bevy-third-person
78+
app_package_name:bevy-3d-rpg
7979

8080
# The display name of the app produced by this workflow.
8181
# Applies to macOS releases.
8282
# Defaults to `app_package_name` if commented out.
83-
app_display_name:BevyThird Person
83+
app_display_name:Bevy3D RPG
8484

8585
# The short display name of the app produced by this workflow.
8686
# Applies to macOS releases.
8787
# Must be 15 or fewer characters: https://developer.apple.com/documentation/bundleresources/information_property_list/cfbundlename
8888
# Defaults to `app_display_name` if commented out.
89-
#app_short_name: BevyNew 2D
89+
#app_short_name: Bevy3D RPG
9090

9191
# Before enabling LFS, please take a look at GitHub's documentation for costs and quota limits:
9292
# https://docs.github.com/en/repositories/working-with-files/managing-large-files/about-storage-and-bandwidth-usage

‎Cargo.lock‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

‎Cargo.toml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# GAME BINARY
22
[package]
3-
name ="bevy_new_third_person"
3+
name ="bevy_new_3d_rpg"
44
edition.workspace =true
55
version.workspace =true
66
authors.workspace =true
@@ -29,7 +29,7 @@ version = "0.1.4"
2929
authors = ["Oleks Pickle <22867443+olekspickle@users.noreply.github.com>"]
3030
license ="MIT OR Apache-2.0 OR CC0"
3131
exclude = ["assets"]
32-
repository ="https://github.com/olekspickle/bevy_new_third_person"
32+
repository ="https://github.com/olekspickle/bevy_new_3d_rpg"
3333
description ="Simple third person view 3D RPG game template with gamepad support"
3434
keywords = ["bevy","game","template","devkit","third person","gamedev"]
3535

‎README.md‎

Lines changed: 45 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
#Third Person Bevy game template (WIP)
2+
#3D RPG Bevy game template (WIP)
33
<videowidth="320"height="240"src="https://github.com/user-attachments/assets/778dd6c0-3722-42c3-ad4a-f3424ac588e2"controls="controls"> </video>
44
<videowidth="320"height="240"src="https://github.com/user-attachments/assets/0bbc555b-53ce-4e2a-bdab-d1219f857b6d"controls="controls"> </video>
55
<videowidth="320"height="240"src="https://github.com/user-attachments/assets/8692a08e-73c6-411a-b060-a971470e623a"controls="controls"> </video>
@@ -13,47 +13,22 @@ This template is based on the awesome [BevyFlock 2D template][BevyFlock] featuri
1313
This template is a great way to get started if you aim to build new 3D RPG[Bevy] game!
1414
It is not as simple as bevy_new_2d which is aimed to an easy start. It focuses to have a rather solid structure to be able to carry the weight of big projects and uses cargo workspaces for that. It adds a bit of complexity, but for big projects it's unavoidable, and this is an example of a[flat architercture](#project-structure).
1515
Start with a[basic project](#write-your-game) and[CI / CD](#release-your-game) that can deploy to[itch.io](https://itch.io).
16-
You can[try this template in your browser!](https://olekspickle.itch.io/bevy-third-person)
16+
You can[try this template in your browser!](https://olekspickle.itch.io/bevy-3d-rpg)
1717

1818
##Best way to start
1919
Install[cargo-generate] or[bevy_cli] and run:
2020
```bash
21-
cargo generate olekspickle/bevy_new_third_person -n my-rpg
21+
cargo generate olekspickle/bevy_new_3d_rpg -n my-rpg
2222
# or with bevy_cli
23-
bevy new -t=olekspickle/bevy_new_third_person my-rpg
23+
bevy new -t=olekspickle/bevy_new_3d_rpg my-rpg
2424
```
2525

26-
###Hotpatching
27-
If you want to use serving with hotpatching, you can use dioxus-cli:
28-
29-
Linux:`bash BEVY_ASSET_ROOT="." dx serve --hot-patch`
30-
31-
Windows PS:`$env:BEVY_ASSET_ROOT="." ; dx serve --hot-patch`
32-
33-
###Makefile
34-
There are also some helpful commands in[Makefile](./Makefile)
35-
36-
##Write your game
37-
38-
The best way to get started is to play around with the code you find in[`src/game/`](./src/game).
39-
This template comes with a basic project structure that you may find useful:
40-
41-
###Project structure
42-
| Path| Description|
43-
| -------------------------------------------------| ---------------------------------------------------------------------|
44-
|[`src/main.rs`](./src/main.rs)| App entrypoint where system plugins and window set up|
45-
|[`assets`](./assets)| Asset directory|
46-
|[`crates`](./crates)| A contained ordered way to improve compile times|
47-
|[`crates/asset_loading`](./crates/asset_loading)| A high-level way to load collections of asset handles as resources|
48-
|[`crates/models`](./crates/models)| Data source for the game: inputs, markers, timers|
49-
|[`crates/audio`](./crates/audio)| Marker components for sound effects and music|
50-
|[`crates/screens`](./crates/screens)| Splash/title/gameplay and other screen related systems and ui|
51-
|[`crates/scene`](./crates/scene)| Scene setup, skybox|
52-
|[`crates/game`](./crates/game)| Game mechanics & content|
53-
|[`crates/player`](./crates/player)| Player control & animation|
54-
|[`crates/ui`](./crates/ui)| Reusable UI widgets & game color pallet control|
55-
56-
Feel free to move things around however you want, though.
26+
<!-- ### Hotpatching-->
27+
<!-- If you want to use serving with hotpatching, you can use dioxus-cli:-->
28+
<!---->
29+
<!-- Linux: `bash BEVY_ASSET_ROOT="." dx serve --hot-patch`-->
30+
<!---->
31+
<!-- Windows PS:`$env:BEVY_ASSET_ROOT="." ; dx serve --hot-patch`-->
5732

5833
##Features:
5934
-[x] flat cargo workspace based project structure for game logic crates that can grow and be maintainable
@@ -72,11 +47,11 @@ Feel free to move things around however you want, though.
7247
-[x] easy drop in scene integration using awesome[skein] with a simple scene
7348

7449
###TODOs (prioritized)
50+
-[ ] add basic mood change per zone
51+
-[ ] implement different music states(exploration, combat)
7552
-[ ] custom font replace example using pre-loaded font
7653
-[ ] sky background instead of just void lol
7754
-[ ] Movement sfx: jump, dash, sprint
78-
-[ ] add basic mood change per zone
79-
-[ ] implement different music states(exploration, combat, dramatic)
8055
-[ ] spatial audio demo: boombox emitting background music
8156
-[ ] Jump with timer(tricky with tnua jump in air counter)
8257
-[ ] small door/portal demo
@@ -89,12 +64,36 @@ Feel free to move things around however you want, though.
8964
-[ ] bow
9065
-[ ] rifle
9166

67+
##Write your game
68+
69+
The best way to get started is to play around with the code you find in[`src/game/`](./src/game).
70+
This template comes with a basic project structure that you may find useful:
71+
72+
###Project structure
73+
| Path| Description|
74+
| -------------------------------------------------| ---------------------------------------------------------------------|
75+
|[`src/main.rs`](./src/main.rs)| App entrypoint where system plugins and window set up|
76+
|[`assets`](./assets)| Asset directory|
77+
|[`crates`](./crates)| A contained ordered way to improve compile times|
78+
|[`crates/asset_loading`](./crates/asset_loading)| A high-level way to load collections of asset handles as resources|
79+
|[`crates/models`](./crates/models)| Data source for the game: inputs, markers, timers|
80+
|[`crates/audio`](./crates/audio)| Marker components for sound effects and music, bus setup|
81+
|[`crates/screens`](./crates/screens)| Splash/title/gameplay and other screen related systems and ui|
82+
|[`crates/scene`](./crates/scene)| Scene setup, skybox|
83+
|[`crates/game`](./crates/game)| Game mechanics & content|
84+
|[`crates/player`](./crates/player)| Player control & animation|
85+
|[`crates/ui`](./crates/ui)| Reusable UI widgets & game color pallet control|
86+
87+
Feel free to move things around however you want, though.
88+
9289
##Run your game
9390

94-
We recommend using the[Bevy CLI](https://github.com/TheBevyFlock/bevy_cli) to run your game.
95-
Running your game locally is very simple:
91+
###Makefile
92+
There are some helpful commands in[Makefile](./Makefile) to simplify build options
93+
But generally running your game locally is very simple:
9694

97-
- Use`bevy run` or`cargo run` to run a native dev build.
95+
-`make run` if you have`cmake`
96+
- Use`bevy run` with[bevy_cli] or`cargo run` to run a native dev build.
9897
- Use this command to run a web dev build to run audio in separate thread to avoid audio stuttering:
9998
```bash
10099
bevy run web --headers="Cross-Origin-Opener-Policy:same-origin" --headers="Cross-Origin-Embedder-Policy:credentialless"
@@ -155,22 +154,22 @@ See the [`physics_in_fixed_timestep`] example for how to fix this.
155154
Choppy camera movement is almost always caused by the camera being tied too tightly to a moving target position.
156155
You can use[`smooth_nudge`] to make your camera smoothly approach its target position instead.
157156

157+
##Credits
158+
159+
The[assets](./assets) in this repository are all 3rd-party. See the see[credits](assets/credits.json) for more information.
160+
158161
##License
159162

160163
The source code in this repository is licensed under any of the following at your option:
161164
-[CC0-1.0 License](./LICENSE-CC0)
162165
-[MIT License](./LICENSE-MIT)
163166
-[Apache License, Version 2.0](./LICENSE-APACHE)
164167

165-
##Credits
166-
167-
The[assets](./assets) in this repository are all 3rd-party. See the see[credits](assets/credits.json) for more information.
168-
169168
##Bevy Compatibility
170169

171-
| bevy|bevy_new_third_person|
170+
| bevy|bevy_new_3d_rpg|
172171
| ----| ----------------------|
173-
| 0.16| main,0.1.3|
172+
| 0.16| main,0.1.4|
174173

175174
[avian3d]:https://github.com/Jondolf/avian/tree/main/crates/avian3d
176175
[bevy]:https://bevyengine.org/

‎README.md.template‎

Lines changed: 26 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,36 @@
11
# {{project-name | title_case}}
22

3-
This game project was generated using the [Bevy New Third Person](https://github.com/olekspickle/bevy_new_third_person) template.
3+
This game project was generated using the [Bevy New Third Person](https://github.com/olekspickle/bevy_new_3d_rpg) template.
44

55
## Write your game
66

77
The best way to get started is to play around with the code you find in [`src/game/`](./src/game).
88
This template comes with a basic project structure that you may find useful:
99

10-
| Path | Description |
11-
| -------------------------------------------------- | ------------------------------------------------------------------ |
12-
| [`src/main.rs`](./src/main.rs) | App entrypoint(not much going on there) |
13-
| [`src/loading/`](./src/loading) | A high-level way to load collections of asset handles as resources |
14-
| [`src/game/`](./src/game) | Game mechanics & content(inputs, scene, player control & animation)|
15-
| [`src/audio.rs`](./src/audio.rs) | Marker components for sound effects and music |
16-
| [`src/dev_tools.rs`](./src/dev_tools.rs) | Dev tools for dev builds (press \` aka backtick to toggle) |
17-
| [`src/screens/`](./src/screens) | Splash screen, title screen, gameplay screen, etc. |
18-
| [`src/ui/`](./src/ui) | Reusable UI widgets & theming |
10+
### Project structure
11+
12+
| Path | Description |
13+
| ------------------------------------------------- | --------------------------------------------------------------------- |
14+
| [`src/main.rs`](./src/main.rs) | App entrypoint where system plugins and window set up |
15+
| [`assets`](./assets) | Asset directory |
16+
| [`crates`](./crates) | A contained ordered way to improve compile times |
17+
| [`crates/asset_loading`](./crates/asset_loading) | A high-level way to load collections of asset handles as resources |
18+
| [`crates/models`](./crates/models) | Data source for the game: inputs, markers, timers |
19+
| [`crates/audio`](./crates/audio) | Marker components for sound effects and music |
20+
| [`crates/screens`](./crates/screens) | Splash/title/gameplay and other screen related systems and ui |
21+
| [`crates/scene`](./crates/scene) | Scene setup, skybox |
22+
| [`crates/game`](./crates/game) | Game mechanics & content |
23+
| [`crates/player`](./crates/player) | Player control & animation |
24+
| [`crates/ui`](./crates/ui) | Reusable UI widgets & game color pallet control |
25+
1926

2027
## Run your game
2128

22-
We recommend using the [Bevy CLI] torun your game.
23-
Running your game locally is very simple:
29+
There are some helpful commands in [Makefile](./Makefile) tosimplify build options
30+
But generally running your game locally is very simple:
2431

25-
- Use `bevy run` to run a native dev build.
32+
- `make run` if you have `cmake`
33+
- Use `bevy run` with [bevy_cli] or `cargo run` to run a native dev build.
2634
- Use this command to run a web dev build to run audio in separate thread to avoid audio stuttering:
2735
```bash
2836
bevy run web --headers="Cross-Origin-Opener-Policy:same-origin" --headers="Cross-Origin-Embedder-Policy:credentialless"
@@ -63,9 +71,7 @@ There are some known issues in Bevy that can require arcane workarounds.
6371

6472
### My audio is stuttering on web
6573

66-
Audio in web-builds can have issues in some browsers.
67-
This seems to be a general performance issue with wasm builds in all engines, the best solution is just to artificially extend loading phase(seems to be a solution people go for in other engines)
68-
74+
This template uses firewheel experimental audio runnign in the separate worker thread, so it should not be happening, but if you experience it nevertheless, here are a few tips:
6975
- If you're using materials, you should force your render pipelines to [load at the start of the game]
7076
- Optimize your game as much as you can to keep its FPS high.
7177
- Apply the suggestions from the blog post [Workaround for the Choppy Music in Bevy Web Builds].
@@ -85,6 +91,10 @@ See the [`physics_in_fixed_timestep`] example for how to fix this.
8591
Choppy camera movement is almost always caused by the camera being tied too tightly to a moving target position.
8692
You can use [`smooth_nudge`] to make your camera smoothly approach its target position instead.
8793

94+
## Credits
95+
96+
The [assets](./assets) in this repository are all 3rd-party. See the see [credits](assets/credits.json) for more information.
97+
8898

8999
[Bevy CLI]: https://github.com/TheBevyFlock/bevy_cli
90100
[Linux dependencies]: https://github.com/bevyengine/bevy/blob/main/docs/linux_dependencies.md

‎crates/models/src/pre_load.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,9 @@ pub struct Timers {
7979

8080
#[derive(Clone,Debug,Default,Serialize,Deserialize,Reflect)]
8181
pubstructCamera{
82+
pubedge_margin:f32,
8283
pubrotate_speed:f32,
8384
pubzoom_speed:f32,
84-
pubedge_margin:f32,
8585
pubmax_speed:f32,
8686
pubmin_height:f32,
8787
pubmax_height:f32,

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp