lainTSX/README.md

67 lines
3.5 KiB
Markdown
Raw Normal View History

2021-03-23 16:38:40 +00:00
## lainTSX
A browser-based implementation of the Serial Experiments Lain PSX game using `react-three-fiber` with the aim to provide multi-language support and make it more accessible.
## History
2021-04-05 12:49:39 +00:00
The original PSX game was released in Japan, back in 1998. The game never got a proper english adaptation, which resulted in all non-Japanese speaking players either having to play through the game while simultaneously reading through the translation, or simply not playing the game at all and only reading it.
2021-03-23 16:38:40 +00:00
The goal of this project is to provide a better experience for those willing to play the game, and the way to do so is by implementing a subtitle system, which has the capability to support multiple languages.
## Building locally
Building locally is currently not possible. This is because the repository lacks static assets ripped from the game due to it being copyrighted content. The plan is to write an extraction script (currently located inside `scripts/extract`), where the user who owns the game provides the disc binaries themselves, and the script automates the static file extraction. This script is still WIP.
## Code strutcure
2021-03-24 14:08:37 +00:00
- **src/**
2021-03-23 16:38:40 +00:00
- **/\_\_tests\_\_/** - Jest tests.
- **/components/** - TSX components used in the actual 3D environment (sprites, meshes, etc.).
- **/dom-components/** - TSX components used in the website itself (index page, guide, notes, etc.).
- **/core/** - State management. Contextual (scene/state influenced) processors, mutation handler, event templates.
- **/helpers/** - Helper functions used to boostrap functionalities (node finding algorithm, name selection handlers, etc.).
- **/hooks/** - Custom hooks for React.
- **/resources/** - Mostly reverse-engineered JSON data the game uses for a variety of tasks (node positions, font texture atlas definitions, etc.).
- **/scenes/** - TSX components containing scene definitions.
- **/static/** - Static files (sprites, css, sfx, media, fonts).
- **/types/** - Type definitions.
- **/utils/** - Utility functions.
- **store.ts** - Zustand store used for managing global state.
2021-03-24 14:08:37 +00:00
- **scripts/**
2021-03-23 16:38:40 +00:00
- **/extract/** - WIP extraction script to automate the local building process of the game.
2021-03-24 14:08:37 +00:00
## TODO
- **Finish writing the extraction script**
- **Improve/complete the translation**
2021-03-23 16:38:40 +00:00
## Screenshots
2021-03-23 17:07:16 +00:00
<p align="center">
<img src="markdown/1.png" width="49%">
<img src="markdown/2.jpg" width="49%">
<img src="markdown/3.png" width="49%">
<img src="markdown/4.png" width="49%">
<img src="markdown/5.png" width="49%">
<img src="markdown/6.png" width="49%">
<img src="markdown/7.png" width="49%">
<img src="markdown/8.png" width="49%">
</p>
2021-03-23 16:38:40 +00:00
2021-03-25 12:59:52 +00:00
## Reporting bugs and contributing
2021-03-23 16:38:40 +00:00
2022-03-25 22:35:00 +00:00
If you have any ideas/suggestions/found an issue or want to help us with the translation or anything else, please [make an issue](https://github.com/ad044/lainTSX/issues).
2021-03-23 16:38:40 +00:00
2021-03-25 12:59:52 +00:00
## Tools used during development
2021-03-23 16:38:40 +00:00
- [`jPSXdec`](https://github.com/m35/jpsxdec) - PlayStation 1 audio/video converter.
- [`three.js`](https://github.com/mrdoob/three.js/) - JavaScript 3D renderer.
- [`react-three-fiber`](https://github.com/pmndrs/react-three-fiber) - three.js wrapper for React.
- [`zustand`](https://github.com/pmndrs/zustand) - State management library for React.
- [`react-spring`](https://github.com/pmndrs/react-spring) - Animation library.
- [`drei`](https://github.com/pmndrs/drei) - Utilities for react-three-fiber.
- [`three-plain-animator`](https://github.com/MaciejWWojcik/three-plain-animator) - Sprite animation library.