1. Git conversion.

2. A bit of rebranding.
3. Format module now understands LaTeX-style quotes << and >>.
4. Two automated tests - I'll use them for checking game installations.
This commit is contained in:
Alexander Yakovlev 2011-08-22 16:31:43 +07:00
parent 3a40eba5c3
commit 172665a8ad
20 changed files with 106 additions and 2 deletions

6
.gitignore vendored Normal file
View File

@ -0,0 +1,6 @@
*.o
libz.a
src/sdl-instead/sdl-instead
desktop/instead.desktop
Rules.make
config.make

7
README
View File

@ -1,4 +1,4 @@
INSTEAD 1.4.6
Steed 0.2
=============
WARNING! For successfull building you must install these development packages (names may vary in your distribution):
@ -70,3 +70,8 @@ If build process has failed check Rules.make.system and make changes if needed.
$ sdl-instead
Enjoy.
Known problems
==============
- Does not clears up when Alt+Q _and_ game is unpacked [INSTEAD bug]
- Free Software Foundation insists on placing GPL preamble in every file; this is not the case.

View File

@ -4,7 +4,7 @@
#include "graphics.h"
#include "sound.h"
#define DEFAULT_THEME "default"
#define DEFAULT_THEME "steed"
#ifndef THEMES_PATH
#define THEMES_PATH "./themes"
#endif

View File

@ -36,6 +36,7 @@ stead.fmt = stead.hook(stead.fmt, function(f, ...)
end
if stead.call_bool(format, 'quotes') and utf8 then
r = r:gsub('_"','«'):gsub('"_',"»");
r = r:gsub('<<','«'):gsub('>>',"»");
r = r:gsub('"([^"]*)"','«%1»');
r = r:gsub(',,',''):gsub("''",'');
end

8
tests/test-archive.sh Executable file
View File

@ -0,0 +1,8 @@
#!/bin/bash
cd ../games
zip -r ../test.zip tutorial*
cd ..
./sdl-instead test.zip 2>tests/stderr-output.txt &
sleep 0.6
xdotool key --clearmodifiers alt+q
rm -f test.zip

8
tests/test-install.sh Executable file
View File

@ -0,0 +1,8 @@
#!/bin/bash
cd ../games
zip -r ../test.zip tutorial*
cd ..
./sdl-instead -install test.zip 2>tests/stderr-output.txt &
sleep 0.6
xdotool key --clearmodifiers alt+q
rm -f test.zip

BIN
themes/steed/adown.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 289 B

BIN
themes/steed/aup.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 288 B

BIN
themes/steed/background.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 MiB

BIN
themes/steed/click.ogg Normal file

Binary file not shown.

BIN
themes/steed/click.wav Normal file

Binary file not shown.

BIN
themes/steed/cursor-use.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

BIN
themes/steed/cursor.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 684 B

BIN
themes/steed/menu.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

BIN
themes/steed/sans-b.ttf Normal file

Binary file not shown.

BIN
themes/steed/sans-bi.ttf Normal file

Binary file not shown.

BIN
themes/steed/sans-i.ttf Normal file

Binary file not shown.

BIN
themes/steed/sans.ttf Normal file

Binary file not shown.

76
themes/steed/theme.ini Normal file
View File

@ -0,0 +1,76 @@
; $Name: Standard$
; $Name(ru): Стандартная$
; $Name(ua): Стандартна$
; $Name(es): Estándar$
; $Name(it): Predefinito$
scr.w = 1280
scr.h = 800
scr.gfx.scalable = 1
scr.gfx.h = -1
scr.gfx.bg = background.png
scr.col.bg = white
scr.gfx.cursor.x = 2
scr.gfx.cursor.y = 2
scr.gfx.cursor.normal = cursor.png
scr.gfx.cursor.use = cursor-use.png
scr.gfx.pad = 16
scr.gfx.mode = embedded
win.align = justify
win.x = 60
win.y = 10
win.w = 1180
win.h = 730
win.fnt.name = {sans,sans-b,sans-i,sans-bi}.ttf
win.fnt.size = 16
win.fnt.height = 1.0
win.gfx.up = aup.png
win.gfx.down = adown.png
win.col.fg = black
win.col.link = darkred
win.col.alink = darkred
win.up.x = -1
win.up.y = -1
win.down.x = -1
win.down.y = -1
inv.x = 0
inv.y = 0
inv.w = 0
inv.h = 0
inv.fnt.name = sans.ttf
inv.fnt.size = 16
inv.fnt.height = 1.0
inv.gfx.up = aup.png
inv.gfx.down = adown.png
inv.col.fg = #CCCCCC
inv.col.link = #CCCCCC
inv.col.alink = goldenrod
inv.mode = vertical-left
inv.up.x = -1
inv.up.y = -1
inv.down.x = -1
inv.down.y = -1
menu.col.bg = white
menu.col.fg = black
menu.col.link = blue
menu.col.alink = red
menu.col.alpha = 220
menu.col.border = black
menu.bw = 1
menu.fnt.name = {sans,,sans-i}.ttf
menu.fnt.size = 15
menu.fnt.height = 1.0
menu.gfx.button = menu.png
menu.button.x = 1210
menu.button.y = 740
snd.click = click.wav ; click.ogg

BIN
themes/steed/use.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB