Raised This Month: $ Target: $400
 0% 

Chat TETRIS


Post New Thread Reply   
 
Thread Tools Display Modes
exvel
SourceMod Donor
Join Date: Jun 2006
Location: Russia
Old 05-06-2009 , 14:19   Re: Chat TETRIS
Reply With Quote #31

Quote:
Originally Posted by Cooltad View Post
Dude, you could simply use a utf-8 character that's invisible for the background.
Yeap, but I need that character to have a right width. The same width as square.
__________________
For admins: My plugins

For developers: Colors library
exvel is offline
Send a message via ICQ to exvel
Cooltad
Veteran Member
Join Date: Apr 2008
Old 05-06-2009 , 17:33   Re: Chat TETRIS
Reply With Quote #32

Quote:
Originally Posted by exvel View Post
Yeap, but I need that character to have a right width. The same width as square.
Or use a character half it's width 2 times.
__________________
Please, give me some rep if you found what I posted useful. :]
Cooltad is offline
exvel
SourceMod Donor
Join Date: Jun 2006
Location: Russia
Old 05-06-2009 , 23:42   Re: Chat TETRIS
Reply With Quote #33

Quote:
Originally Posted by Cooltad View Post
Or use a character half it's width 2 times.
All this I already tried. There are only suitable characters that I figured above.
__________________
For admins: My plugins

For developers: Colors library
exvel is offline
Send a message via ICQ to exvel
raydan
Senior Member
Join Date: Aug 2006
Old 05-07-2009 , 04:55   Re: Chat TETRIS
Reply With Quote #34

i found a empty background
Attached Thumbnails
Click image for larger version

Name:	tetris.jpg
Views:	185
Size:	29.8 KB
ID:	41838  
raydan is offline
exvel
SourceMod Donor
Join Date: Jun 2006
Location: Russia
Old 05-07-2009 , 05:36   Re: Chat TETRIS
Reply With Quote #35

Quote:
Originally Posted by raydan View Post
i found a empty background
Good job, Can you post this symbols here? Or its codes?
__________________
For admins: My plugins

For developers: Colors library
exvel is offline
Send a message via ICQ to exvel
ANTiCHRiST
Member
Join Date: Mar 2009
Location: Vienna, Austria
Old 05-07-2009 , 05:49   Re: Chat TETRIS
Reply With Quote #36

Quote:
Originally Posted by raydan View Post
i found a empty background
looks good
__________________
ANTiCHRiST is offline
Send a message via ICQ to ANTiCHRiST Send a message via MSN to ANTiCHRiST
raydan
Senior Member
Join Date: Aug 2006
Old 05-07-2009 , 10:00   Re: Chat TETRIS
Reply With Quote #37

i use c++ to do it
symbols:
"■" black cell
" " empty cell
" ̄" top line

Code:
 g_Start_Tetris_Panel->DrawTitle("Tetris");
 char display[512];
 char *c = display;
 g_Start_Tetris_Panel->DrawRawLine(" \n \n");
 for(int i=0;i<TETRIS_ROW;i++)
 {
  *(c++) = '|';
  for(int j=0;j<TETRIS_COL;j++)
  {
   int rand = engrandom->RandomInt(0,1);
   if(rand == 0)
   { // empty cell
    *(c++) = -29;
    *(c++) = -128;
    *(c++) = -128;
   } else { // black cell
    *(c++) = -30;
    *(c++) = -106;
    *(c++) = -96;
   }
  }
  *(c++) = '|';
  *(c++) = '\n';
 }
 for(int i=0;i<=TETRIS_COL;i++)
 { // the top line
  *(c++) = -17;
  *(c++) = -65;
  *(c++) = -93;
 }
 *(c++) = 0;
 g_Start_Tetris_Panel->DrawRawLine(display);

Last edited by raydan; 05-07-2009 at 10:02.
raydan is offline
exvel
SourceMod Donor
Join Date: Jun 2006
Location: Russia
Old 05-07-2009 , 13:42   Re: Chat TETRIS
Reply With Quote #38

Here is what I've got with this space symbol (empty cell):

[IMG]http://img144.**************/img144/6488/dedust20006h.jpg[/IMG]

So space symbol is too narrow. I tested it in CS:S in resolution 1024x768
__________________
For admins: My plugins

For developers: Colors library
exvel is offline
Send a message via ICQ to exvel
Nail
BANNED
Join Date: May 2008
Location: PetrovЪ GradЪ
Old 05-09-2009 , 16:45   Re: Chat TETRIS
Reply With Quote #39

Ну как? есть результаты?
Nail is offline
exvel
SourceMod Donor
Join Date: Jun 2006
Location: Russia
Old 05-09-2009 , 16:52   Re: Chat TETRIS
Reply With Quote #40

Quote:
Originally Posted by Nail View Post
Ну как? есть результаты?
Не думаю, что напишу быстро. Сессия у меня.
__________________
For admins: My plugins

For developers: Colors library
exvel is offline
Send a message via ICQ to exvel
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 21:29.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode