0.8.7
This commit is contained in:
parent
670388adc9
commit
f412a71587
|
@ -1,4 +1,4 @@
|
|||
VERSION := \"0.8.6\"
|
||||
VERSION := \"0.8.7\"
|
||||
|
||||
DESTDIR=
|
||||
BIN=
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
VERSION := \"0.8.6\"
|
||||
VERSION := \"0.8.7\"
|
||||
|
||||
DESTDIR=/usr/local
|
||||
BIN=$(DESTDIR)/bin/
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
VERSION := \"0.8.6\"
|
||||
VERSION := \"0.8.7\"
|
||||
|
||||
DESTDIR=
|
||||
BIN=..\..\bin\\
|
||||
|
|
7
debian/changelog
vendored
7
debian/changelog
vendored
|
@ -1,3 +1,10 @@
|
|||
instead (0.8.7) unstable; urgency=low
|
||||
|
||||
* highlight bug in nohl mode with filter
|
||||
* windows version now looks games and themes in appdir.
|
||||
|
||||
-- Peter Kosyh <peter@localhost> Fri, 28 Aug 2009 12:51:08 +0400
|
||||
|
||||
instead (0.8.6) unstable; urgency=low
|
||||
|
||||
* cat game fixes
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[Desktop Entry]
|
||||
Encoding=UTF-8
|
||||
Version=0.8.6
|
||||
Version=0.8.7
|
||||
Type=Application
|
||||
Name=INSTEAD
|
||||
Name[ru]=INSTEAD
|
||||
|
|
|
@ -29,6 +29,7 @@
|
|||
}}}
|
||||
|
||||
Графический интерпретатор ищет доступные игры в каталоге games. Unix версия интерпретатора кроме этого каталога просматривает также игры в каталоге ~/.instead/games.
|
||||
Windows версия (>=0.8.7): Documents and Settings/<USER>/Local Settings/Application Data/instead/games.
|
||||
|
||||
== 1. Сцена ==
|
||||
|
||||
|
@ -961,6 +962,7 @@ scr.gfx.h = 500
|
|||
|
||||
Интерпретатор выполняет поиск тем в каталоге themes. Unix версия кроме этого каталога, просматривает также каталог ~/.instead/themes/
|
||||
|
||||
Windows версия (>=0.8.7): Documents and Settings/<USER>/Local Settings/Application Data/instead/themes
|
||||
|
||||
TODO
|
||||
Полный список объектов и методов.
|
||||
|
|
|
@ -21,8 +21,15 @@
|
|||
#endif
|
||||
|
||||
int opt_fsize = 0;
|
||||
#ifndef MAEMO
|
||||
int opt_fs = 0;
|
||||
int opt_owntheme = 1;
|
||||
int opt_hl = 1;
|
||||
#else
|
||||
int opt_fs = 1;
|
||||
int opt_owntheme = 0;
|
||||
int opt_hl = 0;
|
||||
#endif
|
||||
int opt_hz = 22050;
|
||||
int opt_vol = 127;
|
||||
int opt_motion = 1;
|
||||
|
@ -30,7 +37,6 @@ int opt_click = 1;
|
|||
int opt_music = 1;
|
||||
int opt_autosave = 1;
|
||||
int opt_filter = 1;
|
||||
int opt_owntheme = 1;
|
||||
char *opt_game = NULL;
|
||||
char *opt_theme = NULL;
|
||||
char *err_msg = NULL;
|
||||
|
@ -2391,11 +2397,10 @@ int game_highlight(int x, int y, int on)
|
|||
static xref_t hxref = NULL;
|
||||
xref_t xref = NULL;
|
||||
int up = 0;
|
||||
if (!opt_hl)
|
||||
return 0;
|
||||
|
||||
if (on) {
|
||||
xref = look_xref(x, y, &elem);
|
||||
if (xref) {
|
||||
if (xref && opt_hl) {
|
||||
game_cursor(-1);
|
||||
xref_set_active(xref, 1);
|
||||
xref_update(xref, elem->x, elem->y, game_clear);
|
||||
|
|
|
@ -445,8 +445,11 @@ int gfx_setmode(int w, int h, int fs)
|
|||
{
|
||||
gfx_width = w;
|
||||
gfx_height = h;
|
||||
|
||||
#ifndef MAEMO
|
||||
screen = SDL_SetVideoMode(gfx_width, gfx_height, 32, SDL_DOUBLEBUF | SDL_HWSURFACE | ( ( fs ) ? SDL_FULLSCREEN : 0 ) );
|
||||
#else
|
||||
screen = SDL_SetVideoMode(gfx_width, gfx_height, 16, SDL_DOUBLEBUF | SDL_HWSURFACE | ( ( fs ) ? SDL_FULLSCREEN : 0 ) );
|
||||
#endif
|
||||
if (screen == NULL) {
|
||||
fprintf(stderr, "Unable to set %dx%d video: %s\n", w, h, SDL_GetError());
|
||||
return -1;
|
||||
|
|
|
@ -14,6 +14,9 @@
|
|||
extern char *curgame;
|
||||
extern char *curgame_dir;
|
||||
|
||||
static char local_games_path[PATH_MAX];
|
||||
static char local_themes_path[PATH_MAX];
|
||||
|
||||
static char save_path[PATH_MAX];
|
||||
|
||||
void nsleep(int u)
|
||||
|
@ -21,14 +24,18 @@ void nsleep(int u)
|
|||
Sleep(u);
|
||||
}
|
||||
|
||||
char *app_dir( void );
|
||||
|
||||
char *game_local_games_path(void)
|
||||
{
|
||||
return NULL; /* TODO ? */
|
||||
snprintf(local_games_path, sizeof(local_games_path) - 1 , "%s/instead/games/", app_dir());
|
||||
return local_games_path;
|
||||
}
|
||||
|
||||
char *game_local_themes_path(void)
|
||||
{
|
||||
return NULL; /* TODO ? */
|
||||
snprintf(local_themes_path, sizeof(local_themes_path) - 1 , "%s/instead/themes/", app_dir());
|
||||
return local_themes_path;
|
||||
}
|
||||
|
||||
extern void unix_path(char *);
|
||||
|
|
|
@ -1247,7 +1247,7 @@ function game_step(self)
|
|||
return game_life(self);
|
||||
end
|
||||
|
||||
version = "0.8.6";
|
||||
version = "0.8.7";
|
||||
|
||||
game = game {
|
||||
nam = "INSTEAD -- Simple Text Adventure interpreter v"..version.." '2009 by Peter Kosyh",
|
||||
|
|
Loading…
Reference in a new issue