Crate rename
|
|
@ -31,21 +31,21 @@ jobs:
|
|||
- name: Rust Cache # cache the rust build artefacts
|
||||
uses: Swatinem/rust-cache@v2
|
||||
- name: Download and install Trunk binary
|
||||
working-directory: crates/rpack
|
||||
working-directory: crates/rpack_egui
|
||||
run: wget -qO- https://github.com/thedodd/trunk/releases/latest/download/trunk-x86_64-unknown-linux-gnu.tar.gz | tar -xzf-
|
||||
- name: Update file
|
||||
working-directory: crates/rpack
|
||||
working-directory: crates/rpack_egui
|
||||
run: sed -i '15d' index.html
|
||||
- name: Build
|
||||
working-directory: crates/rpack
|
||||
working-directory: crates/rpack_egui
|
||||
run: ./trunk build --release
|
||||
- name: Update result file
|
||||
working-directory: crates/rpack
|
||||
working-directory: crates/rpack_egui
|
||||
run: sed -i 's|/rpack|./rpack|g' dist/index.html
|
||||
- name: Itch.io - Publish
|
||||
uses: KikimoraGames/itch-publish@v0.0.3
|
||||
with:
|
||||
gameData: ./crates/rpack/dist
|
||||
gameData: ./crates/rpack_egui/dist
|
||||
itchUsername: mevlyshkin
|
||||
itchGameId: rpack
|
||||
buildChannel: wasm
|
||||
|
|
|
|||
|
|
@ -31,10 +31,10 @@ jobs:
|
|||
- name: Rust Cache # cache the rust build artefacts
|
||||
uses: Swatinem/rust-cache@v2
|
||||
- name: Download and install Trunk binary
|
||||
working-directory: crates/rpack
|
||||
working-directory: crates/rpack_egui
|
||||
run: wget -qO- https://github.com/thedodd/trunk/releases/latest/download/trunk-x86_64-unknown-linux-gnu.tar.gz | tar -xzf-
|
||||
- name: Build # build
|
||||
working-directory: crates/rpack
|
||||
working-directory: crates/rpack_egui
|
||||
# "${GITHUB_REPOSITORY#*/}" evaluates into the name of the repository
|
||||
# using --public-url something will allow trunk to modify all the href paths like from favicon.ico to repo_name/favicon.ico .
|
||||
# this is necessary for github pages where the site is deployed to username.github.io/repo_name and all files must be requested
|
||||
|
|
@ -44,7 +44,7 @@ jobs:
|
|||
- name: Deploy
|
||||
uses: JamesIves/github-pages-deploy-action@v4
|
||||
with:
|
||||
folder: crates/rpack/dist
|
||||
folder: crates/rpack_egui/dist
|
||||
# this option will not maintain any history of your previous pages deployment
|
||||
# set to false if you want all page build to be committed to your gh-pages branch history
|
||||
single-commit: true
|
||||
|
|
|
|||
|
|
@ -68,8 +68,8 @@ jobs:
|
|||
target: wasm32-unknown-unknown
|
||||
override: true
|
||||
- name: Download and install Trunk binary
|
||||
working-directory: crates/rpack
|
||||
working-directory: crates/rpack_egui
|
||||
run: wget -qO- https://github.com/thedodd/trunk/releases/latest/download/trunk-x86_64-unknown-linux-gnu.tar.gz | tar -xzf-
|
||||
- name: Build
|
||||
working-directory: crates/rpack
|
||||
working-directory: crates/rpack_egui
|
||||
run: ./trunk build
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
/target
|
||||
/crates/*/target
|
||||
/crates/rpack/dist
|
||||
/crates/rpack_egui/dist
|
||||
/dist
|
||||
skyline-packer-output.png
|
||||
result.png
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
resolver = "2"
|
||||
members = [
|
||||
"crates/bevy_rpack",
|
||||
"crates/rpack",
|
||||
"crates/rpack_egui",
|
||||
"crates/rpack_cli",
|
||||
]
|
||||
|
||||
|
|
|
|||
11
README.md
|
|
@ -1,5 +1,8 @@
|
|||
# rpack [](https://github.com/Leinnan/rpack/actions?workflow=CI)
|
||||
|
||||
[](https://crates.io/crates/rpack_egui)
|
||||
[](https://docs.rs/rpack_egui)
|
||||
|
||||
Create tilemaps in seconds!
|
||||
|
||||
This repository contains few projects that together make a fully functional solution for generating tilemaps alongside integration to the Bevy game engine.
|
||||
|
|
@ -13,12 +16,15 @@ To open it in browser click one of the icons below:
|
|||
|
||||
A both desktop and web frontend for generating tilemaps. Just drag and drop images into the program and generate tilemaps.
|
||||
|
||||
Source code is available in `crates/rpack` directory of the repo.
|
||||
Source code is available in `crates/rpack_egui` directory of the repo.
|
||||
|
||||

|
||||
|
||||
## Bevy rPack
|
||||
|
||||
[](https://crates.io/crates/bevy_rpack)
|
||||
[](https://docs.rs/bevy_rpack)
|
||||
|
||||
A Bevy plugin with support for the `rpack.json` atlases.
|
||||
|
||||
More info available at [crates/bevy_rpack](https://github.com/Leinnan/rpack/tree/master/crates/bevy_rpack).
|
||||
|
|
@ -27,6 +33,9 @@ Repository contains example how to use plugin in Bevy.
|
|||
|
||||
## rPack CLI
|
||||
|
||||
[](https://crates.io/crates/rpack_cli)
|
||||
[](https://docs.rs/rpack_cli)
|
||||
|
||||
Command line interface for generating tilemaps.
|
||||
|
||||
```sh
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
[package]
|
||||
name = "rpack"
|
||||
name = "rpack_egui"
|
||||
version = "0.1.0"
|
||||
description = "GUI application for generating rpack atlases"
|
||||
authors = ["Piotr Siuszko <siuszko@zoho.com>"]
|
||||
|
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB |
|
Before Width: | Height: | Size: 314 KiB After Width: | Height: | Size: 314 KiB |
|
Before Width: | Height: | Size: 47 KiB After Width: | Height: | Size: 47 KiB |
|
Before Width: | Height: | Size: 21 KiB After Width: | Height: | Size: 21 KiB |
|
Before Width: | Height: | Size: 128 KiB After Width: | Height: | Size: 128 KiB |
|
|
@ -15,7 +15,7 @@ fn main() -> eframe::Result<()> {
|
|||
eframe::run_native(
|
||||
"rPack",
|
||||
native_options,
|
||||
Box::new(|cc| Ok(Box::new(rpack::Application::new(cc)))),
|
||||
Box::new(|cc| Ok(Box::new(rpack_egui::Application::new(cc)))),
|
||||
)
|
||||
}
|
||||
|
||||
|
|
@ -40,7 +40,7 @@ fn main() {
|
|||
.start(
|
||||
canvas,
|
||||
web_options,
|
||||
Box::new(|cc| Ok(Box::new(rpack::Application::new(cc)))),
|
||||
Box::new(|cc| Ok(Box::new(rpack_egui::Application::new(cc)))),
|
||||
)
|
||||
.await;
|
||||
|
||||