Browse Source

* fixed the ncurses build.

* replaced '�' with ':' in the fragbomb tail because it's not ASCII.
tags/v0.99.beta14
Sam Hocevar sam 22 years ago
parent
commit
8ec78ad48e
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 History of textmode games
========================= =========================


+ 1
- 1
TODO View File

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


* let the ship pick up bonuses * let the ship pick up bonuses


* handle life
DONE 23 Dec 2002: handle life


* alien swarms, programmed behaviour * alien swarms, programmed behaviour




+ 6
- 2
configure.ac View File

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


USE_SLANG=false
USE_NCURSES=false
if test "${enable_ncurses}" = "yes" if test "${enable_ncurses}" = "yes"
then then
AC_CHECK_HEADER(ncurses.h,:,AC_MSG_ERROR([cannot find ncurses headers])) AC_CHECK_HEADER(ncurses.h,:,AC_MSG_ERROR([cannot find ncurses headers]))
AC_CHECK_LIB(ncurses,initscr,:,AC_MSG_ERROR([cannot find ncurses library])) AC_CHECK_LIB(ncurses,initscr,:,AC_MSG_ERROR([cannot find ncurses library]))
USE_NCURSES=:
else else
if test "${enable_slang}" != "no" if test "${enable_slang}" != "no"
then then
AC_CHECK_HEADER(slang.h,:,AC_MSG_ERROR([cannot find slang headers])) 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])) AC_CHECK_LIB(slang,SLkp_init,:,AC_MSG_ERROR([cannot find slang library]))
USE_SLANG=:
else else
: :
fi fi
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([ AC_OUTPUT([
Makefile Makefile


+ 8
- 8
src/weapons.c View File

@@ -3,7 +3,7 @@
* Copyright (c) 2002 Sam Hocevar <sam@zoy.org> * Copyright (c) 2002 Sam Hocevar <sam@zoy.org>
* All Rights Reserved * 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 * 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 * 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_putchar( 'o' );
gfx_color( GRAY ); gfx_color( GRAY );
gfx_goto( x - 1, y + 3 ); gfx_goto( x - 1, y + 3 );
gfx_putchar( '°' );
gfx_putchar( ':' );
gfx_goto( x + 2, y + 4 ); gfx_goto( x + 2, y + 4 );
gfx_putchar( '°' );
gfx_putchar( ':' );
gfx_goto( x, y + 4 ); gfx_goto( x, y + 4 );
gfx_putchar( '.' ); gfx_putchar( '.' );
gfx_goto( x + 1, y + 5 ); gfx_goto( x + 1, y + 5 );
@@ -511,9 +511,9 @@ static void draw_fragbomb( int x, int y, int frame )
gfx_putchar( 'o' ); gfx_putchar( 'o' );
gfx_color( GRAY ); gfx_color( GRAY );
gfx_goto( x + 2, y + 3 ); gfx_goto( x + 2, y + 3 );
gfx_putchar( '°' );
gfx_putchar( ':' );
gfx_goto( x + 1, y + 4 ); gfx_goto( x + 1, y + 4 );
gfx_putchar( '°' );
gfx_putchar( ':' );
gfx_goto( x - 1, y + 4 ); gfx_goto( x - 1, y + 4 );
gfx_putchar( '.' ); gfx_putchar( '.' );
gfx_goto( x + 2, y + 5 ); gfx_goto( x + 2, y + 5 );
@@ -531,7 +531,7 @@ static void draw_fragbomb( int x, int y, int frame )
gfx_putchar( 'o' ); gfx_putchar( 'o' );
gfx_color( GRAY ); gfx_color( GRAY );
gfx_goto( x, y + 4 ); gfx_goto( x, y + 4 );
gfx_putchar( '°' );
gfx_putchar( ':' );
gfx_goto( x + 2, y + 4 ); gfx_goto( x + 2, y + 4 );
gfx_putchar( '.' ); gfx_putchar( '.' );
gfx_goto( x + 1, y + 5 ); gfx_goto( x + 1, y + 5 );
@@ -549,9 +549,9 @@ static void draw_fragbomb( int x, int y, int frame )
gfx_putchar( 'o' ); gfx_putchar( 'o' );
gfx_color( GRAY ); gfx_color( GRAY );
gfx_goto( x, y + 3 ); gfx_goto( x, y + 3 );
gfx_putchar( '°' );
gfx_putchar( ':' );
gfx_goto( x + 1, y + 4 ); gfx_goto( x + 1, y + 4 );
gfx_putchar( '°' );
gfx_putchar( ':' );
gfx_goto( x, y + 5 ); gfx_goto( x, y + 5 );
gfx_putchar( '.' ); gfx_putchar( '.' );
break; break;


Loading…
Cancel
Save