japanese-drum-game/README.md

32 lines
1.3 KiB
Markdown
Raw Normal View History

2015-07-17 16:52:13 +08:00
# Taiko no Tatsujin Web
A web version of Taiko no Tatsujin
2018-08-27 00:40:59 +08:00
Running instance: https://taiko.bui.pm
2015-07-17 16:52:13 +08:00
2018-11-21 17:02:53 +08:00
Still in development. Works best with Chrome.
2018-09-02 08:30:47 +08:00
## Setup
**Requirements**: Python 2.7, [Flask](https://pypi.org/project/Flask/)
2018-11-21 17:02:53 +08:00
Create a SQLite database named `taiko.db` with the following schema:
2018-09-02 08:30:47 +08:00
2018-11-11 04:10:48 +08:00
CREATE TABLE "songs" ( `id` INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT, `title` TEXT NOT NULL, `title_en` TEXT, `subtitle` TEXT, `subtitle_en` TEXT, `easy` INTEGER, `normal` INTEGER, `hard` INTEGER, `oni` INTEGER, `ura` INTEGER, `enabled` INTEGER NOT NULL, `category` INTEGER, `type` TEXT , `offset` REAL NOT NULL )
2018-10-11 06:13:24 +08:00
CREATE TABLE "categories" ( `id` INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT, `title` TEXT NOT NULL, `title_en` TEXT NOT NULL )
2018-09-02 08:30:47 +08:00
2018-11-21 17:02:53 +08:00
When inserting song rows, leave any difficulty columns as NULL if you don't intend to add note charts for them.
2018-09-02 08:30:47 +08:00
Each song's data is contained within a directory under `public/songs/`. For example:
└───public
├───songs
│ ├───1
│ │ bg.png
│ │ easy.osu
│ │ hard.osu
│ │ main.mp3
│ │ normal.osu
│ │ oni.osu
│ │
Run `app.py`, and use any web server to serve `public/` as the root directory, while routing `/api/` to the Flask server.