update assets

This commit is contained in:
Elizabeth Hunt 2024-03-07 21:06:36 -07:00
parent e6e2944056
commit 808a44e854
Signed by: simponic
GPG Key ID: 52B3774857EB24B1
8 changed files with 27 additions and 9 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -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{" "}

View File

@ -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 />

View File

@ -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,
},
],
]),
};

View File

@ -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)!,