-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
942 lines (888 loc) · 32.3 KB
/
index.html
File metadata and controls
942 lines (888 loc) · 32.3 KB
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>MavonEngine – Three.js Game Engine for Multiplayer Browser Games</title>
<meta name="description" content="MavonEngine is a Three.js game engine built for real-time multiplayer — the only one with server-authoritative physics built in. Unified server-client architecture, WebRTC networking, Rapier physics." />
<meta name="keywords" content="three.js game engine, threejs multiplayer, multiplayer game engine, browser game engine, three.js multiplayer game, WebRTC game engine, server authoritative physics" />
<meta property="og:title" content="MavonEngine – Three.js Game Engine for Multiplayer Browser Games" />
<meta property="og:description" content="The Three.js game engine for multiplayer. Server-authoritative physics, real-time WebRTC networking, and unified server-client architecture — all in one TypeScript package." />
<meta property="og:url" content="https://gameengine.js.org" />
<meta property="og:type" content="website" />
<meta name="google-site-verification" content="E3Ls99Wg00JQ4KWutCpjA6QbHI8XRRAmlxPcEdN7hvM" />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content="MavonEngine – Three.js Game Engine for Multiplayer" />
<meta name="twitter:description" content="The only Three.js game engine with server-authoritative physics built in. Real-time multiplayer, WebRTC, Rapier, TypeScript." />
<link rel="canonical" href="https://gameengine.js.org" />
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link href="https://fonts.googleapis.com/css2?family=Bebas+Neue&family=DM+Mono:wght@400;500&family=DM+Sans:ital,wght@0,300;0,400;0,500;1,300&display=swap" rel="stylesheet" />
<style>
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
--bg: #09090c;
--surface: #111118;
--border: #1e1e2e;
--accent: #00e5ff;
--accent2: #7c3aed;
--text: #e2e2f0;
--muted: #5a5a7a;
--glow: rgba(0, 229, 255, 0.12);
--ff-display: 'Bebas Neue', sans-serif;
--ff-mono: 'DM Mono', monospace;
--ff-body: 'DM Sans', sans-serif;
}
html { scroll-behavior: smooth; }
body {
background: var(--bg);
color: var(--text);
font-family: var(--ff-body);
font-weight: 300;
line-height: 1.6;
overflow-x: hidden;
}
/* ─── GRID NOISE BACKGROUND ─── */
body::before {
content: '';
position: fixed;
inset: 0;
background-image:
linear-gradient(rgba(0,229,255,0.03) 1px, transparent 1px),
linear-gradient(90deg, rgba(0,229,255,0.03) 1px, transparent 1px);
background-size: 48px 48px;
pointer-events: none;
z-index: 0;
}
/* ─── NAV ─── */
nav {
position: fixed;
top: 0; left: 0; right: 0;
z-index: 100;
display: flex;
align-items: center;
justify-content: space-between;
padding: 20px 48px;
border-bottom: 1px solid transparent;
transition: border-color 0.3s, background 0.3s;
backdrop-filter: blur(0px);
}
nav.scrolled {
border-color: var(--border);
background: rgba(9,9,12,0.85);
backdrop-filter: blur(16px);
}
.nav-logo {
font-family: var(--ff-display);
font-size: 1.5rem;
letter-spacing: 0.08em;
color: var(--accent);
text-decoration: none;
}
.nav-links {
display: flex;
gap: 32px;
list-style: none;
}
.nav-links a {
color: var(--muted);
text-decoration: none;
font-size: 0.8rem;
letter-spacing: 0.12em;
text-transform: uppercase;
transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
background: var(--accent);
color: var(--bg);
text-decoration: none;
font-family: var(--ff-mono);
font-size: 0.75rem;
font-weight: 500;
letter-spacing: 0.06em;
padding: 9px 22px;
clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
transition: opacity 0.2s;
}
.nav-cta:hover { opacity: 0.85; }
/* ─── HERO ─── */
.hero {
position: relative;
min-height: 100vh;
display: flex;
flex-direction: column;
justify-content: center;
padding: 120px 48px 80px;
z-index: 1;
overflow: hidden;
}
/* Radial accent orbs */
.hero::after {
content: '';
position: absolute;
width: 700px; height: 700px;
border-radius: 50%;
background: radial-gradient(circle, rgba(124,58,237,0.18) 0%, transparent 70%);
top: -200px; right: -200px;
pointer-events: none;
}
.orb {
position: absolute;
width: 500px; height: 500px;
border-radius: 50%;
background: radial-gradient(circle, rgba(0,229,255,0.1) 0%, transparent 70%);
bottom: -100px; left: 10%;
pointer-events: none;
}
.hero-eyebrow {
font-family: var(--ff-mono);
font-size: 0.72rem;
letter-spacing: 0.2em;
text-transform: uppercase;
color: var(--accent);
margin-bottom: 20px;
opacity: 0;
animation: fadeUp 0.8s 0.1s ease forwards;
}
.hero h1 {
font-family: var(--ff-display);
font-size: clamp(4rem, 9vw, 9rem);
line-height: 0.92;
letter-spacing: 0.02em;
text-transform: uppercase;
max-width: 900px;
opacity: 0;
animation: fadeUp 0.8s 0.25s ease forwards;
}
.hero h1 span {
color: transparent;
-webkit-text-stroke: 1px var(--accent);
}
.hero-intro {
margin-top: 20px;
font-size: 1.05rem;
color: var(--text);
font-weight: 400;
max-width: 560px;
opacity: 0;
animation: fadeUp 0.8s 0.35s ease forwards;
}
.hero-sub {
margin-top: 32px;
max-width: 520px;
font-size: 1rem;
color: #9090b0;
line-height: 1.75;
opacity: 0;
animation: fadeUp 0.8s 0.4s ease forwards;
}
.hero-actions {
display: flex;
gap: 16px;
margin-top: 48px;
flex-wrap: wrap;
opacity: 0;
animation: fadeUp 0.8s 0.55s ease forwards;
}
.btn-primary {
display: inline-flex;
align-items: center;
gap: 10px;
background: var(--accent);
color: var(--bg);
text-decoration: none;
font-family: var(--ff-mono);
font-size: 0.8rem;
font-weight: 500;
letter-spacing: 0.08em;
padding: 14px 32px;
clip-path: polygon(10px 0%, 100% 0%, calc(100% - 10px) 100%, 0% 100%);
transition: box-shadow 0.25s, opacity 0.2s;
}
.btn-primary:hover {
box-shadow: 0 0 32px rgba(0,229,255,0.4);
opacity: 0.9;
}
.btn-ghost {
display: inline-flex;
align-items: center;
gap: 10px;
border: 1px solid var(--border);
color: var(--text);
text-decoration: none;
font-family: var(--ff-mono);
font-size: 0.8rem;
letter-spacing: 0.08em;
padding: 14px 32px;
transition: border-color 0.2s, color 0.2s;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.hero-tech {
display: flex;
gap: 24px;
margin-top: 72px;
flex-wrap: wrap;
opacity: 0;
animation: fadeUp 0.8s 0.7s ease forwards;
}
.tech-pill {
font-family: var(--ff-mono);
font-size: 0.65rem;
letter-spacing: 0.14em;
text-transform: uppercase;
color: var(--muted);
border: 1px solid var(--border);
padding: 5px 14px;
}
/* ─── CODE BLOCK ─── */
.code-window {
position: absolute;
right: 48px;
top: 50%;
transform: translateY(-50%);
width: 420px;
background: var(--surface);
border: 1px solid var(--border);
border-top: 2px solid var(--accent);
opacity: 0;
animation: fadeIn 1s 0.9s ease forwards;
}
.code-header {
display: flex;
align-items: center;
gap: 8px;
padding: 12px 16px;
border-bottom: 1px solid var(--border);
}
.code-dot {
width: 10px; height: 10px; border-radius: 50%;
}
.code-dot:nth-child(1) { background: #ff5f57; }
.code-dot:nth-child(2) { background: #febc2e; }
.code-dot:nth-child(3) { background: #28c840; }
.code-filename {
margin-left: 6px;
font-family: var(--ff-mono);
font-size: 0.7rem;
color: var(--muted);
}
.code-body {
padding: 20px;
font-family: var(--ff-mono);
font-size: 0.72rem;
line-height: 1.8;
overflow-x: auto;
}
.c-kw { color: #a78bfa; }
.c-fn { color: var(--accent); }
.c-str { color: #34d399; }
.c-cm { color: var(--muted); font-style: italic; }
.c-num { color: #fb923c; }
.c-ty { color: #fbbf24; }
/* ─── SECTION LAYOUT ─── */
section {
position: relative;
z-index: 1;
padding: 100px 48px;
}
.section-label {
font-family: var(--ff-mono);
font-size: 0.65rem;
letter-spacing: 0.2em;
text-transform: uppercase;
color: var(--accent);
margin-bottom: 16px;
}
.section-title {
font-family: var(--ff-display);
font-size: clamp(2.5rem, 5vw, 4.5rem);
letter-spacing: 0.04em;
text-transform: uppercase;
line-height: 1;
max-width: 700px;
}
.section-title span { color: transparent; -webkit-text-stroke: 1px var(--muted); }
.section-desc {
margin-top: 20px;
color: #9090b0;
max-width: 520px;
font-size: 0.95rem;
}
/* ─── FEATURES GRID ─── */
.features-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
gap: 1px;
margin-top: 72px;
border: 1px solid var(--border);
}
.feature-card {
background: var(--surface);
padding: 36px 32px;
border: 1px solid transparent;
transition: border-color 0.2s, background 0.2s;
position: relative;
overflow: hidden;
}
.feature-card::before {
content: '';
position: absolute;
top: 0; left: 0; right: 0;
height: 2px;
background: var(--accent);
transform: scaleX(0);
transform-origin: left;
transition: transform 0.3s;
}
.feature-card:hover { background: #13131c; border-color: var(--border); }
.feature-card:hover::before { transform: scaleX(1); }
.feature-icon {
width: 40px; height: 40px;
border: 1px solid var(--border);
display: flex; align-items: center; justify-content: center;
margin-bottom: 20px;
font-size: 1.1rem;
}
.feature-title {
font-family: var(--ff-mono);
font-size: 0.8rem;
font-weight: 500;
letter-spacing: 0.06em;
text-transform: uppercase;
color: var(--text);
margin-bottom: 10px;
}
.feature-desc {
font-size: 0.85rem;
color: var(--muted);
line-height: 1.7;
}
/* ─── ARCHITECTURE DIAGRAM ─── */
.arch-section { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.arch-grid {
display: grid;
grid-template-columns: 1fr 60px 1fr;
gap: 0;
align-items: center;
margin-top: 64px;
max-width: 800px;
}
.arch-box {
border: 1px solid var(--border);
padding: 28px;
text-align: center;
}
.arch-box-label {
font-family: var(--ff-mono);
font-size: 0.65rem;
letter-spacing: 0.18em;
text-transform: uppercase;
color: var(--accent);
margin-bottom: 12px;
}
.arch-box-title {
font-family: var(--ff-display);
font-size: 1.8rem;
letter-spacing: 0.06em;
}
.arch-box-items {
margin-top: 16px;
display: flex;
flex-direction: column;
gap: 6px;
}
.arch-item {
font-family: var(--ff-mono);
font-size: 0.68rem;
color: var(--muted);
letter-spacing: 0.05em;
}
.arch-arrow {
display: flex;
flex-direction: column;
align-items: center;
gap: 6px;
font-family: var(--ff-mono);
font-size: 0.6rem;
color: var(--accent);
letter-spacing: 0.08em;
}
.arch-arrow-line {
width: 1px;
height: 60px;
background: linear-gradient(to bottom, transparent, var(--accent), transparent);
}
/* ─── USE CASES ─── */
.usecases-list {
margin-top: 64px;
display: grid;
grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
gap: 2px;
}
.usecase {
background: var(--surface);
padding: 40px 28px;
position: relative;
overflow: hidden;
transition: background 0.2s;
}
.usecase:hover { background: #13131c; }
.usecase-num {
font-family: var(--ff-display);
font-size: 4rem;
color: var(--border);
line-height: 1;
margin-bottom: 16px;
transition: color 0.2s;
}
.usecase:hover .usecase-num { color: var(--accent); }
.usecase-title {
font-family: var(--ff-mono);
font-size: 0.75rem;
letter-spacing: 0.1em;
text-transform: uppercase;
color: var(--text);
}
/* ─── CTA ─── */
.cta-section {
text-align: center;
padding: 120px 48px;
position: relative;
overflow: hidden;
}
.cta-section::before {
content: '';
position: absolute;
inset: 0;
background: radial-gradient(ellipse at 50% 100%, rgba(0,229,255,0.07) 0%, transparent 70%);
pointer-events: none;
}
.cta-section .section-title { margin: 0 auto; text-align: center; }
.cta-section .section-desc { margin: 20px auto 0; text-align: center; }
.cta-actions {
display: flex;
justify-content: center;
gap: 16px;
margin-top: 48px;
flex-wrap: wrap;
}
/* ─── FOOTER ─── */
footer {
border-top: 1px solid var(--border);
padding: 40px 48px;
display: flex;
align-items: center;
justify-content: space-between;
gap: 24px;
flex-wrap: wrap;
position: relative;
z-index: 1;
}
.footer-logo {
font-family: var(--ff-display);
font-size: 1.2rem;
letter-spacing: 0.08em;
color: var(--accent);
text-decoration: none;
}
.footer-copy {
font-family: var(--ff-mono);
font-size: 0.65rem;
color: var(--muted);
letter-spacing: 0.1em;
}
.footer-links {
display: flex;
gap: 24px;
}
.footer-links a {
font-family: var(--ff-mono);
font-size: 0.65rem;
letter-spacing: 0.1em;
text-transform: uppercase;
color: var(--muted);
text-decoration: none;
transition: color 0.2s;
}
.footer-links a:hover { color: var(--accent); }
/* ─── ANIMATIONS ─── */
@keyframes fadeUp {
from { opacity: 0; transform: translateY(24px); }
to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
from { opacity: 0; }
to { opacity: 1; }
}
/* scroll reveal */
.reveal {
opacity: 0;
transform: translateY(32px);
transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
opacity: 1;
transform: none;
}
/* ─── RESPONSIVE ─── */
@media (max-width: 1100px) {
.code-window { display: none; }
}
@media (max-width: 640px) {
nav { padding: 16px 24px; }
.nav-links { display: none; }
section, .hero, .cta-section { padding-left: 24px; padding-right: 24px; }
footer { padding: 32px 24px; flex-direction: column; align-items: flex-start; }
}
/* ─── DEMO SECTION ─── */
.demo-section {
background: var(--surface);
border-top: 1px solid var(--border);
border-bottom: 1px solid var(--border);
}
.demo-window {
margin-top: 48px;
border: 1px solid var(--border);
border-top: 2px solid var(--accent);
overflow: hidden;
}
.demo-window-header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 12px 18px;
background: var(--bg);
border-bottom: 1px solid var(--border);
}
.demo-window-dots {
display: flex;
gap: 7px;
}
.demo-window-dots span {
width: 11px; height: 11px; border-radius: 50%;
}
.demo-window-dots span:nth-child(1) { background: #ff5f57; }
.demo-window-dots span:nth-child(2) { background: #febc2e; }
.demo-window-dots span:nth-child(3) { background: #28c840; }
.demo-window-url {
font-family: var(--ff-mono);
font-size: 0.68rem;
color: var(--muted);
letter-spacing: 0.05em;
background: var(--surface);
border: 1px solid var(--border);
padding: 5px 16px;
border-radius: 2px;
}
.demo-window-url span { color: var(--accent); }
.demo-open-btn {
font-family: var(--ff-mono);
font-size: 0.65rem;
letter-spacing: 0.1em;
text-transform: uppercase;
color: var(--accent);
text-decoration: none;
border: 1px solid var(--border);
padding: 5px 14px;
transition: background 0.2s, color 0.2s;
}
.demo-open-btn:hover { background: var(--accent); color: var(--bg); }
.demo-iframe-wrap {
position: relative;
width: 100%;
height: 640px;
background: var(--bg);
}
.demo-iframe-wrap iframe {
width: 100%;
height: 100%;
border: none;
display: block;
}
.demo-overlay {
position: absolute;
inset: 0;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 20px;
background: rgba(9,9,12,0.85);
backdrop-filter: blur(4px);
cursor: pointer;
transition: opacity 0.3s;
}
.demo-overlay.hidden { opacity: 0; pointer-events: none; }
.demo-overlay-icon {
width: 72px; height: 72px;
border: 1px solid var(--accent);
display: flex; align-items: center; justify-content: center;
font-size: 1.8rem;
color: var(--accent);
transition: background 0.2s;
}
.demo-overlay:hover .demo-overlay-icon { background: var(--accent); color: var(--bg); }
.demo-overlay p {
font-family: var(--ff-mono);
font-size: 0.75rem;
letter-spacing: 0.12em;
text-transform: uppercase;
color: var(--muted);
}
/* ─── DIVIDER ─── */
.divider {
height: 1px;
background: var(--border);
margin: 0 48px;
}
</style>
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "SoftwareApplication",
"name": "MavonEngine",
"description": "A Three.js game engine for multiplayer browser games with server-authoritative physics, WebRTC networking, and unified server-client architecture.",
"applicationCategory": "GameApplication",
"operatingSystem": "Browser",
"url": "https://gameengine.js.org",
"sameAs": "https://mavonengine.com",
"offers": { "@type": "Offer", "price": "0", "priceCurrency": "USD" },
"keywords": "three.js game engine, threejs multiplayer, browser game engine, server authoritative physics"
}
</script>
</head>
<body>
<!-- NAV -->
<nav id="nav">
<a href="https://mavonengine.com" class="nav-logo" aria-label="MavonEngine – Three.js game engine homepage">MavonEngine</a>
<ul class="nav-links">
<li><a href="#features" aria-label="MavonEngine Three.js game engine features">Features</a></li>
<li><a href="#architecture" aria-label="MavonEngine server-client architecture">Architecture</a></li>
<li><a href="#usecases" aria-label="What you can build with MavonEngine">Use Cases</a></li>
<li><a href="#demo" aria-label="Try MavonEngine Three.js game engine live demo">Demo</a></li>
<li><a href="https://mavonengine.com/getting-started" aria-label="MavonEngine getting started documentation">Docs</a></li>
</ul>
<a href="https://mavonengine.com" class="nav-cta" aria-label="Get started with MavonEngine Three.js game engine">Get Started →</a>
</nav>
<!-- HERO -->
<section class="hero" id="home">
<div class="orb"></div>
<p class="hero-eyebrow">// gameengine.js.org · Open Source</p>
<h1>Three.js<br/><span>Game</span><br/>Engine</h1>
<p class="hero-intro">MavonEngine is a Three.js game engine built for real-time multiplayer — the only one with server-authoritative physics built in.</p>
<p class="hero-sub">
The Three.js game engine with multiplayer built in — not bolted on. Unified server-client architecture, server-authoritative hit detection, integrated Rapier physics, and real-time WebRTC networking. All TypeScript. All in one package.
</p>
<div class="hero-actions">
<a href="https://mavonengine.com/getting-started" class="btn-primary" aria-label="Get started with MavonEngine Three.js game engine – read the docs">Get Started →</a>
<a href="https://mavonengine.com/demo" class="btn-ghost" aria-label="Try MavonEngine Three.js multiplayer game engine live demo">Try Live Demo</a>
<a href="https://github.com/MavonEngine/Core" class="btn-ghost" aria-label="MavonEngine Three.js game engine source code on GitHub">★ GitHub</a>
</div>
<div class="hero-tech">
<span class="tech-pill">TypeScript</span>
<span class="tech-pill">Three.js</span>
<span class="tech-pill">Rapier Physics</span>
<span class="tech-pill">WebRTC</span>
<span class="tech-pill">GLTF / Draco</span>
</div>
<!-- FLOATING CODE WINDOW -->
<div class="code-window">
<div class="code-header">
<div class="code-dot"></div>
<div class="code-dot"></div>
<div class="code-dot"></div>
<span class="code-filename">server.ts</span>
</div>
<div class="code-body"><pre><span class="c-kw">import</span> { <span class="c-ty">MavonServer</span>, <span class="c-ty">Entity</span> }
<span class="c-kw">from</span> <span class="c-str">'@mavonengine/core'</span>
<span class="c-cm">// Authoritative server world</span>
<span class="c-kw">const</span> server = <span class="c-kw">new</span> <span class="c-fn">MavonServer</span>()
server.<span class="c-fn">onPlayerJoin</span>((player) => {
<span class="c-kw">const</span> entity = <span class="c-kw">new</span> <span class="c-fn">Entity</span>({
position: [<span class="c-num">0</span>, <span class="c-num">1</span>, <span class="c-num">0</span>]
})
server.world.<span class="c-fn">add</span>(entity)
server.<span class="c-fn">sync</span>(player, entity)
})
server.<span class="c-fn">start</span>(<span class="c-num">3000</span>)</pre></div>
</div>
</section>
<div class="divider"></div>
<!-- FEATURES -->
<section id="features">
<p class="section-label reveal">// 01 — Core Features</p>
<h2 class="section-title reveal">Everything<br/><span>In One</span><br/>Package</h2>
<p class="section-desc reveal">MavonEngine is a Three.js game engine that ships rendering, physics, networking, animation, particles, and debugging as a unified whole — no more gluing libraries together.</p>
<div class="features-grid">
<div class="feature-card reveal">
<div class="feature-icon">⚡</div>
<div class="feature-title">Full-Stack Multiplayer</div>
<div class="feature-desc">Shared entity system — write once, run on server and client. Automatic state sync with bandwidth optimization and hash-based change detection.</div>
</div>
<div class="feature-card reveal">
<div class="feature-icon">⬡</div>
<div class="feature-title">Rapier Physics</div>
<div class="feature-desc">Kinematic character controller with slope climbing and sliding. Configurable parameters with full body & collider management and real-time debug visualization.</div>
</div>
<div class="feature-card reveal">
<div class="feature-icon">◈</div>
<div class="feature-title">Three.js Rendering</div>
<div class="feature-desc">MavonEngine's Three.js game engine core powers custom GLSL shaders with debug rendering modes — wireframe, armature, and physics overlays built in from day one.</div>
</div>
<div class="feature-card reveal">
<div class="feature-icon">◌</div>
<div class="feature-title">WebRTC Networking</div>
<div class="feature-desc">Real-time data channels with bandwidth tracking, command buffering across latency, distance-based culling, and server health monitoring.</div>
</div>
<div class="feature-card reveal">
<div class="feature-icon">▸</div>
<div class="feature-title">Skeletal Animation</div>
<div class="feature-desc">Animation state management with smooth fade transitions. GLTF + Draco compression support and efficient skeleton cloning for instanced models.</div>
</div>
<div class="feature-card reveal">
<div class="feature-icon">✦</div>
<div class="feature-title">Particle Effects</div>
<div class="feature-desc">Built-in rain and smoke effects ready to drop in. Custom shader support for unique visuals. Prefab registry for community-shared effects.</div>
</div>
</div>
</section>
<!-- ARCHITECTURE -->
<section class="arch-section" id="architecture">
<p class="section-label reveal">// 02 — Architecture</p>
<h2 class="section-title reveal">Server <span>&</span> Client<br/>Unified</h2>
<p class="section-desc reveal">Unlike other Three.js game engines, MavonEngine runs a simplified hitbox scene on the server alongside the client's full 3D world — enabling authoritative hit detection and spatial queries without trusting the client.</p>
<div class="arch-grid reveal">
<img src="" alt="MavonEngine Three.js game engine server-side hitbox world architecture – authoritative physics, hit detection, raycasting and spatial queries" width="1" height="1" style="position:absolute;opacity:0;pointer-events:none;" />
<div class="arch-box">
<div class="arch-box-label">Server</div>
<div class="arch-box-title">Hitbox World</div>
<div class="arch-box-items">
<span class="arch-item">Authoritative physics</span>
<span class="arch-item">Hit detection</span>
<span class="arch-item">Raycasting</span>
<span class="arch-item">Spatial queries</span>
<span class="arch-item">State authority</span>
</div>
</div>
<div class="arch-arrow">
<div class="arch-arrow-line"></div>
<span>SYNC</span>
<div class="arch-arrow-line"></div>
</div>
<div class="arch-box">
<div class="arch-box-label">Client</div>
<div class="arch-box-title">Full 3D World</div>
<div class="arch-box-items">
<span class="arch-item">Three.js rendering</span>
<span class="arch-item">Particle effects</span>
<span class="arch-item">Animations</span>
<span class="arch-item">Shaders & VFX</span>
<span class="arch-item">Input handling</span>
</div>
</div>
</div>
</section>
<!-- USE CASES -->
<section id="usecases">
<p class="section-label reveal">// 03 — Use Cases</p>
<h2 class="section-title reveal">What Can<br/><span>You Build?</span></h2>
<p class="section-desc reveal">As a Three.js game engine purpose-built for real-time multiplayer, MavonEngine handles anything that needs players, physics, and a shared world in the browser.</p>
<div class="usecases-list">
<div class="usecase reveal">
<div class="usecase-num">01</div>
<div class="usecase-title">Action RPGs</div>
</div>
<div class="usecase reveal">
<div class="usecase-num">02</div>
<div class="usecase-title">PvP Combat Games</div>
</div>
<div class="usecase reveal">
<div class="usecase-num">03</div>
<div class="usecase-title">Open World Multiplayer</div>
</div>
<div class="usecase reveal">
<div class="usecase-num">04</div>
<div class="usecase-title">Physics-Based Games</div>
</div>
</div>
</section>
<!-- LIVE DEMO -->
<section class="demo-section" id="demo">
<p class="section-label reveal">// 04 — Live Demo</p>
<h2 class="section-title reveal">See It <span>In</span><br/>Action</h2>
<p class="section-desc reveal">Try the engine directly in your browser — no install required.</p>
<div class="demo-window reveal">
<div class="demo-window-header">
<div class="demo-window-dots">
<span></span><span></span><span></span>
</div>
<div class="demo-window-url">
<span>mavonengine.com</span>/demo
</div>
<a href="https://mavonengine.com/demo" target="_blank" class="demo-open-btn" aria-label="Open MavonEngine Three.js multiplayer game engine demo in full browser tab">Open Full ↗</a>
</div>
<div class="demo-iframe-wrap">
<img src="" alt="MavonEngine Three.js game engine live multiplayer demo – real-time browser gameplay with WebRTC networking and Rapier physics" width="1" height="1" style="position:absolute;opacity:0;pointer-events:none;" />
<div class="demo-overlay" id="demoOverlay" onclick="loadDemo()">
<div class="demo-overlay-icon">▶</div>
<p>Click to load demo</p>
</div>
<iframe id="demoFrame" title="MavonEngine Live Demo" allowfullscreen
sandbox="allow-scripts allow-same-origin allow-pointer-lock allow-forms"
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; pointer-lock"></iframe>
</div>
</div>
</section>
<!-- CTA -->
<section class="cta-section">
<p class="section-label reveal">// 05 — Start Building</p>
<h2 class="section-title reveal">The Three.js<br/><span>Game Engine</span><br/>For Multiplayer</h2>
<p class="section-desc reveal">The only Three.js game engine with server-authoritative physics built in. Server + Client + Physics + Networking + Rendering + Animation + Particles + Debugging. All TypeScript.</p>
<div class="cta-actions reveal">
<a href="https://mavonengine.com/getting-started" class="btn-primary" aria-label="Read MavonEngine Three.js game engine documentation">Read the Docs →</a>
<a href="https://mavonengine.com/community" class="btn-ghost" aria-label="Join the MavonEngine Three.js game engine developer community">Join Community</a>
<a href="https://github.com/MavonEngine/Core" class="btn-ghost" aria-label="Star MavonEngine Three.js game engine on GitHub">★ Star on GitHub</a>
</div>
</section>
<!-- FOOTER -->
<footer>
<a href="https://mavonengine.com" class="footer-logo" aria-label="MavonEngine – Three.js game engine for multiplayer browser games">MavonEngine</a>
<div class="footer-links">
<a href="https://mavonengine.com/getting-started" aria-label="MavonEngine Three.js game engine documentation">Docs</a>
<a href="https://github.com/MavonEngine/Core" aria-label="MavonEngine Three.js game engine GitHub repository">GitHub</a>
<a href="https://mavonengine.com/community" aria-label="MavonEngine developer community forum">Community</a>
<a href="https://mavonengine.com/demo" aria-label="MavonEngine Three.js multiplayer game engine live demo">Demo</a>
</div>
<span class="footer-copy">© 2026 MavonEngine Contributors · gameengine.js.org</span>
</footer>
<script>
// Load demo iframe on click
function loadDemo() {
const frame = document.getElementById('demoFrame');
const overlay = document.getElementById('demoOverlay');
frame.src = 'https://mavonengine.com/demo';
overlay.classList.add('hidden');
}
// Nav scroll style
const nav = document.getElementById('nav');
window.addEventListener('scroll', () => {
nav.classList.toggle('scrolled', window.scrollY > 20);
});
// Scroll reveal
const reveals = document.querySelectorAll('.reveal');
const observer = new IntersectionObserver((entries) => {
entries.forEach((e, i) => {
if (e.isIntersecting) {
// Stagger siblings
const siblings = [...e.target.parentElement.querySelectorAll('.reveal')];
const idx = siblings.indexOf(e.target);
setTimeout(() => e.target.classList.add('visible'), idx * 80);
observer.unobserve(e.target);
}
});
}, { threshold: 0.12 });
reveals.forEach(el => observer.observe(el));
</script>
</body>
</html>