Browse Source

* 3rd alien type.

git-svn-id: file:///srv/caca.zoy.org/var/lib/svn/ttyvaders/trunk@32 92316355-f0b4-4df1-b90c-862c8a59935f
master
sam 22 years ago
parent
commit
d67cc6fc17
3 changed files with 39 additions and 21 deletions
  1. +3
    -1
      TODO
  2. +16
    -1
      doc/shapes.txt
  3. +20
    -19
      src/aliens.c

+ 3
- 1
TODO View File

@@ -14,11 +14,13 @@ Things to do


* fragmentation bomb (merge with mega-ball?) * fragmentation bomb (merge with mega-ball?)


* stick aliens to tunnel

* change tunnel colour * change tunnel colour


* fill holes in the tunnel when |step| > 2 * fill holes in the tunnel when |step| > 2


* draw a 3rd alien type
DONE Dec 18 2002: draw a 3rd alien type


* draw bosses * draw bosses




+ 16
- 1
doc/shapes.txt View File

@@ -23,9 +23,24 @@ Aliens
,---. ,---. ,---. ,---. ,---. ,---. ,---. ,---. ,---. ,---.
(((o))) ((((o)) (((o))) ((o)))) (((o))) (((o))) ((((o)) (((o))) ((o)))) (((o)))
`---' `---' `---' `---' `---' `---' `---' `---' `---' `---'
o
o( )o
(_)

____ ____ ____
/ oO \ / oo \ / oo \
(//~~\\) (((^^))) \\\///

__ __ __ __
/oO\ /oO\ /oo\ /oo\
//'`\\ /(~~)\ ((^^)) \\//

_o|o_ _o|o_
T|T T|T


o_o O_o o_o o_O
( v ) ( v ) ( v ) ( v )
)|( )// )/( \\(
_ _
,(|). / \ ,(|). / \
/,-'-.\ ,(_X_). /,-'-.\ ,(_X_).
@@ -89,7 +104,7 @@ Shots
' ` -' `- ,-' `-. ,-' `-. ,-' `-. ,-' `-. ,-' `-. ' ` -' `- ,-' `-. ,-' `-. ,-' `-. ,-' `-. ,-' `-.


,--. ,--.
( )
( () )
`--' `--'
o O o O
o ° o °


+ 20
- 19
src/aliens.c View File

@@ -32,7 +32,7 @@ void draw_aliens( game *g, aliens *al )
draw_alien_poolp( g, al->x[i], al->y[i], al->img[i] % 2 ); draw_alien_poolp( g, al->x[i], al->y[i], al->img[i] % 2 );
break; break;
case ALIEN_BOOL: case ALIEN_BOOL:
draw_alien_bool( g, al->x[i], al->y[i], al->img[i] % 5 );
draw_alien_bool( g, al->x[i], al->y[i], al->img[i] % 6 );
break; break;
case ALIEN_NONE: case ALIEN_NONE:
break; break;
@@ -134,38 +134,39 @@ static void draw_alien_poolp( game *g, int x, int y, int frame )
static void draw_alien_bool( game *g, int x, int y, int frame ) static void draw_alien_bool( game *g, int x, int y, int frame )
{ {
gfx_color( GREEN ); gfx_color( GREEN );
gfx_goto( x+1, y );
gfx_putstr( ",---." );
gfx_goto( x, y-1 );
gfx_putstr( "__" );


gfx_goto( x, y+1 );
gfx_putchar( '(' );
gfx_goto( x-1, y );
gfx_putchar( '/' );
gfx_goto( x+2, y );
gfx_putchar( '\\' );


gfx_color( WHITE );
switch( frame ) switch( frame )
{ {
case 4:
gfx_putstr( "##( )" );
break;
case 3: case 3:
gfx_putstr( ")##( " );
gfx_goto( x-2, y+1 );
gfx_putstr( "//'`\\\\" );
break; break;
case 4:
case 2: case 2:
gfx_putstr( " )##(" );
gfx_goto( x-2, y+1 );
gfx_putstr( "/(~~)\\" );
break; break;
case 5:
case 1: case 1:
gfx_putstr( "( )##" );
gfx_goto( x-2, y+1 );
gfx_putstr( "((^^))" );
break; break;
case 0: case 0:
gfx_putstr( "#( )#" );
gfx_goto( x-1, y+1 );
gfx_putstr( "\\\\//" );
break; break;
} }


gfx_color( GREEN );
gfx_goto( x+6, y+1 );
gfx_putchar( ')' );

gfx_goto( x+1, y+2 );
gfx_putstr( "`---'" );
gfx_color( WHITE );
gfx_goto( x, y );
gfx_putstr( "oo" );
} }


static void draw_alien_brah( game *g, int x, int y, int frame ) static void draw_alien_brah( game *g, int x, int y, int frame )


Loading…
Cancel
Save