Archived

This topic is now archived and is closed to further replies.

Michalson

ASCII Fishtank Mini Contest!

Recommended Posts

Michalson    1657
quote:
Original post by walkingcarcass
Can I see people''s submissions, or at least screen shots?

********


A Problem Worthy of Attack
Proves It''s Worth by Fighting Back


As said before (twice), once the contest is over all the submissions will be up for download. For now I *don''t have* any submissions, I haven''t even posted how to submit entries.

Share this post


Link to post
Share on other sites
Michalson    1657
quote:
Original post by Andrew Nguyen
I am soooooo offended.


I didn''t get an email from you. Are you sure you sent it to the one listed in the "Judges Wanted" thread?

Share this post


Link to post
Share on other sites
Big Sassy    311
Yeah I got the e-mail. I was just wondering who else was picked. By the way, thanks a lot for selecting me. This should be fun

***********************
          

Share this post


Link to post
Share on other sites
reaction    100
This reminds me of a prog I wrote years ago.

320x200 image, scanned, replacing each pixel with a character that had the same(ish) intensity as the pixel.

Printed out on 6 sheets of A4, looked pretty cool, from a distance.

Gave a picture printed with it to my brother for his birthday.

I guess with colour printing now, I should do a updated version.

Share this post


Link to post
Share on other sites
TwistedMatrix    122
I am sorry to report that I am dropping out of this contest. It was fun to work on for a while, but ultimatly, I have more important things to do. So i''ll take my leave of you, but before I go, Here is a morsal of code to help you all.


/* Sends a string to the video display */
void str_print(char *str, char x, char y, char fg_col, char bg_col, unsigned short int *vidBuffer, unsigned short int vidSize)
{
unsigned int off= y*80+x, i;
if (off > vidSize-1 || off < 0) {
printf("ERROR: text_print attempted to write outside of logical memmory space!");
readkey();
return;
}
for (i=0; i *(vidBuffer+off+i) = ((fg_col+bg_col*16)<<8) | (*(str+i) & 0xFF);
}
return;
}

/* Sends a character to the video display */
void char_print(char a, char x, char y, char fg_col, char bg_col, unsigned short int *vidBuffer, unsigned short int vidSize)
{
unsigned int off = y*80 + x;
if (off > vidSize-1 || off < 0) {
printf("ERROR: text_print attempted to write outside of logical memmory space!");
readkey();
return;
}
*(vidBuffer+off) = ((fg_col+bg_col*16)<<8) | (a & 0xFF);
return;
}

/* string immediate print - directly updates the vid display when called */
/* NOTE: only updates the data that is occupied by the string */
void str_immprint(char *str, char x, char y, char fg_col, char bg_col, unsigned short int vidSize)
{
unsigned int off= y*160+x*2, i, len=strlen(str);
unsigned short int strbuff[len];

if (off > vidSize*2-1 || off < 0) {
printf("ERROR: text_print attempted to write outside of logical memmory space!");
readkey();
return;
}
for (i=0; i strbuff = ((fg_col+bg_col*16)<<8) | (*(str+i) & 0xFF);
}
_dosmemputw(strbuff,len,0xB8000+off);
return;
}

void char_immprint(char a, char x, char y, char fg_col, char bg_col, unsigned short int vidSize)
{
unsigned int off= y*160+x*2, i, buff;

if (off > vidSize*2-1 || off < 0) {
printf("ERROR: text_print attempted to write outside of logical memmory space!");
readkey();
return;
}
buff=((fg_col+bg_col*16)<<8) | (a & 0xFF);
_dosmemputw(&buff,1,0xB8000+off);
return;
}


/*** Sets mode 3h to 80x25 - WARNING - Very unportable code! ***/
void text_80x25()
{
union REGS inregs, outregs;
inregs.w.ax = 0x0003; /* SET VGA TEXT MODE */
int86(0x10, &inregs, &outregs);
inregs.w.ax = 0x1114; /* LOAD ROM 8x16 CHARS */
inregs.h.bl = 0;
int86(0x10, &inregs, &outregs);
outportb(0x3D4,9); outportb(0x3D5,15); /* SET 16 SCAN LINES PER ROW */
outportb(0x3D4,18); outportb(0x3D5,143);
return;
}

/*** Sets mode 3h to 80x50 - WARNING - Very unportable code! ***/
void text_80x50()
{
union REGS inregs, outregs;
inregs.w.ax = 0x0003; /* SET VGA TEXT MODE */
int86(0x10, &inregs, &outregs);
inregs.w.ax = 0x1112; /* LOAD ROM 8x8 CHARS */
inregs.h.bl = 0;
int86(0x10, &inregs, &outregs);
outportb(0x3D4,9); outportb(0x3D5,7); /* SET 8 SCAN LINES PER ROW */
outportb(0x3D4,18); outportb(0x3D5,143);
return;
}


- Twisted Matrix

Share this post


Link to post
Share on other sites
Yann L    1802
I''ll also have to drop out. I haven''t even started coding, and won''t have the time to do anything for the next two weeks (working on our game demo. Damn, I hate deadlines). Oh well, perhaps the next contest.

Share this post


Link to post
Share on other sites
Michalson    1657
quote:
Original post by Yann L
I''ll also have to drop out. I haven''t even started coding, and won''t have the time to do anything for the next two weeks (working on our game demo. Damn, I hate deadlines). Oh well, perhaps the next contest.



Sorry to hear that. Hopefully the next contest will be of interest, I''m planning on optimization challenge (suggests thread to be posted in a few days).

Share this post


Link to post
Share on other sites
Avaj    122
quote:
Original post by Michalson
What compiler are you using? Most come with a standard "console" application template. Under Windows you want to lookup (on MSDN) the following Win32 commands to get started with "graphical" console output:

GetStdHandle
Use GetStdHandle(STD_OUTPUT_HANDLE) to get a handle to the console for use in other functions

SetConsoleScreenBufferSize
Sets the size of the internal buffer (stored used for the console)

SetConsoleWindowInfo
Sets the size of the actual console window

WriteConsoleOutput
Copies a buffer of CHAR_INFO records to the screen. Personally I find this is the best method for "graphical" content.




I''ve used those fun functions before and they work great but I get a crash on ''98, I don''t know why, I''m using a ''double buffer''.

primary = GetStdHandle(STD_OUTPUT_HANDLE);
buffer = CreateConsoleScreenBuffer(GENERIC_READ | GENERIC_WRITE,
0, NULL, CONSOLE_TEXTMODE_BUFFER, NULL);

pCurrent = buffer;

SetConsoleScreenBufferSize(primary, c);
SetConsoleScreenBufferSize(buffer, c);

SetConsoleWindowInfo(primary, TRUE, &sr);
SetConsoleWindowInfo(buffer, TRUE, &sr);

Share this post


Link to post
Share on other sites
Guest Anonymous Poster   
Guest Anonymous Poster
Hey Moderator Michelson,

Listen you little bitch, what''s with the
communistic icon ?

Cubans would love to kick your ass.

GameDev, why are you allowing this
little bitch, to have this sign.

Cuba Libre !!!!!

Share this post


Link to post
Share on other sites
Michalson    1657
quote:
Original post by Anonymous Poster
Hey Moderator Michelson,

Listen you little bitch, what's with the
communistic icon ?

Cubans would love to kick your ass.

GameDev, why are you allowing this
little bitch, to have this sign.

Cuba Libre !!!!!


Are you the same *dude* with the *small weaner* living in the US who claims to be associated with *Hulk Hogan* and have some sort of *revolutionary network*? Should I phone your boss up and tell him you are wasting time on the Internet when you should be working?

EDIT: And yeah, corperate networks can be a bitch, especially when they tag every workstation with a unique address like yours.

[edited by - michalson on November 21, 2002 11:49:21 AM]

Share this post


Link to post
Share on other sites
aftermath    100
this is not fair Michelson!

just because you have the power to se the dudes IP dosen''t mean you have to reply with sutch a moronic excuse.

yeh, to me: you got burned and taken to school, because all you can do is just sit there and wine about how powerfull you are; just because you have that big bad "moderator" tag dosent change the way people think about you.

and what is it with the com. sign anyway? are you trying to show somthing? like you have some super power to make the posting script have a specific avatar for ''michelson'', wow man your big now!

Share this post


Link to post
Share on other sites
Once again I shall tell the story of the communist gamedev.

Pretty short actually. People started to remark about how the gamedev G looked like the communist hammer and sickle.

...and that''s how I successfully lead operation Desert Storm.

Share this post


Link to post
Share on other sites
Yann L    1802
Before everybody starts to yell at Michalson for his cutomized icon: he is not the only one to have one. It has nothing to do with him being a moderator or ''special''. Nes got his communist penguin, and MarkyD his very non-communist dancing banana (which was even animated...) It''s a joke, the staff gave them the icons. It was supposed to be funny, jeez.

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.