update assets
This commit is contained in:
parent
e6e2944056
commit
808a44e854
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
public/assets/sound/music/home.mp3
Normal file
BIN
public/assets/sound/music/home.mp3
Normal file
Binary file not shown.
@ -22,11 +22,7 @@ export const App = () => {
|
||||
<div className="footer">
|
||||
<span>
|
||||
built by{" "}
|
||||
<a
|
||||
href="https://git.simponic.xyz/simponic"
|
||||
target="_blank"
|
||||
className="tf"
|
||||
>
|
||||
<a href="https://github.com/simponic" target="_blank" className="tf">
|
||||
simponic
|
||||
</a>{" "}
|
||||
| inspired by{" "}
|
||||
|
@ -7,6 +7,17 @@ export const Title = ({ setReady }: TitleProps) => {
|
||||
<div style={{ textAlign: "center" }}>
|
||||
<h1>the abstraction engine</h1>
|
||||
<p>a game based on the lambda calculus</p>
|
||||
<p>
|
||||
engine{" "}
|
||||
<a
|
||||
href="https://git.simponic.xyz/the-abstraction-engine"
|
||||
target="_blank"
|
||||
>
|
||||
from scratch
|
||||
</a>
|
||||
</p>
|
||||
<br />
|
||||
<p>WASD/arrow keys to move, space/enter to interact</p>
|
||||
|
||||
<br />
|
||||
<hr />
|
||||
|
@ -9,9 +9,7 @@ export const MovingSound: SoundSpec = {
|
||||
name: "moving",
|
||||
states: new Map([
|
||||
[1, { name: "moving_1", url: "/assets/sound/move_1.wav" }],
|
||||
// [2, { name: "moving_2", url: "/assets/sound/move_2.wav" }],
|
||||
// [3, { name: "moving_3", url: "/assets/sound/move_3.wav" }],
|
||||
[4, { name: "moving_4", url: "/assets/sound/move_4.wav" }],
|
||||
[2, { name: "moving_2", url: "/assets/sound/move_2.wav" }],
|
||||
]),
|
||||
};
|
||||
|
||||
@ -69,6 +67,14 @@ export const Music: SoundSpec = {
|
||||
volume: 0.5,
|
||||
},
|
||||
],
|
||||
[
|
||||
"home",
|
||||
{
|
||||
name: "home",
|
||||
url: "/assets/sound/music/home.mp3",
|
||||
volume: 0.5,
|
||||
},
|
||||
],
|
||||
]),
|
||||
};
|
||||
|
||||
|
@ -116,7 +116,12 @@ export class Grid extends System {
|
||||
const moving = new Set<string>();
|
||||
moving.add(entity.id);
|
||||
|
||||
while (!this.isOutOfBounds(nextGridPosition)) {
|
||||
while (true) {
|
||||
if (this.isOutOfBounds(nextGridPosition)) {
|
||||
moving.clear();
|
||||
break;
|
||||
}
|
||||
|
||||
const { x, y } = nextGridPosition;
|
||||
const entities = Array.from(this.grid[y][x]).map(
|
||||
(id) => game.getEntity(id)!,
|
||||
|
Loading…
Reference in New Issue
Block a user