mirror of
https://github.com/jiojciojsioe3/a3cjroijsiojiorj.git
synced 2024-11-15 07:21:50 +08:00
1.3 KiB
1.3 KiB
Taiko no Tatsujin Web
A web version of Taiko no Tatsujin
Running instance: https://taiko.bui.pm
Still in development. Works best with Chrome.
Setup
Requirements: Python 2.7, Flask
Create a SQLite database named taiko.db
with the following schema:
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 )
CREATE TABLE "categories" ( `id` INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT, `title` TEXT NOT NULL, `title_en` TEXT NOT NULL )
When inserting song rows, leave any difficulty columns as NULL if you don't intend to add note charts for them.
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.