Skip to content

Commit

Permalink
Merge pull request #14 from deavid/next
Browse files Browse the repository at this point in the history
Release v0.2.3-rc1 from Next
  • Loading branch information
deavid committed Jun 15, 2024
2 parents 8a0eff6 + 1e2da97 commit e348bb3
Show file tree
Hide file tree
Showing 64 changed files with 2,628 additions and 348 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
### Version 0.2.3 - 2024-06-??

**Features:**

* **TBD**:
* TBD

**Fixes:**
* TBD

### Version 0.2.2 - 2024-06-02

**Features:**
Expand Down
65 changes: 22 additions & 43 deletions Cargo.lock

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

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
workspace = { members = ["tools/ghost_radio"] }
[package]
name = "unhaunter"
version = "0.2.2"
version = "0.2.3-rc1"
edition = "2021"
default-run = "unhaunter_game"
description = "2D isometric Game about investigating paranormal hauntings"
Expand Down
26 changes: 26 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,32 @@ You can profile the build process to identify further optimizations using:
**Note:** This requires a nightly Rust toolchain.
## Building WASM locally:
https://bevy-cheatbook.github.io/platforms/wasm.html
Install deps
```bash
rustup target install wasm32-unknown-unknown
cargo install wasm-server-runner
```
Run with:
```bash
cargo run --target wasm32-unknown-unknown --release
wasm-pack build --release --target web
```
This will build in pkg/
And to test:
```bash
python3 -m http.server
```
## Community
Unhaunter has a Matrix room for discussion and collaboration. Access is by invitation only. To join, please contact deavid (@deavidsedice:matrix.org) on Matrix.
Expand Down
Binary file modified assets/img/gear_spritesheetA_48x48.aseprite
Binary file not shown.
Binary file modified assets/img/gear_spritesheetA_48x48.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/img/salt_particle.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/img/salt_pile.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/img/smoke.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
33 changes: 17 additions & 16 deletions assets/maps/tiled_maps.tiled-session
Original file line number Diff line number Diff line change
Expand Up @@ -3,34 +3,34 @@
"height": 4300,
"width": 2
},
"activeFile": "atut02_glass_house.tmx",
"activeFile": "tut01_basics.tmx",
"expandedProjectPaths": [
"."
],
"fileStates": {
"/home/deavid/tiled/unhaunter_test2.tsx": {
"scaleInDock": 1
},
"atut01_basics.tmx": {
"tut01_basics.tmx": {
"expandedGroupLayers": [
2
],
"scale": 1,
"selectedLayer": 4,
"scale": 3,
"selectedLayer": 5,
"viewCenter": {
"x": 1535.5,
"y": 767.5
"x": 1536.1666666666665,
"y": 115.49999999999999
}
},
"atut02_glass_house.tmx": {
"tut02_glass_house.tmx": {
"expandedGroupLayers": [
2
],
"scale": 4,
"selectedLayer": 9,
"viewCenter": {
"x": 620.625,
"y": 244.625
"x": 596.125,
"y": 322.375
}
},
"character1.tsx": {
Expand Down Expand Up @@ -68,8 +68,8 @@
"scale": 4,
"selectedLayer": 5,
"viewCenter": {
"x": 1534.875,
"y": 801.375
"x": 1535.875,
"y": 767.875
}
},
"map_school1.tmx": {
Expand All @@ -79,8 +79,8 @@
"scale": 1,
"selectedLayer": 8,
"viewCenter": {
"x": 1189.5,
"y": 945.5
"x": 1536,
"y": 767.5
}
},
"topdown.tsx": {
Expand Down Expand Up @@ -152,16 +152,17 @@
"map_school1.tmx",
"map_house1.tmx",
"map_house2.tmx",
"atut02_glass_house.tmx"
"tut02_glass_house.tmx",
"tut01_basics.tmx"
],
"project": "tiled_maps.tiled-project",
"property.type": "string",
"recentFiles": [
"map_school1.tmx",
"map_house1.tmx",
"map_house2.tmx",
"atut02_glass_house.tmx",
"atut01_basics.tmx",
"tut02_glass_house.tmx",
"tut01_basics.tmx",
"unhaunter_spritesheet2.tsx",
"unhaunter_spritesheetA_6x6x10.tsx",
"unhaunter_custom_tileset.tsx",
Expand Down
10 changes: 5 additions & 5 deletions assets/maps/atut01_basics.tmx → assets/maps/tut01_basics.tmx
Original file line number Diff line number Diff line change
Expand Up @@ -670,13 +670,13 @@
<layer id="10" name="FloorDecor" width="128" height="128">
<data encoding="csv">
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2147483940,0,0,2147483709,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,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0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,265,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
Expand Down
File renamed without changes.
Binary file added assets/sounds/quartz_crack.ogg
Binary file not shown.
Binary file added assets/sounds/sage_activation.ogg
Binary file not shown.
Binary file added assets/sounds/salt_drop.ogg
Binary file not shown.
3 changes: 2 additions & 1 deletion src/behavior.rs
Original file line number Diff line number Diff line change
Expand Up @@ -422,6 +422,7 @@ trait AutoSerialize: Serialize + for<'a> Deserialize<'a> + Default {
let t = format!("\"{text}\"");
serde_json::from_str(&t).context("Auto deserialize error")
}
#[allow(dead_code)]
fn to_text(&self) -> anyhow::Result<String> {
// FIXME: This is not used at all.
serde_json::to_string(self)
Expand Down Expand Up @@ -792,7 +793,7 @@ impl SpriteConfig {
p.object.weight = NotNan::new(self.properties.get_float("object:weight")).unwrap();
p.object.name = self.properties.get_string("object:name");
if p.object.name.is_empty() {
p.object.name = self.variant.clone();
p.object.name.clone_from(&self.variant.clone());
}
}

Expand Down
8 changes: 1 addition & 7 deletions src/board.rs
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ impl Position {
BoardPosition {
x: self.x.round() as i64,
y: self.y.round() as i64,
z: self.z.round() as i64,
z: 0,
}
}
pub fn rotate_by_dir(&self, dir: &Direction) -> Self {
Expand Down Expand Up @@ -1076,12 +1076,6 @@ pub fn boardfield_update(
}
}

pub const DARK_GAMMA: f32 = 1.0;
pub const LIGHT_GAMMA: f32 = 1.1;

// pub const DARK_GAMMA: f32 = 1.5;
// pub const LIGHT_GAMMA: f32 = 2.5;

pub fn compute_color_exposure(
rel_exposure: f32,
dither: f32,
Expand Down
3 changes: 3 additions & 0 deletions src/colors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,6 @@ pub const BUTTON_END_MISSION_BGCOLOR: Color = Color::rgba(0.224, 0.129, 0.122, 1
pub const BUTTON_END_MISSION_FGCOLOR: Color = Color::rgba(0.388, 0.200, 0.169, 1.0);
pub const BUTTON_END_MISSION_TXTCOLOR: Color = Color::rgba(0.851, 0.522, 0.275, 1.0);
pub const DIALOG_TEXT_COLOR: Color = Color::rgba(1.0, 1.0, 1.0, 0.7);

pub const MENU_ITEM_COLOR_ON: Color = Color::ORANGE_RED;
pub const MENU_ITEM_COLOR_OFF: Color = Color::GRAY;
Loading

0 comments on commit e348bb3

Please sign in to comment.