hytopia 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (57) hide show
  1. package/LICENSE.md +69 -0
  2. package/README.md +49 -0
  3. package/assets/audio/music/cave.mp3 +0 -0
  4. package/assets/audio/music/desert.mp3 +0 -0
  5. package/assets/audio/music/end.mp3 +0 -0
  6. package/assets/audio/music/jungle.mp3 +0 -0
  7. package/assets/audio/music/nether.mp3 +0 -0
  8. package/assets/audio/music/night.mp3 +0 -0
  9. package/assets/audio/music/night2.mp3 +0 -0
  10. package/assets/audio/music/overworld.mp3 +0 -0
  11. package/assets/audio/music/snow.mp3 +0 -0
  12. package/assets/audio/sfx/damage.wav +0 -0
  13. package/assets/cubemaps/skybox/+x.png +0 -0
  14. package/assets/cubemaps/skybox/+y.png +0 -0
  15. package/assets/cubemaps/skybox/+z.png +0 -0
  16. package/assets/cubemaps/skybox/-x.png +0 -0
  17. package/assets/cubemaps/skybox/-y.png +0 -0
  18. package/assets/cubemaps/skybox/-z.png +0 -0
  19. package/assets/models/player.gltf +1 -0
  20. package/assets/models/spider.gltf +1 -0
  21. package/assets/models/zombie.gltf +1 -0
  22. package/assets/textures/bricks.png +0 -0
  23. package/assets/textures/clay.png +0 -0
  24. package/assets/textures/diamond_ore.png +0 -0
  25. package/assets/textures/dirt.png +0 -0
  26. package/assets/textures/dragons_stone.png +0 -0
  27. package/assets/textures/glass.png +0 -0
  28. package/assets/textures/grass/+x.png +0 -0
  29. package/assets/textures/grass/+y.png +0 -0
  30. package/assets/textures/grass/+z.png +0 -0
  31. package/assets/textures/grass/-x.png +0 -0
  32. package/assets/textures/grass/-y.png +0 -0
  33. package/assets/textures/grass/-z.png +0 -0
  34. package/assets/textures/grass.png +0 -0
  35. package/assets/textures/gravel.png +0 -0
  36. package/assets/textures/ice.png +0 -0
  37. package/assets/textures/infected_shadowrock.png +0 -0
  38. package/assets/textures/log_side.png +0 -0
  39. package/assets/textures/log_top.png +0 -0
  40. package/assets/textures/mossy_coblestone.png +0 -0
  41. package/assets/textures/nuit.png +0 -0
  42. package/assets/textures/oak_leaves.png +0 -0
  43. package/assets/textures/oak_planks.png +0 -0
  44. package/assets/textures/sand.png +0 -0
  45. package/assets/textures/shadowrock.png +0 -0
  46. package/assets/textures/stone.png +0 -0
  47. package/assets/textures/stone_bricks.png +0 -0
  48. package/assets/textures/void_sand.png +0 -0
  49. package/assets/textures/water_still.png +0 -0
  50. package/docs/assets/banner.png +0 -0
  51. package/examples/payload/assets/world.json +7179 -0
  52. package/examples/payload/index.ts +0 -0
  53. package/examples/zombies/index.ts +0 -0
  54. package/package.json +51 -0
  55. package/server.d.ts +1120 -0
  56. package/server.js +269 -0
  57. package/tsdoc-metadata.json +11 -0
package/LICENSE.md ADDED
@@ -0,0 +1,69 @@
1
+ ## HYTOPIA LIMITED USE LICENSE
2
+
3
+ This Limited Use License (the "License") governs your access to and use of certain software and assets provided by HYTOPIA ("HYTOPIA").
4
+
5
+ By downloading, accessing, or using the accompanying software and materials—which may include data, datasets, images, models, audio, and documentation (collectively, the "Licensed Software")—you agree to be bound by the terms and conditions of this License. The term "you" refers to any individual or entity receiving a copy of the Licensed Software, whether directly from HYTOPIA or through another source.
6
+
7
+ Accessing and using the Licensed Software may require you in the future to apply for and maintain an active registration and account with HYTOPIA. The use of such an account and associated services (collectively, the "Service") is governed by separate terms (the "Terms of Service").
8
+
9
+ ### 1. License Grant
10
+ Subject to your complete and ongoing compliance with this License (including any applicable Terms of Service), HYTOPIA grants you a limited, non-exclusive, non-transferable, non-sublicensable, and revocable permission to access and use the Licensed Software during the License Term (defined below), in accordance with the documentation. This permission is granted solely for the following purposes (collectively, the "Purpose"):
11
+
12
+ 1. Internally incorporating the Licensed Software into your larger applications for deployment through the HYTOPIA platform.
13
+ 1. Using it in connection with HYTOPIA products and services for which the Licensed Software was designed.
14
+ You may collaborate with other developers who have also agreed to and comply with this License, including distributing copies of the Licensed Software to them, as part of exercising your rights under this License.
15
+
16
+ ### 2. Source Code
17
+ This License also grants you the right to modify any portions of the Licensed Software provided by HYTOPIA in source code form (the "Licensed Source") and to use these modified versions for the Purpose.
18
+
19
+ ### 3. Usage Guidelines
20
+ You must not use the Licensed Software to:
21
+
22
+ - Transmit unlawful or objectionable material.
23
+ - Transmit viruses or other harmful computer code.
24
+ - Interfere with the performance of the Service or the data it contains.
25
+ - Attempt to gain unauthorized access to the Service or related networks.
26
+ - Interfere with another person's use of the Service.
27
+ - Access or use the Licensed Software or the Service in connection with any alternative or competitive service.
28
+ - Use the Licensed Software or the Service to reproduce, emulate, or replace features of the Service.
29
+ - Remove any attribution information or proprietary notices in the Licensed Software.
30
+
31
+ The Licensed Software may use, reference, or rely on materials separately available from HYTOPIA or other sources. Additional terms and conditions may apply to access and use any such dependencies.
32
+
33
+ ### 4. Feedback
34
+ You may choose, but are not required, to provide HYTOPIA with feedback regarding the Licensed Software. This includes:
35
+
36
+ - Reporting errors you encounter.
37
+ - Providing suggestions for modifications and enhancements.
38
+ - Submitting bug fixes, contributions, or other associated code.
39
+ - Making other similar submissions (collectively, "Feedback").
40
+
41
+ You retain ownership of your rights in any Feedback you provide. However, by submitting or making Feedback available to HYTOPIA, you irrevocably grant HYTOPIA and its successors an unrestricted, unlimited, worldwide, non-exclusive, transferable, sublicensable, fully paid-up, royalty-free license to:
42
+ - Reproduce, distribute, publicly perform or display, and prepare derivative works of the Feedback.
43
+ - Make, have made, use, sell, offer for sale, and import any product or service.
44
+ - Practice any method disclosed in the Feedback.
45
+
46
+ This license is granted in any form or manner and without limitation, attribution, or compensation.
47
+
48
+ ### 5. Reservation of Rights
49
+ HYTOPIA retains all rights, title, and interest—including all intellectual property rights—in and to the Licensed Software and any derivatives thereof. Nothing in this License grants or confers on you any ownership of these rights, whether expressly, by implication, estoppel, or otherwise.
50
+
51
+ ### 6. Disclaimer; Limitation of Liability
52
+ THE LICENSED SOFTWARE IS PROVIDED "AS IS" AND WITH ALL FAULTS. To the maximum extent permitted by applicable law, HYTOPIA disclaims all warranties, whether express, implied, statutory, or otherwise. This includes, without limitation, any warranties of merchantability, non-infringement, fitness for a particular purpose, or that the Licensed Software will be error-free or uninterrupted.
53
+
54
+ In no event will HYTOPIA have any direct or indirect liability to you under this License. This includes any lost profits, loss of data, loss of use, costs of procuring substitute goods or services, or any special, punitive, or exemplary damages—however caused and under any theory of liability—whether in contract, tort, or otherwise, even if HYTOPIA has been advised of the possibility of such damages.
55
+
56
+ You acknowledge and understand that the Licensed Software may be provided on an alpha, beta, or other pre-release basis. HYTOPIA is under no obligation to make any further releases, including any production release. Any subsequent release may differ from the Licensed Software in any manner HYTOPIA sees fit, including adding, modifying, or removing features and functionality present in the Licensed Software.
57
+
58
+ You agree that the limitations of liability and disclaimers of warranties and damages set forth herein form an essential basis of your agreement with HYTOPIA. They will survive and apply even if found to have failed of their essential purpose, to the fullest extent permissible under applicable law.
59
+
60
+ ### 7. Term and Termination
61
+ This Agreement begins on the date you accept this License and, unless terminated earlier as described below or extended by mutual written agreement, will terminate upon the later of:
62
+
63
+ (a) The License Term specified when you access the Licensed Software, or
64
+ (b) The public release of the production version of the Licensed Software (the "License Term").
65
+ HYTOPIA may terminate this License (and your access to the Licensed Software and any associated materials) at any time, for any reason or no reason.
66
+
67
+ Any provisions that by their nature or express terms survive expiration or termination of this License will survive such expiration or termination. Your obligations regarding Confidential Information and Feedback will survive indefinitely, regardless of any eventual publication of a commercial or production version of the Licensed Software.
68
+
69
+ Upon expiration or termination of this License for any reason, you must cease using the Licensed Software and return or destroy all copies of the Licensed Software or Licensed Source (and any derivatives thereof) and any other Confidential Information in your possession.
package/README.md ADDED
@@ -0,0 +1,49 @@
1
+ # HYTOPIA SDK
2
+
3
+ ## Quickstart
4
+
5
+ 1. Install the SDK in a new or existing [Node.js](https://nodejs.org/), [Bun (recommended)](https://bun.sh/) or [Deno](https://deno.com/) project.
6
+ ```bash
7
+ npm install hytopia
8
+ ```
9
+
10
+ 2. Run a local HYTOPIA server using an example game included in the SDK. The following command will start the Zombie Arena example game on port 8080.
11
+ ```bash
12
+ npx hytopia examples/zombie-arena
13
+ ```
14
+
15
+ 3. Visit https://play.hytopia.com - when prompted, enter the local server your game is running on, which is `http://localhost:8080`.
16
+
17
+ ## What is HYTOPIA?
18
+
19
+ ![HYTOPIA Banner](./docs/assets/banner.png)
20
+ HYTOPIA is a modern games platform inspired by Minecraft, Roblox, and Rec Room.
21
+
22
+ HYTOPIA allows you to create your own highly-sharable, immersive, massively multiplayer games in a voxel-like style. All playable in a web browser on any device!
23
+
24
+ ## What is this SDK?
25
+
26
+ The HYTOPIA SDK makes it easy for developers to create multiplayer games on the HYTOPIA platform using JavaScript or TypeScript.
27
+
28
+ Available as a simple NPM package, this SDK provides everything you need to get started:
29
+
30
+ - Compiled HYTOPIA Server: The ready-to-use server software.
31
+ - Game Client & Debugger: For rapidly testing and developing your games.
32
+ - TypeScript Definitions: For strong typing and code completion.
33
+ - Documentation: Detailed guides and references.
34
+ - Default Assets: Textures, models and audio you can use in your games.
35
+ - Game Examples: Sample projects & scripts showing how to build different types of games.
36
+
37
+ With these resources, you can quickly build and share immersive, voxel-style multiplayer games on HYTOPIA.
38
+
39
+ ## Architecture & Motivation
40
+
41
+ HYTOPIA gives developers full control to create any game imaginable in a voxel-like style. The underlying architecture handles low-level tasks like networking, prediction, entity lifecycle, physics and more, so you can focus on building and deploying games quickly.
42
+
43
+ With HYTOPIA's 100% server-authoritative setup and overall implementation, games are default-deterministic. All game inputs by players are relayed to and verified by the server, making gameplay naturally anti-cheat and preventing exploits like position spoofing.
44
+
45
+ HYTOPIA overcomes the creativity limits of Minecraft, the complexities of Unity and UE5, and the difficult developer learning curve of Roblox with a developer-first, flexible approach, enabling you to build games in hours using JavaScript or TypeScript.
46
+
47
+ Bring your own game assets as GLTF models with full server-driven animation support, block textures, ambient and sfx audio, and more - or use HYTOPIA's defaults included with this SDK to craft your game.
48
+
49
+ We built HYTOPIA to empower both veteran and aspiring game developers to create multiplayer-first, voxel-style, hyper-sharable games. Developer APIs and documentations are simple, powerful and clear. Whether you've been building games for years, a frontend web developer who's dreamed of building a game, an eager learner that's always dreamed of building games, or a curious school student, HYTOPIA was built for you..
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file