์ด ํฌ์ŠคํŒ…์€ ์ฟ ํŒก ํŒŒํŠธ๋„ˆ์Šค ํ™œ๋™์˜ ์ผํ™˜์œผ๋กœ, ์ด์— ๋”ฐ๋ฅธ ์ผ์ •์•ก์˜ ์ˆ˜์ˆ˜๋ฃŒ๋ฅผ ์ œ๊ณต๋ฐ›์„ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

๋ฐ˜์‘ํ˜•
๋ฌธ์„œ ์š”์•ฝ์ •๋ณด

๊ตฌ๋งค์ž ํ‰๊ฐ€


๋ฌธ์„œ ์ƒ์„ธ์ •๋ณด

๋ฏธ๋ฆฌ๋ณด๊ธฐ

์†Œ๊ฐœ๊ธ€ 2007๋…„ 11์›” ํ›„๋ฐ˜์ฏค์— ํ•™์›์—์„œ ์ˆ™์ œ๋กœ ์ œ์ถœํ•œ ํƒ€์ž์—ฐ์Šต๊ฒŒ์ž„์ž…๋‹ˆ๋‹ค.
๋น„ ์ฒ˜๋Ÿผ ์œ„์—์„œ ์•„๋ž˜๋กœ ๋‹จ์–ด๋“ค์ด ๋–จ์–ด์ง€๋ฉด์„œ ์ตœํ•˜๋‹จ์— ๋‹ฟ๊ธฐ ์ „์— ์žฌ๋นจ๋ฆฌ ์ณ์„œ ์—†์• ๋ฉด ์ ์ˆ˜๋ฅผ ์–ป๊ณ  ์ผ์ • ์ ์ˆ˜๋ฅผ ์–ป์œผ๋ฉด ์Šคํ…Œ์ด์ง€๊ฐ€ ๋ณ€ํ•˜๋Š” ๊ทธ๋Ÿฐ ๊ฒŒ์ž„์ž…๋‹ˆ๋‹ค.
์•„์ดํ…œ๋„ 2๊ฐœ์ •๋„ ์žˆ๊ตฌ์š” ^^

์ˆœ์ˆ˜ Win32 API๋กœ๋งŒ ์งฐ์Šต๋‹ˆ๋‹ค.
๊ฐœ๋ฐœํˆด์€ Visual C++ 6.0์„ ์ผ๊ตฌ์š”~


์•„๋ž˜๋Š” ๋ฉ”์ธ์ฝ”๋“œ ์ค‘ ์ผ๋ถ€์ž…๋‹ˆ๋‹ค.

(์•ž ์ƒ๋žต)

//โ”โ”โ”โ”๋‹จ์–ด๋“ค ์ถœ๋ ฅ

for( i = 0 ; i < WORDMAX; i++)
{

g_Word[i].MoveDown(g_Player); //๋‹จ์–ด ์‹œ๊ฐ„๊ฒฝ๊ณผ์— ๋”ฐ๋ผ ๋ฐ‘์œผ๋กœ ์ด๋™(์ผ์ •ํ™”๋ฉด ๋„˜์–ด๊ฐ€๋ฉด ์ดˆ๊ธฐํ™”)

//ํ•ด๋‹น ๋‹จ์–ด ์ฐ์–ด์ฃผ๊ธฐ

if(g_Word[i].GetItem() == 0)
{
SetTextColor(g_Image[IMG_BACK].MemDC,RGB(0,0,0));
TextOut(g_Image[IMG_BACK].MemDC,
g_Word[i].GetRect().left,
g_Word[i].GetRect().top,
g_Word[i].GetWord(),
strlen(g_Word[i].GetWord()));
SetTextColor(g_Image[IMG_BACK].MemDC,RGB(0,0,0));
}
else if(g_Word[i].GetItem() == 1)
{

MyFont=CreateFont(50,0,0,0,0,0,0,0,HANGEUL_CHARSET,0,0,0,0,"๊ถ์„œ");
OldFont=(HFONT)SelectObject(g_Image[IMG_BACK].MemDC,MyFont);

SetTextColor(g_Image[IMG_BACK].MemDC,RGB(255,0,0));
TextOut(g_Image[IMG_BACK].MemDC,
g_Word[i].GetRect().left,
g_Word[i].GetRect().top,
g_Word[i].GetWord(),
strlen(g_Word[i].GetWord()));
SetTextColor(g_Image[IMG_BACK].MemDC,RGB(0,0,0));


SelectObject(g_Image[IMG_BACK].MemDC,OldFont);
DeleteObject(SelectObject(g_Image[IMG_BACK].MemDC,OldFont));


}
....
....(ํ›„๋žต)

์ปดํŒŒ์ผ
์‹คํ–‰ํ™˜๊ฒฝ
Visual C++ 6.0

์ฐธ๊ณ ์ž๋ฃŒ ์œˆ๋„์šฐ์ฆˆ API ์™„์ „์ •๋ณต 1,2๊ถŒ (ํ•œ๋น›๋ฏธ๋””์–ด - ๊น€์ƒํ˜• ์ง€์Œ)
http://cafe.naver.com/gamedidim ๊ฒŒ์ž„ํ”„๋กœ๊ทธ๋ž˜๋ฐ ๊นŒํŽ˜

ํ•™๊ต์ •๋ณด 2์ฃผ๊ฐ„ ๋‹ค์šด๋ฐ›์€ ํ•™์ƒ์˜ ํ•™๊ต์ •๋ณด๋ฅผ ๋ณด์—ฌ์ค๋‹ˆ๋‹ค.(5P ์†Œ์š”)

์ €์ž‘๊ถŒ ์ •๋ณด ์œ„ ์ •๋ณด ๋ฐ ๊ฒŒ์‹œ๋ฌผ ๋‚ด์šฉ์˜ ์ง„์‹ค์„ฑ์— ๋Œ€ํ•˜์—ฌ ํ•ดํ”ผ์บ ํผ์Šค๋Š” ๋ณด์ฆํ•˜์ง€ ์•„๋‹ˆํ•˜๋ฉฐ, ํ•ด๋‹น ์ •๋ณด ๋ฐ ๊ฒŒ์‹œ๋ฌผ ์ €์ž‘๊ถŒ๊ณผ ๊ธฐํƒ€ ๋ฒ•์  ์ฑ…์ž„์€ ์ž๋ฃŒ ๋“ฑ๋ก์ž์—๊ฒŒ ์žˆ์Šต๋‹ˆ๋‹ค.
์œ„ ์ •๋ณด ๋ฐ ๊ฒŒ์‹œ๋ฌผ ๋‚ด์šฉ์˜ ๋ถˆ๋ฒ•์  ์ด์šฉ, ๋ฌด๋‹จ ์ „์žฌยท๋ฐฐํฌ๋Š” ๊ธˆ์ง€๋˜์–ด ์žˆ์Šต๋‹ˆ๋‹ค.์ €์ž‘๊ถŒ์นจํ•ด, ๋ช…์˜ˆํ›ผ์† ๋“ฑ ๋ถ„์Ÿ์š”์†Œ ๋ฐœ๊ฒฌ์‹œ ๊ณ ๊ฐ์„ผํ„ฐ์˜ ์ €์ž‘๊ถŒ์นจํ•ด ์‹ ๊ณ ์„ผํ„ฐ๋ฅผ ์ด์šฉํ•ด ์ฃผ์‹œ๊ธฐ ๋ฐ”๋ž๋‹ˆ๋‹ค.
๋ฐ˜์‘ํ˜•

+ Recent posts