Browse Source

* fixed the ncurses build.

* replaced '�' with ':' in the fragbomb tail because it's not ASCII.


git-svn-id: file:///srv/caca.zoy.org/var/lib/svn/ttyvaders/trunk@66 92316355-f0b4-4df1-b90c-862c8a59935f
master
sam 22 years ago
parent
commit
18f1a33fb4
4 changed files with 23 additions and 11 deletions
  1. +8
    -0
      README
  2. +1
    -1
      TODO
  3. +6
    -2
      configure.ac
  4. +8
    -8
      src/weapons.c

+ 8
- 0
README View File

@@ -1,4 +1,12 @@

Building ttyvaders
==================

Run configure then make. Configure flags are:

--enable-slang: use the SLang library (default)
--enable-ncurses: use the ncurses library


History of textmode games
=========================


+ 1
- 1
TODO View File

@@ -2,7 +2,7 @@ Things to do

* let the ship pick up bonuses

* handle life
DONE 23 Dec 2002: handle life

* alien swarms, programmed behaviour



+ 6
- 2
configure.ac View File

@@ -18,22 +18,26 @@ AC_ARG_ENABLE(slang,
AC_ARG_ENABLE(ncurses,
[ --enable-ncurses ncurses graphics support (default disabled)])

USE_SLANG=false
USE_NCURSES=false
if test "${enable_ncurses}" = "yes"
then
AC_CHECK_HEADER(ncurses.h,:,AC_MSG_ERROR([cannot find ncurses headers]))
AC_CHECK_LIB(ncurses,initscr,:,AC_MSG_ERROR([cannot find ncurses library]))
USE_NCURSES=:
else
if test "${enable_slang}" != "no"
then
AC_CHECK_HEADER(slang.h,:,AC_MSG_ERROR([cannot find slang headers]))
AC_CHECK_LIB(slang,SLkp_init,:,AC_MSG_ERROR([cannot find slang library]))
USE_SLANG=:
else
:
fi
fi

AM_CONDITIONAL(USE_SLANG, test "${enable_slang}" != "no")
AM_CONDITIONAL(USE_NCURSES, test "${enable_ncurses}" = "yes")
AM_CONDITIONAL(USE_SLANG, ${USE_SLANG})
AM_CONDITIONAL(USE_NCURSES, ${USE_NCURSES})

AC_OUTPUT([
Makefile


+ 8
- 8
src/weapons.c View File

@@ -3,7 +3,7 @@
* Copyright (c) 2002 Sam Hocevar <sam@zoy.org>
* All Rights Reserved
*
* $Id: weapons.c,v 1.12 2002/12/23 09:28:37 sam Exp $
* $Id: weapons.c,v 1.13 2002/12/23 16:44:28 sam Exp $
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -493,9 +493,9 @@ static void draw_fragbomb( int x, int y, int frame )
gfx_putchar( 'o' );
gfx_color( GRAY );
gfx_goto( x - 1, y + 3 );
gfx_putchar( '°' );
gfx_putchar( ':' );
gfx_goto( x + 2, y + 4 );
gfx_putchar( '°' );
gfx_putchar( ':' );
gfx_goto( x, y + 4 );
gfx_putchar( '.' );
gfx_goto( x + 1, y + 5 );
@@ -511,9 +511,9 @@ static void draw_fragbomb( int x, int y, int frame )
gfx_putchar( 'o' );
gfx_color( GRAY );
gfx_goto( x + 2, y + 3 );
gfx_putchar( '°' );
gfx_putchar( ':' );
gfx_goto( x + 1, y + 4 );
gfx_putchar( '°' );
gfx_putchar( ':' );
gfx_goto( x - 1, y + 4 );
gfx_putchar( '.' );
gfx_goto( x + 2, y + 5 );
@@ -531,7 +531,7 @@ static void draw_fragbomb( int x, int y, int frame )
gfx_putchar( 'o' );
gfx_color( GRAY );
gfx_goto( x, y + 4 );
gfx_putchar( '°' );
gfx_putchar( ':' );
gfx_goto( x + 2, y + 4 );
gfx_putchar( '.' );
gfx_goto( x + 1, y + 5 );
@@ -549,9 +549,9 @@ static void draw_fragbomb( int x, int y, int frame )
gfx_putchar( 'o' );
gfx_color( GRAY );
gfx_goto( x, y + 3 );
gfx_putchar( '°' );
gfx_putchar( ':' );
gfx_goto( x + 1, y + 4 );
gfx_putchar( '°' );
gfx_putchar( ':' );
gfx_goto( x, y + 5 );
gfx_putchar( '.' );
break;


Loading…
Cancel
Save