summaryrefslogtreecommitdiff
path: root/README
blob: f3f757a3b11befccea8faeb1837f03a53042e6d1 (plain)
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
This is a WIP HTML5 implementation of the game Katawa Shoujo. [0]

== Requirements ==
- Katawa Shoujo (obviously)
- Firefox/Chrome/a sensible browser (i.e. not IE)
- A shell (Bash, dash, zsh, etc)
- GNU Make
- FFmpeg with fdk-aac, libopus, libtheora, libvpx, libx264 (preferably git HEAD)
- cwebp and webpmux from libwebp
- convert from ImageMagick
- apngasm
- uglifyjs
- Node.js, npm, grunt

=== Recommended ===
- jpegmini
- jpegtran
- jpegrescan
- pngquant
- DeflOpt
- defluff
- nginx
- zopfli
- inotify-tools (for `make watch`)

== How to use ==
1. Navigate to http://html5ks.happinessforme.com/

== How to build ==
0. Get Katawa Shoujo.
1. Copy *.rpyc from Katawa Shoujo/game into unrpyc/ directory.
2. Extract files from Katawa Shoujo/game/data.rpa with an rpa extractor, e.g. unrpa. Put files in www/dump.
3. Install prerequisites, download DeflOpt and defluff and place exes in this directory.
4. Run setup.sh. [2]

4. Run nginx.sh to start nginx, then navigate to localhost:8080 in your browser.
-- or --
4. Open www/index.html in a browser.

== Disabling conversions ==
Some conversions can be safely disabled.

== Reducing file size ==
Run `make space`. Warning: This will remove source files from dump.

== Contributing ==

Check Bugzilla for things that need to be done. [3]

See docs/ for the obvious.

Run `make watch` to automatically re-make when changes are made.

[0] http://www.katawa-shoujo.com/
[1] https://github.com/cujojs/when/
[2] If you're on Windoze, sucks for you. Use a better OS.
[3] https://bugzilla.happinessforme.com/buglist.cgi?cmdtype=runnamed&namedcmd=Open+HTML5KS+bugs