Skip to content

Commit

Permalink
if this don't work idk what will!!!!!!!!!
Browse files Browse the repository at this point in the history
  • Loading branch information
ELI7VH committed Jan 5, 2025
1 parent a9a5eba commit f690fe4
Show file tree
Hide file tree
Showing 12 changed files with 657 additions and 72 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion public/index.html → demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,6 @@ <h3>Looping Sfx Sounds (toggle)</h3>
<div id="loopingsfx"></div>
</div>

<script src="index.js" type="module"></script>
<script src="index.ts" type="module"></script>
</body>
</html>
7 changes: 5 additions & 2 deletions src/index.ts → demo/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
SpatialPlayer,

Check failure on line 7 in demo/index.ts

View workflow job for this annotation

GitHub Actions / deploy

'SpatialPlayer' is declared but its value is never read.
SpatialVec3,
SpatialLooper,
} from './lib'
} from '../src/lib'
import {
debug,
fix,
Expand All @@ -16,13 +16,15 @@ import {
getTarget,
makeButton,
qsi,
} from './utils'
} from '../src/utils'

// @ts-ignore
// import tezos from './audio/eli7vh-tezos-till-i-bezos-final.wav'
// @ts-ignore
// import drag from './audio/drawing.wav'

// TODO: upload all things to static assets.

type State = {
sourceWorldPosition: SpatialVec3
listenerWorldPosition: SpatialVec3
Expand Down Expand Up @@ -144,6 +146,7 @@ const main = async () => {
const clickHander = (e: MouseEvent) => {
const id = getTarget(e).id
console.log(id, 'click')
// @ts-expect-error todo: fix
ttib[id]?.()
}

Expand Down
File renamed without changes.
Loading

0 comments on commit f690fe4

Please sign in to comment.