commit b154d1dc8419117afacaf737af3f2bd93d0d41d2 Author: Alexander Yakovlev Date: Sat Dec 10 11:10:25 2016 +0700 Initial commit - empty game diff --git a/emphasis.lua b/emphasis.lua new file mode 100644 index 0000000..88e05a1 --- /dev/null +++ b/emphasis.lua @@ -0,0 +1,17 @@ +require 'format' + +format.filter = function(text) + for _, s in ipairs {"%*%*", "%_%_"} do + text = text:gsub(s .. "([^%s][^<>]-[^%s][%*%_]?)" .. s, txtb("%1")); + end; + for _, s in ipairs {"%*"} do + text = text:gsub(s .. "([^%s_][^<>_]-[^%s_])" .. s, txtem("%1")); + end; + for _, s in ipairs {"%_"} do + text = text:gsub(s .. "([^%s_][^<>_]-[^%s_])" .. s, txtu("%1")); + end; + for _, s in ipairs {"%-"} do + text = text:gsub(s .. " ([^%s_][^<>_]-[^%s_]) " .. s, txtst("%1")); + end; + return text; +end diff --git a/init.lua b/init.lua new file mode 100644 index 0000000..a0aad4a --- /dev/null +++ b/init.lua @@ -0,0 +1,13 @@ +require 'para' +require 'dash' +require 'quotes' +require 'dbg' +require 'emphasis'; + +game.forcedsc = false; +game._action = nil; +game.actions = {} + +rndstr = function(strings) + return strings[rnd(stead.table.maxn(strings))]; +end diff --git a/italic.ttf b/italic.ttf new file mode 100644 index 0000000..bac08bf Binary files /dev/null and b/italic.ttf differ diff --git a/main.lua b/main.lua new file mode 100644 index 0000000..b44aaf3 --- /dev/null +++ b/main.lua @@ -0,0 +1,15 @@ +-- $Name: Ludum Dare 37$ +instead_version "1.9.1"; +dofile("init.lua"); + +main = room{ + nam = "Дело о ", + dsc = [[ + -- Я никого не выпущу, пока мы не решим, что делать с колонией, — сказал директор, закрывая + входную дверь на ключ. + ]], + obj = {}, +}; + +-- Outside the window is The World Out There; it's buzzing with life. In a cruel twist of the fate… you guessed it - it's 100% decoration. +-- diff --git a/regular.ttf b/regular.ttf new file mode 100644 index 0000000..3a58e6b Binary files /dev/null and b/regular.ttf differ diff --git a/theme.ini b/theme.ini new file mode 100644 index 0000000..db4aaab --- /dev/null +++ b/theme.ini @@ -0,0 +1,14 @@ +; $Name: Baskerville-beige$ +include = garamond + +win.fnt.name = {regular,,italic,}.ttf +win.fnt.size = 18 +win.fnt.height = 1.4 + +inv.fnt.name = {regular,,italic,}.ttf +inv.fnt.size = 18 +inv.fnt.height = 1.4 + +menu.fnt.name = {regular,,italic,}.ttf +menu.fnt.size = 15 +menu.fnt.height = 1.4