Skip to content

Commit 84da4f6

Browse files
committed
tweak readme
1 parent bc6412d commit 84da4f6

File tree

6 files changed

+56
-33
lines changed

6 files changed

+56
-33
lines changed

assets/registry.game.ron

+26-2
Original file line numberDiff line numberDiff line change
@@ -64,95 +64,119 @@ GameRegistry(
6464
author: "のる",
6565
title: "茫漠たる庭",
6666
appendix: "",
67+
url: "https://dova-s.jp/bgm/play21154.html"
6768
),
6869
"bgm/水のしたたる洞窟.ogg": (
6970
author: "",
7071
title: "",
71-
appendix: ""
72+
appendix: "",
73+
url: ""
7274
),
7375
"bgm/海岸4.ogg": (
7476
author: "",
7577
title: "",
76-
appendix: ""
78+
appendix: "",
79+
url: ""
80+
),
81+
"bgm/発見.ogg": (
82+
author: "のる",
83+
title: "発見",
84+
appendix: "",
85+
url: "https://dova-s.jp/bgm/play20256.html"
7786
),
7887
// 拠点
7988
"bgm/最果てのルージュ.ogg": (
8089
author: "のる",
8190
title: "最果てのルージュ",
8291
appendix: "",
92+
url: "https://dova-s.jp/bgm/play19795.html"
8393
),
8494
// 通常
8595
"bgm/荒れ地の先へ.ogg": (
8696
author: "松浦洋介",
8797
title: "荒れ地の先へ",
8898
appendix: "",
99+
url: "https://dova-s.jp/bgm/play17195.html"
89100
),
90101

91102
"bgm/Tides_of_Adventure.ogg": (
92103
author: "K’z Art Storage",
93104
title: "Tides of Adventure",
94105
appendix: "",
106+
url: "https://dova-s.jp/bgm/play21129.html"
95107
),
96108
"bgm/ダンジョンを踏破せし者.ogg": (
97109
author: "こーち",
98110
title: "ダンジョンを踏破せし者",
99111
appendix: "",
112+
url: "https://dova-s.jp/bgm/play20822.html"
100113
),
101114
"bgm/森のいざない.ogg": (
102115
author: "MATSU",
103116
title: "森のいざない",
104117
appendix: "",
118+
url: "https://dova-s.jp/bgm/play12135.html"
105119
),
106120
"bgm/迷宮.ogg": (
107121
author: "オオヒラセイジ",
108122
title: "迷宮",
109123
appendix: "",
124+
url: "https://dova-s.jp/bgm/play8802.html"
110125
),
111126
"bgm/忘れられた神殿.ogg": (
112127
author: "KK",
113128
title: "忘れられた神殿",
114129
appendix: "",
130+
url: "https://dova-s.jp/bgm/play629.html"
115131
),
116132
"bgm/midnight-forest-184304.ogg": (
117133
author: "Syouki Takahashi",
118134
title: "Midnight Forest",
119135
appendix: "",
136+
url: "https://pixabay.com/music/ambient-midnight-forest-184304/"
120137
),
121138
// ボス
122139
"bgm/悪魔との戦闘.ogg": (
123140
author: "今川彰人オーケストラ",
124141
title: "悪魔との戦闘",
125142
appendix: "",
143+
url: "https://dova-s.jp/bgm/play11175.html"
126144
),
127145
"bgm/アクション・バトル.ogg": (
128146
author: "田中芳典",
129147
title: "アクション・バトル",
130148
appendix: "",
149+
url: "https://dova-s.jp/bgm/play12133.html"
131150
),
132151
"bgm/Decisive_Battle.ogg": (
133152
author: "Make a field Music",
134153
title: "Decisive Battle",
135154
appendix: "",
155+
url: "https://dova-s.jp/bgm/play5746.html"
136156
),
137157
"bgm/炎神の吐息.ogg": (
138158
author: "こおろぎ",
139159
title: "炎神の吐息",
140160
appendix: "",
161+
url: "https://dova-s.jp/bgm/play298.html"
141162
),
142163
"bgm/Sacred_Sacrifice.ogg": (
143164
author: "ilodolly",
144165
title: "Sacred Sacrifice",
145166
appendix: "",
167+
url: "https://dova-s.jp/bgm/play6142.html"
146168
),
147169
"bgm/final-battle-trailer-music-217488.ogg": (
148170
author: "Ihor_Koliako",
149171
title: "FINAL BATTLE",
150172
appendix: "",
173+
url: "https://pixabay.com/music/electronic-final-battle-trailer-music-217488/"
151174
),
152175
"bgm/human-vs-machine-dark-orchestral-cinematic-epic-action-271968.ogg": (
153176
author: "Kulakovka",
154177
title: "Human vs Machine",
155178
appendix: "",
179+
url: "https://pixabay.com/music/main-title-human-vs-machine-dark-orchestral-cinematic-epic-action-271968/"
156180
),
157181
"audio/風が吹く1.ogg": (
158182
author: "",

readme.md

+19-24
Original file line numberDiff line numberDiff line change
@@ -27,34 +27,29 @@ https://magiaforge.app/ (**Desktop Chrome only** for now)
2727
- `trunk build` to build web app and publish on GitHub Pages
2828
- `cargo +nightly fmt` to format
2929

30-
Add `--features debug` to launch app in debug mode.
31-
Add `--features save` to launch app with Save feature.
30+
###### Feature Flags
31+
32+
`cargo run --features xxxx,yyyy` to enable some debug features:
33+
34+
- `debug` to enable debug draw.
35+
- `ingame` to skip main menu.
36+
- `item` to enable spell item cheat.
37+
38+
### Authoring Tools
39+
40+
This project depends on the following tools:
41+
42+
- [LDtk](https://ldtk.io/) for level design
43+
- [Aseprite](https://www.aseprite.org/) for pixel art drawing
3244

3345
### Save Data Location
3446

3547
On Windows, save data is stored in `%HOMEPATH%\AppData\Roaming\magiaforge`.
3648

3749
In browsers, save data is stored in local storage under the key `magiaforge.magiaforgeconfig`.
3850

39-
### Asset credits
40-
41-
This game depends on the following assets:
42-
43-
- 茫漠たる庭 https://dova-s.jp/bgm/play21154.html
44-
- 最果てのルージュ https://dova-s.jp/bgm/play19795.html
45-
- 荒れ地の先へ https://dova-s.jp/bgm/play17195.html
46-
- 悪魔との戦闘 https://dova-s.jp/bgm/play11175.html
47-
- Tides of Adventure https://dova-s.jp/bgm/play21129.html
48-
- ダンジョンを踏破せし者 https://dova-s.jp/bgm/play20822.html
49-
- 森のいざない https://dova-s.jp/bgm/play12135.html
50-
- 迷宮 https://dova-s.jp/bgm/play8802.html
51-
- 忘れられた神殿 https://dova-s.jp/bgm/play629.html
52-
- アクション・バトル https://dova-s.jp/bgm/play12133.html
53-
- Decisive Battle https://dova-s.jp/bgm/play5746.html
54-
- 炎神の吐息 https://dova-s.jp/bgm/play298.html
55-
- Sacred Sacrifice https://dova-s.jp/bgm/play6142.html
56-
- FINAL BATTLE (TRAILER MUSIC) https://pixabay.com/music/electronic-final-battle-trailer-music-217488/
57-
- Human vs Machine (dark orchestral cinematic epic action) https://pixabay.com/music/main-title-human-vs-machine-dark-orchestral-cinematic-epic-action-271968/
58-
- Midnight Forest https://pixabay.com/music/ambient-midnight-forest-184304/
59-
- 発見 https://dova-s.jp/bgm/play20256.html
60-
- (All Sound Effects) https://soundeffect-lab.info/
51+
### Asset Credits
52+
53+
This game depends on free musical assets from https://dova-s.jp/ .
54+
See [the asset creadit file](assets/registry.game.ron) for more details (Also you can see BGM credit in pause menu).
55+
All Sound Effects are from https://soundeffect-lab.info/ .

src/level/chunk.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
use super::entities::SpawnEvent;
12
use crate::constant::TILE_HALF;
23
use crate::constant::TILE_SIZE;
34
use crate::level::entities::Spawn;
@@ -11,8 +12,6 @@ use std::collections::HashMap;
1112
use std::collections::HashSet;
1213
use std::sync::LazyLock;
1314

14-
use super::entities::SpawnEvent;
15-
1615
#[derive(Clone, Debug, Copy)]
1716
pub struct Bounds {
1817
pub min_x: i32,

src/level/world.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
use super::chunk::position_to_index;
12
use crate::constant::*;
23
use crate::level::chunk::LevelChunk;
34
use crate::level::tile::Tile;
@@ -7,8 +8,6 @@ use crate::spell::Spell;
78
use bevy::prelude::*;
89
use serde::Deserialize;
910

10-
use super::chunk::position_to_index;
11-
1211
#[derive(Clone, PartialEq, Eq, Debug, Deserialize)]
1312
pub struct GameLevel(pub String);
1413

src/script/cmd.rs

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
use super::context::JavaScriptContext;
2-
use crate::actor::{Actor, ActorState};
2+
use crate::actor::Actor;
3+
use crate::actor::ActorState;
34
use crate::audio::NextBGM;
45
use crate::camera::GameCamera;
56
use crate::component::counter::CounterAnimated;
@@ -9,7 +10,8 @@ use crate::entity::light::spawn_flash_light;
910
use crate::hud::overlay::OverlayEvent;
1011
use crate::language::Dict;
1112
use crate::level::tile::Tile;
12-
use crate::level::world::{GameLevel, GameWorld};
13+
use crate::level::world::GameLevel;
14+
use crate::level::world::GameWorld;
1315
use crate::registry::Registry;
1416
use crate::se::SEEvent;
1517
use crate::spell::Spell;

src/script/value.rs

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
use bevy::math::Vec2;
2-
use boa_engine::{js_string, object::ObjectInitializer, property::Attribute, Context, JsValue};
2+
use boa_engine::js_string;
3+
use boa_engine::object::ObjectInitializer;
4+
use boa_engine::property::Attribute;
5+
use boa_engine::Context;
6+
use boa_engine::JsValue;
37

48
#[allow(dead_code)]
59
pub fn vec2_to_tuple(v: Vec2, context: &mut Context) -> JsValue {

0 commit comments

Comments
 (0)