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: Anonymous 2010-05-16 10:06

>>80
LOOK IN MY ANUS

Name: Anonymous 2010-05-16 10:15

>>80
sudo apt-get install libc6-dev liballegro4.2-dev

Name: Anonymous 2010-05-16 15:29

>>82

C:\>sudo apt-get install libc6-dev liballegro4.2-dev
'sudo' is not recognized as an internal or external command,
operable program or batch file.

Name: Anonymous 2010-05-16 15:41

>>83
Your platform doesn't even have a C compiler. Your efforts are wasted, due to nobody's fault but your own.

Name: Anonymous 2010-05-16 15:55

>>82
$ sudo apt-get install libc6-dev liballegro4.2-dev
This is not Ubuntu, faggot.

Name: Anonymous 2010-05-16 16:09

>>83

C:\> <- I think I found your problem.

Last time I checked, windows doesn't have sudo, apt-get or any unix command.

Name: Anonymous 2010-05-16 16:12

>>86
Before anybody blasts me... I know apt-get is not "unix" nor is it used in real "unix" systems, because they use a ports system. I was more or less talking about *nix userlandish commands.

Name: Anonymous 2010-05-16 16:21

>>86-87
CLAP FUCKING CLAP

Name: Anonymous 2010-05-16 16:24

>>86
It does have a posix subsystem, and there's also cygwin and mingw. As for the native C compiler: it comes with many development packages, but since most packages are distributed as binaries by default, there's no need to include the compiler unless the user is a developer, in which case he can install everything he needs himself.

Name: Anonymous 2010-05-16 17:29

>>85
It's assumed that anyone who doesn't use Ubanto knows what he's doing to an extent sufficient that he can locate and install libc and one of the most popular C game programming libraries around himself.

Name: Anonymous 2010-05-16 17:39

>>90
HIBT? or am I really going to have to explain a relatively old joke?

Name: Anonymous 2010-05-16 18:27

2D tank
#-The perspective of the user must be fixed and facing down at the tank.

I know I'm late to the party but umm.... you ain't gunna see shit captain

Name: Anonymous 2010-05-16 18:34

>>91
Idiot. The fact that it's a meme doesn't mean that it's empty of content, and >>90 replied to that content. You're the kind of person that gives meme-spouters a bad name.

>>92
Just go away. Your interpretation has been noted and implemented even before your joke was made the first time, thirty posts ago.

Name: Anonymous 2010-05-16 18:41

>>90
Haha, fuck you, idiot.

Name: Anonymous 2010-05-17 2:20

>>25
END_OF_MAIN() is optional in the latest version of allegro.

Name: Anonymous 2010-05-17 4:16

>>82
I'm on windows

Name: Anonymous 2010-05-17 4:29

Name: Anonymous 2010-05-17 4:44

>>97
fuck that shit I'm putting in a Linux Mint livecd

Name: Anonymous 2010-05-17 4:45

>>98
linux mint is just some gay ubuntu wannabe distro.

Name: !GtGMOOTdOg 2010-05-17 4:56

100GET!

Name: Anonymous 2010-05-17 4:58

>>100
ZOMG EPIC WIN!

Name: Anonymous 2010-05-17 5:06

>>99
Why does it matter to virgin nerds what linux distro I use?

Name: Anonymous 2010-05-17 5:28

>>102
it doesn't, as long as you don't come back complaining about how much your ass hurts.

Name: Anonymous 2010-05-17 5:33

>>103
Are you an queer!

Name: Anonymous 2010-05-17 5:36

>>104
sorry, i'm not. you'll have to find someone else to have buttsex with.

Name: Anonymous 2010-05-17 5:52

>>105
I volunteer!

Name: Anonymous 2010-05-17 6:01

I unvolunteer >>106 and instead volunteer >>109

Name: Anonymous 2010-05-17 6:19

>>107
U MENA >>105

Name: Anonymous 2010-05-17 6:44

You require my services >>109?

Name: Anonymous 2010-05-17 8:12

>>102
This, especially Gentoo users.

Name: Anonymous 2010-05-17 13:04

Thank goodness you guys have gotten back to quality distro-bashing and accusations of homosexuality. I was worried that there might actually be from programming going on here.

Name: Anonymous 2010-05-17 17:00

>>111
WORRY MY ANUS

Name: Anonymous 2010-05-17 17:29

>>85
Hey, you seem pretty knowledgeable about this kind of thing; how do I install SDL in cygwin for mingw?

Name: Anonymous 2010-05-17 17:54

>>111
Well, this thread is basically over, now that the winners have been announced. What more do you expect?

Name: Anonymous 2010-05-17 18:20

>>113
download the source and compile it with -mno-cygwin.
or just forget about mingw and use cygwin's setup.exe.

Name: Anonymous 2010-05-17 21:27

>>115
Will the SDL only be able to use X11 that way?

Name: Anonymous 2010-05-17 21:52

>>116
if you compile the source yourself, that depends on how you configure it.

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

Name: Anonymous 2010-05-18 11:55

>>118
That's really impressive.

Name: Anonymous 2010-05-18 11:57

>>118
Tank.c:26:21: error: allegro.h: No such file or directory

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