View Full Version : Chat TETRIS
Make please a tetris on sourcemod the similar:
http://www.youtube.com/watch?v=atdLGxWLrZI
during playing, specating, while dead
AMX version:
http://forums.alliedmods.net/showthread.php?t=87534&highlight=tetris
I started to code it a while ago.
ANTiCHRiST
05-02-2009, 16:45
i think thats not possibl with all games css is it but only with ESC boxes
Source games support UTF-8 so it is possible:
http://img369.**************/img369/3043/tetris.jpg
ANTiCHRiST
05-02-2009, 17:58
that was not that what i exatctly mean popups/radio menus not large for tetris i thinks only console or escape boxe are should much bedder for this thing
ps:i know my english sucks
that was not that what i exatctly mean popups/radio menus not large for tetris i thinks only console or escape boxe are should much bedder for this thing
ps:i know my english sucks
I tested and found that menu box can handle about 476 ASCII symbols (or 238 UTF). It should be enough I think.
В том тетрисе задействовано 16 строк по 10 символов (160 символов) т.е. впринципе даже utf должно хватить
ANTiCHRiST
05-04-2009, 12:47
I tested and found that menu box can handle about 476 ASCII symbols (or 238 UTF). It should be enough I think.
yes but do u rly think thats looks good?
yes but do u rly think thats looks good?
It looks normal I think.
ANTiCHRiST
05-04-2009, 22:43
have u finished the coding??
have u finished the coding??
I've just started.
I tested and found that menu box can handle about 476 ASCII symbols (or 238 UTF). It should be enough I think.
the amx version is 14*10 size, i think 476 are enough
if in css, i think you must use radio menu to do it, but how about the color problem? amx version can show red color
the amx version is 14*10 size, i think 476 are enough
if in css, i think you must use radio menu to do it, but how about the color problem? amx version can show red color
Look at the screenshot above. That how it can be done.
Look at the screenshot above. That how it can be done.
ya, i see that.
quick release it :mrgreen:
Anyway if someone know any other useful UTF-8 symbols that can be used for tetris please post it here.
ANTiCHRiST
05-05-2009, 14:00
i think it exists a scripts in eventscripts there are includet some of supportet chars they maybe can be usefull for a script like this i should called something exampel/adminsay or so
http://www.fileformat.info/info/charset/UTF-8/list.htm
ⁿ₪₧℮Ω⅓⅔⅛⅜⅝⅞←↑→↓↔↕↨∂∆∏∑−∕∟≈≠≡≤≥⌐▀▄█▌▐░▒▓■ ▪▫▬▲▼◄◊○●◘◙◦☺☻☼♀♂♠♣♥♦♪
Тока тут они чуток искожены, лучше их просматривать через игру.
остальные символы в microsoft world -> вставка -> символ
Thank you guys but the problem is that inside the game these symbols looks different. Here are the symbols that are very close to what I need:
☐☐☐■■■
▔▇▔▇▔▇▔▇
◆◇◆◇◆◇◆◇
▇ ░ ▇ ░ ▇ ░ ▇ ░
But they have a spacing problems. Space symbols and black symbols must have the same width. Symbols in 3d line are perfect but they aren't squares.
I have stopped at this variant:
http://img89.**************/img89/3326/tetris2.jpg
Вроде можно ещё менять цвет символов, это поможет оличать фигуры друг от друга, впрочем в этом нет большой необходимости.
Like it is possible to change still colour of symbols, it will help to distinguish figures from each other, however in it there is no big necessity.
Вроде можно ещё менять цвет символов, это поможет оличать фигуры друг от друга, впрочем в этом нет большой необходимости.
Like it is possible to change still colour of symbols, it will help to distinguish figures from each other, however in it there is no big necessity.
Unfourtunatly it can be done only with whole lines or done normally in games that support HUD (like TF, etc.).
ANTiCHRiST
05-05-2009, 20:17
it is possibl to change color default/white/black but its char and/or menu in css
it is possibl to change color default/white/black but its char and/or menu in css
What do you mean?
ANTiCHRiST
05-06-2009, 02:33
lysergsäurediethylamid
can you do this?
noope...:shock:
noope...:shock:
i think it look better
remove empty cell from background
i think it look better
remove empty cell from background
But then I would not be able to manipulate intervals.
Dude, you could simply use a utf-8 character that's invisible for the background.
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.
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.
Or use a character half it's width 2 times.
All this I already tried. There are only suitable characters that I figured above.
i found a empty background
i found a empty background
Good job, Can you post this symbols here? Or its codes?
ANTiCHRiST
05-07-2009, 05:49
i found a empty background
looks good :up:
i use c++ to do it
symbols:
"■" black cell
" " empty cell
" ̄" top line
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);
Here is what I've got with this space symbol (empty cell):
http://img144.**************/img144/6488/dedust20006h.jpg
So space symbol is too narrow. I tested it in CS:S in resolution 1024x768 :(
Ну как? есть результаты?
Не думаю, что напишу быстро. Сессия у меня. :)
Рановато она у тебя, у меня только через месяц начнётся
bobthebuilder
12-31-2010, 22:06
why the F*** do you hope that? it a nice idea. well i wont use it, but still. it nice.
I don't want hundreds of human hours wasted on useless shit.
bobthebuilder
01-01-2011, 15:57
well why do you post like that. now i have used my time to read a useless post (from you)
Bumped, both this and the Pong plugin (http://forums.alliedmods.net/showthread.php?t=147845) don't work properly currently. Is there anyone that can fix either? I think I speak for everyone except the jerk two posts up when I say we want pointless games to play :mrgreen:
Peace-Maker
10-12-2011, 23:47
Done and fixed the pong one :)
http://forums.alliedmods.net/showthread.php?t=169464
vBulletin® v3.8.7, Copyright ©2000-2024, vBulletin Solutions, Inc.