Skip to content

Commit

Permalink
Merge branch 'rel_0.3.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
phtrivier committed Apr 18, 2010
2 parents 55e7abb + 5aeaf61 commit d1818a3
Show file tree
Hide file tree
Showing 215 changed files with 1,479 additions and 434 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,6 @@ ube-*.*
sandbox/*
semantic.cache
*.bak
doc/muse/*.pdf
doc/muse/*.pdf

*.*.orig
2 changes: 1 addition & 1 deletion Makefile.am
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
SUBDIRS = po src data
ACLOCAL_AMFLAGS = -I m4
EXTRA_DIST=include lib COPYING
EXTRA_DIST=include lib COPYING RELEASES.txt
11 changes: 10 additions & 1 deletion RELEASES.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
* 27/03/2010 0.2.1 'Sidaction' (http://www.sidaction.org)
* 18/04/2010 0.3.0 'St Perfectus' (http://en.wikipedia.org/wiki/Perfectus)

- Lots of UI modifications
- Added french translation of the puzzle names
- Available moves can be toggled with 'Tab'
- Added a few puzzles
- Fixed help message
- Refactored build system to allow cross-compilation without lua in the sources

* 27/03/2010 0.2.1 'Sidaction' (http://www.sidaction.org)

- Lua included in the build

Expand Down
36 changes: 36 additions & 0 deletions config.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@
/* Define if you have the iconv() function and it works. */
#undef HAVE_ICONV

/* Define to 1 if you have the <inttypes.h> header file. */
#undef HAVE_INTTYPES_H

/* Define to 1 if you have the `popt' library (-lpopt). */
#undef HAVE_LIBPOPT

Expand All @@ -37,6 +40,36 @@
/* Define to 1 if you have the `SDL_ttf' library (-lSDL_ttf). */
#undef HAVE_LIBSDL_TTF

/* Define to 1 if you have the <lualib.h> header file. */
#undef HAVE_LUALIB_H

/* Define to 1 if you have the <lua.h> header file. */
#undef HAVE_LUA_H

/* Define to 1 if you have the <memory.h> header file. */
#undef HAVE_MEMORY_H

/* Define to 1 if you have the <stdint.h> header file. */
#undef HAVE_STDINT_H

/* Define to 1 if you have the <stdlib.h> header file. */
#undef HAVE_STDLIB_H

/* Define to 1 if you have the <strings.h> header file. */
#undef HAVE_STRINGS_H

/* Define to 1 if you have the <string.h> header file. */
#undef HAVE_STRING_H

/* Define to 1 if you have the <sys/stat.h> header file. */
#undef HAVE_SYS_STAT_H

/* Define to 1 if you have the <sys/types.h> header file. */
#undef HAVE_SYS_TYPES_H

/* Define to 1 if you have the <unistd.h> header file. */
#undef HAVE_UNISTD_H

/* Name of package */
#undef PACKAGE

Expand All @@ -58,5 +91,8 @@
/* Define to the version of this package. */
#undef PACKAGE_VERSION

/* Define to 1 if you have the ANSI C header files. */
#undef STDC_HEADERS

/* Version number of package */
#undef VERSION
25 changes: 24 additions & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,15 @@ AM_GNU_GETTEXT_VERSION([0.17])
AC_PROG_CXX
AC_PROG_RANLIB

AC_ARG_ENABLE([mingw],
[ --enable-mingw Makes it possible to cross compile with mingw-cross-env ],
[case "${enableval}" in
yes) mingw=true ;;
no) mingw=false ;;
*) mingw=false;;
esac],[mingw=false])
AM_CONDITIONAL([MINGW], [test x$mingw = xtrue])

PKG_CHECK_MODULES([SDL], [sdl >= 1.2.13])

PKG_CHECK_EXISTS([SDL_image], [PKG_CHECK_MODULES([SDL_image], [SDL_image >= 1.2])], [AC_CHECK_LIB(SDL_image, IMG_LoadPNG_RW,,AC_MSG_ERROR([*** Unable to find SDL_image libary]))])
Expand All @@ -17,22 +26,36 @@ AC_CHECK_LIB([popt], [poptGetContext], , AC_MSG_WARN([Could not find popt lib]))

AX_BOOST_BASE([1.34])

AM_COND_IF([MINGW], [
AX_LUA_HEADERS
AX_LUA_LIBS],
[])

AC_CONFIG_HEADERS([config.h])

AC_CONFIG_FILES([
Makefile
src/Makefile
src/lua/Makefile
src/common/Makefile
src/engine/Makefile
src/mvc/Makefile
src/client/Makefile
po/Makefile.in
data/Makefile
data/images/Makefile
data/images/png/Makefile
data/fonts/Makefile
data/ogg/Makefile
data/lua/Makefile
data/lua/puzzles/Makefile
data/pixmaps/Makefile
data/applications/Makefile
])

AM_COND_IF([MINGW],[],
[
AC_CONFIG_FILES([src/lua/Makefile])
])

AC_OUTPUT

3 changes: 2 additions & 1 deletion data/Makefile.am
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
SUBDIRS=images fonts ogg lua
SUBDIRS=images fonts ogg lua pixmaps applications

5 changes: 5 additions & 0 deletions data/applications/Makefile.am
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
applicationsdir=${datadir}/applications

applications_DATA=ube.desktop

EXTRA_DIST=${applications_DATA}
9 changes: 9 additions & 0 deletions data/applications/ube.desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[Desktop Entry]
Name=Ube
Comment=A puzzle game based on movement
Comment[fr]=Un casse-tête basé sur le déplacement
Exec=ube
Terminal=false
Icon=ube32x32.xpm
Type=Application
Categories=Game;LogicGame;
13 changes: 6 additions & 7 deletions data/images/Makefile.am
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
imagesdir=${datadir}/@PACKAGE@/images

images_DATA=cell_0.png cell_1.png cell_2.png cell_3.png \
selected_cell.png player.png \
move_0.png move_1.png move_2.png \
overlay_move_0.png overlay_move_1.png overlay_move_2.png \
path_0.png path_1.png path_2.png \
banned_cell.png \
# Note : ideally, this list should be empty in the long term,
# and every image should be loaded from png ...
images_DATA=selected_cell.png \
undo.png redo.png disabled_undo.png disabled_redo.png \
bg.png
bg.png bg_puzzle_selection.png

SUBDIRS=png

EXTRA_DIST=${images_DATA}
Binary file removed data/images/banned_cell.png
Binary file not shown.
Binary file added data/images/bg_puzzle_selection.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added data/images/bg_puzzle_selection.xcf
Binary file not shown.
Binary file removed data/images/cell1.png
Binary file not shown.
Binary file removed data/images/cell2.png
Binary file not shown.
Binary file removed data/images/cell3.png
Binary file not shown.
Binary file removed data/images/cell4.png
Binary file not shown.
Binary file removed data/images/cell5.png
Binary file not shown.
Binary file removed data/images/cell6.png
Binary file not shown.
Binary file removed data/images/cell7.png
Binary file not shown.
Binary file removed data/images/cell_0.png
Binary file not shown.
Binary file removed data/images/cell_1.png
Binary file not shown.
Binary file removed data/images/cell_2.png
Binary file not shown.
Binary file removed data/images/cell_3.png
Binary file not shown.
Binary file removed data/images/gnu.png
Binary file not shown.
Binary file removed data/images/move_0.png
Binary file not shown.
Binary file removed data/images/move_0.xcf
Binary file not shown.
Binary file removed data/images/move_1.png
Binary file not shown.
Binary file removed data/images/move_2.png
Binary file not shown.
Binary file removed data/images/overlay_move_0.png
Binary file not shown.
Binary file removed data/images/overlay_move_1.png
Binary file not shown.
Binary file removed data/images/overlay_move_2.png
Binary file not shown.
Binary file removed data/images/path_0.png
Binary file not shown.
Binary file removed data/images/path_0.xcf
Binary file not shown.
Binary file removed data/images/path_1.png
Binary file not shown.
Binary file removed data/images/path_1.xcf
Binary file not shown.
Binary file removed data/images/path_2.png
Binary file not shown.
Binary file removed data/images/path_2.xcf
Binary file not shown.
Binary file removed data/images/player.png
Binary file not shown.
11 changes: 11 additions & 0 deletions data/images/png/Makefile.am
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#TODO : is there a way to share this variable from top level Makefile.am ?
imagesdir=${datadir}/@PACKAGE@/images

pngsdir=${imagesdir}/png

pngs_DATA=cell_0.png cell_1.png cell_2.png cell_3.png \
path_0.png move_0.png move_0_grayed.png overlay_move_0.png \
path_1.png move_1.png move_1_grayed.png overlay_move_1.png \
player.png banned_cell.png

EXTRA_DIST=${pngs_DATA}
Binary file added data/images/png/banned_cell.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added data/images/png/cell_0.png
Binary file added data/images/png/cell_1.png
Binary file added data/images/png/cell_2.png
Binary file added data/images/png/cell_3.png
Binary file added data/images/png/move_0.png
Binary file added data/images/png/move_0_grayed.png
Binary file added data/images/png/move_1.png
Binary file added data/images/png/move_1_grayed.png
Binary file added data/images/png/overlay_move_0.png
Binary file added data/images/png/overlay_move_1.png
Binary file added data/images/png/path_0.png
Binary file added data/images/png/path_1.png
Binary file added data/images/png/player.png
Binary file added data/images/xcf/banned_cell.xcf
Binary file not shown.
Binary file added data/images/xcf/banned_cell_bak.xcf
Binary file not shown.
Binary file added data/images/xcf/banned_cell_modern.xcf
Binary file not shown.
Binary file added data/images/xcf/cell_0.xcf
Binary file not shown.
Binary file added data/images/xcf/cell_1.xcf
Binary file not shown.
Binary file added data/images/xcf/cell_2.xcf
Binary file not shown.
Binary file added data/images/xcf/cell_3.xcf
Binary file not shown.
Binary file not shown.
Binary file added data/images/xcf/move_0_grayed.xcf
Binary file not shown.
Binary file not shown.
Binary file added data/images/xcf/move_1_grayed.xcf
Binary file not shown.
Binary file added data/images/xcf/overlay_move_0.xcf
Binary file not shown.
Binary file added data/images/xcf/overlay_move_1.xcf
Binary file not shown.
Binary file added data/images/xcf/path_0.xcf
Binary file not shown.
Binary file added data/images/xcf/path_1.xcf
Binary file not shown.
Binary file added data/images/xcf/player.xcf
Binary file not shown.
7 changes: 3 additions & 4 deletions data/lua/puzzles/Makefile.am
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
puzzlesdir=${datadir}/@PACKAGE@/lua/puzzles
puzzles_DATA=puzzle1.lua puzzle2.lua puzzle3.lua \
tutorial0.lua tutorial0a.lua tutorial1.lua tutorial2.lua \
tutorial3.lua tutorial4.lua
EXTRA_DIST=${puzzles_DATA}
dist_puzzles_DATA=tutorial0.lua tutorial1.lua tutorial2.lua \
tutorial3.lua tutorial4.lua tutorial5.lua \
tutorial6.lua tutorial7.lua
17 changes: 0 additions & 17 deletions data/lua/puzzles/puzzle1.lua

This file was deleted.

9 changes: 0 additions & 9 deletions data/lua/puzzles/puzzle2.lua

This file was deleted.

15 changes: 0 additions & 15 deletions data/lua/puzzles/puzzle3.lua

This file was deleted.

2 changes: 0 additions & 2 deletions data/lua/puzzles/template.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
-- First puzzle to load in the game
set_puzzle_dimensions(22,11)

set_puzzle_rows({"I#####################",
"######################",
"######################",
Expand Down
24 changes: 11 additions & 13 deletions data/lua/puzzles/tutorial0.lua
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
-- First puzzle to load in the game
set_puzzle_dimensions(22,11)

set_puzzle_rows({"I----------###########",
"-----------###########",
"-----------###########",
"-----------###########",
"------------##########",
"##########------------",
"###########-----------",
"###########-----------",
"###########-----------",
"###########-----------",
"###########----------O"})
set_puzzle_rows({"######################",
"######################",
"######################",
"##-----########-----##",
"#-------######-------#",
"#---I------------O---#",
"#-------######-------#",
"##-----########-----##",
"######################",
"######################",
"######################"})

set_puzzle_moves({Move.SINGLE})
16 changes: 0 additions & 16 deletions data/lua/puzzles/tutorial0a.lua

This file was deleted.

24 changes: 11 additions & 13 deletions data/lua/puzzles/tutorial1.lua
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
-- First puzzle to load in the game
set_puzzle_dimensions(22,11)

set_puzzle_rows({"I----------###########",
"-----------###########",
"-----------###########",
"----------------------",
"----------############",
"#########-#-----------",
"#########-#-----------",
"#########-#-----------",
"#########-#-----------",
"#########-#---------O-",
"#########-#-----------"})
"##########-###########",
"#########---##########",
"######################",
"######---------#####O#",
"####################-#",
"##########-#######-#-#",
"######################",
"########-----#####-###",
"######################",
"##########-#-#-#-#-###"})

set_puzzle_moves({Move.SINGLE, Move.SINGLE, Move.DOUBLE})
set_puzzle_moves({Move.SINGLE, Move.DOUBLE})
26 changes: 12 additions & 14 deletions data/lua/puzzles/tutorial2.lua
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
-- First puzzle to load in the game
set_puzzle_dimensions(22,11)
set_puzzle_rows({"----------############",
"-I---------###########",
"--------------------##",
"----------------------",
"#---------############",
"########--#-----------",
"########--#-----------",
"########--#-----------",
"########--#-----------",
"########--#---------O-",
"#########-#-----------"})

set_puzzle_rows({"I-###########----#####",
"----------###-------##",
"##--#########----##-##",
"###-#-----#########-##",
"###-#-----------###-##",
"###-#-----#########-##",
"###-###-#####----##-##",
"###-###----------##-##",
"###-###-#####----##-##",
"###-###-###########-##",
"###-----###########--O"})

set_puzzle_moves({Move.DOUBLE, Move.SINGLE, Move.SINGLE })
set_puzzle_moves({Move.SINGLE, Move.SINGLE, Move.DOUBLE})
Loading

0 comments on commit d1818a3

Please sign in to comment.