PDA

View Full Version : Chat TETRIS


Nail
05-02-2009, 15:47
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

exvel
05-02-2009, 16:29
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

exvel
05-02-2009, 16:58
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

exvel
05-03-2009, 11:02
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.

Nail
05-03-2009, 13:11
В том тетрисе задействовано 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?

exvel
05-04-2009, 14:45
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??

exvel
05-05-2009, 03:29
have u finished the coding??
I've just started.

raydan
05-05-2009, 05:19
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

exvel
05-05-2009, 09:21
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.

raydan
05-05-2009, 10:31
Look at the screenshot above. That how it can be done.

ya, i see that.

quick release it :mrgreen:

exvel
05-05-2009, 13:29
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

Cooltad
05-05-2009, 14:05
http://www.fileformat.info/info/charset/UTF-8/list.htm

Nail
05-05-2009, 14:54
ⁿ₪₧℮Ω⅓⅔⅛⅜⅝⅞←↑→↓↔↕↨∂∆∏∑−∕∟≈≠≡≤≥⌐▀▄█▌▐░▒▓■ ▪▫▬▲▼◄◊○●◘◙◦☺☻☼♀♂♠♣♥♦♪
Тока тут они чуток искожены, лучше их просматривать через игру.
остальные символы в microsoft world -> вставка -> символ

exvel
05-05-2009, 15:07
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.

exvel
05-05-2009, 15:17
I have stopped at this variant:

http://img89.**************/img89/3326/tetris2.jpg

Nail
05-05-2009, 16:23
Вроде можно ещё менять цвет символов, это поможет оличать фигуры друг от друга, впрочем в этом нет большой необходимости.

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.

exvel
05-05-2009, 17:13
Вроде можно ещё менять цвет символов, это поможет оличать фигуры друг от друга, впрочем в этом нет большой необходимости.

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

exvel
05-06-2009, 02:04
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

raydan
05-06-2009, 09:57
can you do this?

exvel
05-06-2009, 10:49
can you do this?
noope...:shock:

raydan
05-06-2009, 11:38
noope...:shock:

i think it look better

remove empty cell from background

exvel
05-06-2009, 12:21
i think it look better

remove empty cell from background
But then I would not be able to manipulate intervals.

Cooltad
05-06-2009, 13:57
Dude, you could simply use a utf-8 character that's invisible for the background.

exvel
05-06-2009, 14:19
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.

Cooltad
05-06-2009, 17:33
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.

exvel
05-06-2009, 23:42
Or use a character half it's width 2 times.
All this I already tried. There are only suitable characters that I figured above.

raydan
05-07-2009, 04:55
i found a empty background

exvel
05-07-2009, 05:36
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:

raydan
05-07-2009, 10:00
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);

exvel
05-07-2009, 13:42
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 :(

Nail
05-09-2009, 16:45
Ну как? есть результаты?

exvel
05-09-2009, 16:52
Ну как? есть результаты?
Не думаю, что напишу быстро. Сессия у меня. :)

Nail
05-10-2009, 18:10
Рановато она у тебя, у меня только через месяц начнётся

namine
12-30-2010, 19:43
Is this dead?

FaTony
12-31-2010, 08:51
I really really hope.

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.

FaTony
01-01-2011, 00:03
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)

D_ONE
02-20-2011, 04:50
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