-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.ts
29 lines (25 loc) · 1012 Bytes
/
index.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
import { Elysia } from 'elysia'
import TINA from '../tina/lib/tina' with { type: 'text' }
import TINA_COMMON from '../tina/lib/tina.common' with { type: 'text' }
import TINA_RAYMARCH_LIGHT from '../tina/lib/raymarch/light' with { type: 'text' }
import TINA_RAYMARCH_MATERIAL from '../tina/lib/raymarch/material' with { type: 'text' }
import TINA_RAYMARCH_SCENE from '../tina/lib/raymarch/scene' with { type: 'text' }
import TINA_RAYMARCH from '../tina/lib/raymarch/raymarch' with { type: 'text' }
import TINA_RAYMARCH_CAPSULE_COLLISIONS from '../tina/lib/raymarch/collisions.capsule' with { type: 'text' }
import TINA_KEYBOARD from '../tina/lib/utils/keyboard' with { type: 'text' }
const SCRIPT = [
TINA_KEYBOARD,
TINA_COMMON,
TINA_RAYMARCH_CAPSULE_COLLISIONS,
TINA_RAYMARCH,
TINA_RAYMARCH_MATERIAL,
TINA_RAYMARCH_SCENE,
TINA_RAYMARCH_LIGHT,
TINA,
].join('\n')
const app = new Elysia()
.get('/', async () => {
return SCRIPT
})
.listen(8887)
console.log(`Tina: ${app.server?.url}`)