1
0
Fork 0
mirror of https://github.com/Oreolek/ink-instead.git synced 2024-07-08 01:24:39 +03:00
This commit is contained in:
premek 2017-01-16 01:12:57 +01:00
commit 76da46560d

View file

@ -25,6 +25,26 @@ pink is used by my small game https://github.com/premek/enjoy
Let me know if you want to use it too.
## Install dependencies
Install luarocks (Or see https://luarocks.org/#quick-start for instructions for other platforms):
sudo aptitude install luarocks
Install lpeg:
luarocks install --local lpeg
Get pink:
Clone this repo or download an archive from [releases](../../releases) page. You need just the `pink` subdirectory.
### Note on dependencies
The pink **parser** depends on lpeg which can easily be instaled by luarocks (see above) but it may be difficult to distribute it with your game for each platform (it is a C library). Please consider compiling the .ink file into lua table, save it into a file and distribute just the compiled file with a lua table instead of compiling at runtime. (See: [#3](/../../issues/3))
Pink **runtime** is just a pure lua.
## How to use this to run a game
To use it in your project download the latest source or the latest [release](../../releases). You need just the [pink](../../tree/master/pink) directory.