Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce poor man's ECS #14

Merged
merged 8 commits into from
Sep 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Rust builds
/target
target/

# This file contains environment-specific configuration like linker settings
.cargo/config.toml
Expand Down
35 changes: 19 additions & 16 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,14 @@ web-debug = ["console_error_panic_hook"]
[dependencies]
anyhow = "1.0.86"
bitflags = "2.6.0"
dyn-clone = "1.0.17"
glam = "0.28.0"
image = { version = "0.25.2", default-features = false, features = ["png"] }
log = "0.4.22"
rusttype = "0.9.3"
serde = { version = "1.0.207", features = ["derive"] }
serde_json = "1.0.124"
roast2d_derive = { version = "0", path = "roast2d_derive" }


# Non-Wasm32 target
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
Expand Down
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ I wrote an article explaining [why Roast2D was made](https://jjydev.org/roast-2d

## Features

- Non ECS, just built-in entity with trait extension
- Simple physics and collision detection
- [LDTK][LDTK] level editor integration
- [Poor man's ECS][poor-man-ecs], no archetype, just a little bit ECS to improve the composition ability
- Simple physics and collision
- [LDTK][LDTK] editor integration
- Multi-platform (via SDL2 and WebAssembly)


Expand Down Expand Up @@ -59,3 +59,4 @@ The source code is licensed under MIT.
[high_impact]: https://github.com/phoboslab/high_impact
[demo]: https://github.com/jjyr/roast2d/tree/master/examples
[balloon]: https://github.com/jjyr/balloon-game
[poor-man-ecs]: https://github.com/jjyr/roast2d/pull/14
Loading
Loading