Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Challenge: 2D Tank

Name: Anonymous 2010-05-14 15:43

The Challenge:
|---->Program a 2d tank application in the language of your choice that adheres to the following:

#-The tank must rotate using the left and right directional keys.
#-The tank must loosely resemble a tank.
#-The tank must move forward or backward respectively from the direction it is facing using the up and down directional keys.
#-Pressing spacebar must fire a 'shot' in the direction the tank is facing.
#-The perspective of the user must be fixed and facing down at the tank.
#-The tank, shot, and ground must each have their own color. (all shots may have the same color)


<------You have 24 hours!------>
GET TO WORK!

Name: Help!! 2010-05-18 9:39

>>16

Tank.c:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘-’ token
Tank.c:1: error: stray ‘`’ in program
Tank.c:1: error: stray ‘`’ in program
In file included from /usr/include/stdio.h:75,
                 from Tank.c:24:
/usr/include/libio.h:332: error: expected specifier-qualifier-list before ‘size_t’
/usr/include/libio.h:364: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/libio.h:373: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/libio.h:493: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘_IO_sgetn’
In file included from Tank.c:24:
/usr/include/stdio.h:312: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/stdio.h:319: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/stdio.h:361: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/stdio.h:363: error: format string argument not a string type
/usr/include/stdio.h:365: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/stdio.h:678: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘fread’
/usr/include/stdio.h:684: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘fwrite’
/usr/include/stdio.h:706: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘fread_unlocked’
/usr/include/stdio.h:708: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘fwrite_unlocked’
Tank.c:26:21: error: allegro.h: No such file or directory
Tank.c: In function ‘main’:
Tank.c:38: error: ‘fixed’ undeclared (first use in this function)
Tank.c:38: error: (Each undeclared identifier is reported only once
Tank.c:38: error: for each function it appears in.)
Tank.c:38: error: expected ‘;’ before ‘tangle’
Tank.c:40: error: ‘BITMAP’ undeclared (first use in this function)
Tank.c:40: error: ‘background’ undeclared (first use in this function)
Tank.c:40: error: ‘tank’ undeclared (first use in this function)
Tank.c:40: error: ‘miss’ undeclared (first use in this function)
Tank.c:40: error: ‘buffa’ undeclared (first use in this function)
Tank.c:47: error: ‘GFX_AUTODETECT_WINDOWED’ undeclared (first use in this function)
Tank.c:67: error: ‘mangle’ undeclared (first use in this function)
Tank.c:68: error: ‘tangle’ undeclared (first use in this function)
Tank.c:69: error: ‘screen’ undeclared (first use in this function)
Tank.c:78: error: ‘KEY_SPACE’ undeclared (first use in this function)
Tank.c:87: error: ‘KEY_LEFT’ undeclared (first use in this function)
Tank.c:91: error: ‘KEY_RIGHT’ undeclared (first use in this function)
Tank.c:95: error: ‘KEY_UP’ undeclared (first use in this function)
Tank.c:99: error: ‘KEY_DOWN’ undeclared (first use in this function)
Tank.c: In function ‘END_OF_MAIN’:
Tank.c:117: error: expected ‘{’ at end of input

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List