当前位置:首页 » 操作系统 » 12堂的源码

12堂的源码

发布时间: 2023-09-12 15:26:48

Ⅰ 急求C语言编译的小游戏(如扫雷),附带源代码和注释。

小游戏2048:

#include<stdio.h>

#include<stdlib.h>

#include<conio.h>

#include<time.h>

#include<windows.h>

int jsk( ); //计算空格数

void rsgm( ); //重置游戏

void inkey( ); //按键输入

void left( ); //向左移动

void right( ); //向右移动

void up( ); //向上移动

void down( ); //向下移动

void show( ); //输出界面

void adnum( ); //添加随机数

void yes( ); //游戏是否结束(1是0否)

void gtxy(int x, int y); //控制光标位置的函数

int a[4][4]; //存储16个格子中的数字

int score = 0; //每局得分

int best = 0; //最高得分

int ifnum; //是否需要添加数字(1是0否)

int over; //游戏结束标志(1是0否)

int i,j,k;

int main( )

{ rsgm( ); //重置游戏

inkey( ); //按键输入

return 0;

}

void setColor(unsigned short ForeColor = 7, unsigned short BackGroundColor = 0)

{ HANDLE handle = GetStdHandle(STD_OUTPUT_HANDLE);

SetConsoleTextAttribute(handle, ForeColor + BackGroundColor * 0x10);

} //用于控制字符颜色的函数

void rsgm( ) //重置游戏

{ score = 0; ifnum = 1; over = 0; srand((unsigned)time(0)); //启动随机数发生器

int n = rand( ) % 16; //随机函数产生0-15的数字

for (i = 0; i < 4; i++)

{for (j = 0; j < 4; j++)

{ if (n == 0) { int k = rand( ) % 3; if (k == 0 || k == 1) { a[i][j] = 2; }

else { a[i][j] = 4; } n--; }

else { a[i][j] = 0; n--; }

}

}

adnum( );

system("cls");

CONSOLE_CURSOR_INFO cursor_info={1,0}; //以下两行是隐藏光标的设置

SetConsoleCursorInfo(GetStdHandle(STD_OUTPUT_HANDLE),&cursor_info);

setColor(14, 0); //设置字体淡黄色,背景为黑色

printf(" 2048小游戏"); setColor(7, 0); //恢复白字黑底

printf(" ┌──────┬──────┬──────┬──────┐");

printf(" │ │ │ │ │");

printf(" ├──────┼──────┼──────┼──────┤");

printf(" │ │ │ │ │");

printf(" ├──────┼──────┼──────┼──────┤");

printf(" │ │ │ │ │");

printf(" ├──────┼──────┼──────┼──────┤");

printf(" │ │ │ │ │");

printf(" └──────┴──────┴──────┴──────┘");

show( );

}

void show( ) //输出界面

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

for(j=0;j<4;j++)

{ gtxy(7*j+9,2*i+4); //gtxy(7*j+9, 2*i+4)是光标到指定位置输出数字

if(a[i][j]==0){printf(" "); setColor(7, 0); printf("│");}

else if(a[i][j]<10){ if (a[i][j] == 2) {setColor(14, 0); }

else if (a[i][j] == 4) {setColor(13, 0); }

else if (a[i][j] == 8) {setColor(12, 0); }

printf(" %d ", a[i][j]); setColor(7, 0); printf("│");

}

else if (a[i][j] < 100){if (a[i][j] == 16) {setColor(12, 0); }

else if (a[i][j] == 32) {setColor(10, 0); }

else if (a[i][j] == 64) {setColor(2, 0); }

printf(" %d ", a[i][j]); setColor(7, 0); printf("│");

}

else if (a[i][j] < 1000) {if (a[i][j] == 128) {setColor(9, 0); }

else if (a[i][j] == 256) {setColor(1, 0); }

else if (a[i][j] == 512) {setColor(13, 0); }

printf(" %d ", a[i][j]); setColor(7, 0); printf("│");

}

else if (a[i][j] < 10000) {if (a[i][j] == 1024) {setColor(5, 0); }

else {setColor(15, 0); }

printf(" %d ", a[i][j]); setColor(7, 0); printf("│");

}

}

if (jsk( ) == 0)

{ yes( ); if (over) { gtxy(9,12); setColor(10, 0);

printf(" 游戏结束!是否继续? [ Y/N ]:"); }

}

}

void inkey( ) //按键输入

{ int key;

while (1)

{ key = getch( );

if (over) { if (key == 89|| key == 121) {rsgm( ); continue; }

else if (key == 78|| key == 110) { return; }

else continue; }

ifnum = 0;

if(key==224)key=getch( );

switch (key)

{ case 75: left( ); break;

case 77: right( ); break;

case 72: up( ); break;

case 80: down( );break;

}

if (score > best) { best = score; }

if (ifnum) { adnum( ); show( ); }

}

}

int jsk( ) //计算空格数

{ int n = 0;

for (i = 0; i < 4; i++)

{ for (j = 0; j < 4; j++) { if ( a[i][j] == 0) {n++;} } }

return n;

}

void left( ) //向左移动

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

{for (j = 1, k = 0; j < 4; j++)

{ if (a[i][j] > 0)

{ if ( a[i][k] == a[i][j])

{ a[i][k] *= 2; k++;

score = score + 2 * a[i][j];

a[i][j] = 0; ifnum = 1; }

else if ( a[i][k] == 0) { a[i][k] = a[i][j]; a[i][j] = 0; ifnum = 1; }

else { a[i][k + 1] = a[i][j]; if ((k + 1) != j) { a[i][j] = 0; ifnum = 1; }

k++; }

}

}

}

}

void right( ) //向右移动

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

{for (j = 2, k = 3; j >= 0; j--)

{if (a[i][j] > 0)

{ if (a[i][k] == a[i][j])

{a[i][k] *= 2; k--; score = score + 2 * a[i][j]; a[i][j] = 0; ifnum = 1; }

else if ( a[i][k] == 0) {a[i][k] = a[i][j]; a[i][j] = 0; ifnum = 1; }

else { a[i][k - 1] = a[i][j]; if ((k - 1) != j) { a[i][j] = 0; ifnum = 1; } k--; }

}

}

}

}

void up( ) //向上移动

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

{for (j = 1, k = 0; j < 4; j++)

{if (a[j][i] > 0)

{if ( a[k][i] == a[j][i]) { a[k][i] *= 2; k++;score = score + 2 * a[j][i];

a[j][i] = 0; ifnum = 1; }

else if ( a[k][i] == 0) { a[k][i] = a[j][i]; a[j][i] = 0; ifnum = 1; }

else { a[k + 1][i] = a[j][i]; if ((k + 1) != j) { a[j][i] = 0; ifnum = 1; }

k++; }

}

}

}

}

void down( ) //向下移动

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

{for (j = 2, k = 3; j >= 0; j--)

{if (a[j][i] > 0)

{if (a[k][i] == a[j][i])

{a[k][i] *= 2; k--;score = score + 2 * a[j][i]; a[j][i] = 0; ifnum = 1; }

else if (a[k][i] == 0) {a[k][i] = a[j][i]; a[j][i] = 0; ifnum = 1; }

else {a[k - 1][i] = a[j][i];

if ((k - 1) != j) {a[j][i] = 0; ifnum = 1; } k--; }

}

}

}

}

void adnum( ) //添加随机数

{ srand(time(0)); int n = rand( ) % jsk( );

for (int i = 0; i < 4; i++)

{for (int j = 0; j < 4; j++)

{ if (a[i][j] == 0) {if (n != 0) { n--; }

else {int k = rand() % 3;

if (k == 0 || k == 1) {a[i][j] = 2; return; }

else {a[i][j] = 4; return; } }

}

}

}

}

void yes( ) //游戏是否结束

{ for (int i = 0; i < 4; i++)

{for (int j = 0; j < 3; j++)

{if (a[i][j] == a[i][j + 1] || a[j][i] == a[j + 1][i]) {over = 0; return; }}

}

over = 1;

}

void gtxy(int x, int y) //控制光标位置的函数

{ COORD coord;

coord.X = x;

coord.Y = y;

SetConsoleCursorPosition(GetStdHandle(STD_OUTPUT_HANDLE), coord);

}

Ⅱ 怎样看这个网页的全部源代码

哈哈``

我帮你找到了``

http://www.iieye.com/comic/viewcomic_chk.htm?InfoID=13037&ID=121476&VolTitle=Vol_01

这是ID,你只要对应改网址最后面那个与之对应的就行了

就是这个 =Vol_01 把它改成 02 03 04 …………

Ⅲ 源代码哪个平台可以看

你好,一下可以试一试:1.51源码: http://www.51aspx.com/



2.源码之家: http://www.codejia.com/



3.源码网:森团 http://www.codepub.com/



4.虾客蠢茄源码: http://www.xkxz.com/



5.多多源码: http://www.morecode.net/



6.洪越源代码: http://www.softhy.net/



7.锋网源码:http://www.fwvv.net/



8.代码爱好者:http://www.codefans.com/



9.爱源码:http://www.aiyuanma.com/



10.酷源码:http://www.kyuanma.com/



11.搜源码:http://www.soucode.com/



12.拉基源码:http://www.lajicode.com/



13.源码开发网:http://www.codedn.com/



14.源码天空:http://www.codesky.net/



15.源码吧:http://www.asp88.net/



16.绿色源码:http://code888.cn/



17.9号源码中此档橘心:http://www.9code.com/

Ⅳ 如何查看加密了的网页的源代码啊

<!--STATUS OK--><html><head>
<meta http-equiv="content-type" content="text/html;charset=gb2312">
<title>网络搜索_site:(sina.com) 郑智化 </title>
<STYLE>
<!--
body,td,.p1,.p2,.i{font-family:arial}
TD{FONT-SIZE:9pt;LINE-HEIGHT:18px;}
.f14{FONT-SIZE:14px}
.f10{font-size:10.5pt}
.f16{font-size:16px;font-family:Arial}
.c{color:#7777CC;}
.p1{LINE-HEIGHT:120%;margin-left:-12pt}
.p2{width=100%;LINE-HEIGHT:120%;margin-left:-12pt}
.i{font-size:16px}
.t{COLOR:#0000cc;TEXT-DECORATION:none}
a.t:hover{TEXT-DECORATION:underline}
.p{padding-left:18px;font-size:14px;word-spacing:4px;}
.f{line-height:120%;font-size:100%;width:32em;padding-left:15px;word-break:break-all;word-wrap:break-word;}
.h{margin-left:8px;width:100%}
.s{width:8%;padding-left:10px; height:25px;}
.m,a.m:link{COLOR:#666666;font-size:100%;}
a.m:visited{COLOR:#660066;}
.g{color:#008000; font-size:12px;}
.r{ word-break:break-all;cursor:hand;width:225px;}
.bi {background-color:#D9E1F7;height:20px;margin-bottom:12px}
.pl{padding-left:3px;height:8px;padding-right:2px;font-size:14px;}
.Tit{height:21px; font-size:14px;}
.fB{ font-weight:bold;}
.mo,a.mo:link,a.mo:visited{COLOR:#666666;font-size:100%;line-height:10px;}
.htb{margin-bottom:5px;}
-->
</STYLE>
<script language="javascript">
<!--
function my_submit(form){
form.sr.value=1;
form.action='/s?tn=aiyat&ct=0&ie=gb2312&cl=3&f=8&bs=site:(sina.com) 郑智化&wd=site:(sina.com) 郑智化&sr=1';
form.submit();
return true;
}
function my_submit1(form){
form.ct.value=0;
form.sr.value=0;
form.action='/s?tn=aiyat&ct=0&ie=gb2312&cl=3&f=8&bs=site:(sina.com) 郑智化&wd=site:(sina.com) 郑智化&sr=0';
form.submit();
return true;
}
function h(obj,url){
obj.style.behavior='url(#default#homepage)';
obj.setHomePage(url);
}
if (top.location != self.location) {
top.location=self.location;
}
if (window.name == 'nw') { window.name = '';}
function ga(o,e){if (document.getElementById){a=o.id.substring(1); p = "";r = "";g = e.target;if (g)
{ t = g.id;f = g.parentNode;if (f) {p = f.id;h = f.parentNode;if (h) r = h.id;}} else{h = e.srcElement;f = h.parentNode;if (f) p = f.id;t = h.id;}if (t==a || p==a || r==a) return true;window.open(document.getElementById(a).href,'_blank')}}
function ss(w){window.status=w;return true;}
function cs(){window.status='';}
function c(w,u,s,p,t){if(document.images){var p=window.document.location.href;var t=(new Date()).getTime();(new Image()).src="http://survey2..com/images/w.gif?query="+w+"&url="+escape(u)+"&spos="+s+"&path="+p+"&t="+t;}return true;}
//-->
</script></head>
<body onload="document.f1.reset();" bgcolor=#ffffff text=#000000 link=#261CDC topmargin=6 bottommargin=0 leftmargin=0 rightmargin=0>
<table width="100%" height="54" border="0" align="center" cellpadding="0" cellspacing="0">
<form name=f1 action="/s">
<tr valign=middle>
<td width="100%" valign="top" style="padding-left:8px;width:137px;" nowrap>
<a href="http://www..com/"><img src="http://www..com/img/sslm1_logo.gif" border="0" width="137" height="60" alt="到网络首页"></a>
</td>
<td></td>
<td width="100%" valign="top">
<div class="Tit">
<a href="http://news..com/ns?cl=2&rn=20&tn=news&word=site%3A%28sina%2Ecom%29+%D6%A3%D6%C7%BB%AF">新闻</a><span class="fB">网页</span><a href="http://post..com/f?kw=site%3A%28sina%2Ecom%29+%D6%A3%D6%C7%BB%AF">贴吧</a><a href="http://..com/q?ct=17&pn=0&tn=ikaslist&rn=10&word=site%3A%28sina%2Ecom%29+%D6%A3%D6%C7%BB%AF&fr=wwwt">知道</a><a href="http://mp3..com/m?tn=mp3&ct=134217728&lm=-1&word=site%3A%28sina%2Ecom%29+%D6%A3%D6%C7%BB%AF">MP3</a><a href="http://image..com/i?tn=image&ct=201326592&lm=-1&cl=2&word=site%3A%28sina%2Ecom%29+%D6%A3%D6%C7%BB%AF">图片</a><!--bds<a href="$bdDSURL$">硬盘</a> -->
</div>
<table border="0" cellspacing="0" cellpadding="0">
<tr><td valign="top" nowrap>
<input type=hidden name=tn value="aiyat">
<input type=hidden name=ie value="gb2312">
<input type=hidden name=bs value="site:(sina.com) 郑智化">
<input type=hidden name=sr>
<input type=hidden name=z value="">
<input type=hidden name=cl value=3>
<input type=hidden name=f value=8>
<input name=wd size="35" class="i" value="site:(sina.com) 郑智化" maxlength=100>
<input type=hidden name=ct value="0"><input type=submit value=网络搜索> <input type=button value=在结果中找 onclick="return my_submit(f1);"></td>
<td valign="middle" nowrap>
<a href=http://www..com/search/jiqiao.html target="_blank">帮助</a>|<a href="http://www..com/gaoji/advanced.html">高级搜索</a>
</td></tr></table>
</td>
<td></td>
</tr></form></table>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="bi">
<tr>
<td nowrap><a onClick="h(this,'http://www..com')" href="#" style="color:#000000 ">把网络设为首页</a></td>
<td align="right" nowrap>网络一下,找到相关网页约2,860篇,用时0.001秒</td>
</tr>
</table>
<table width="25%" border="0" cellpadding="0" cellspacing="0" align="right"><tr>
<td align="left" style="padding-right:10px">
<div style="border-left:1px solid #e1e1e1;padding-left:10px;word-break:break-all;word-wrap:break-word;">
</div>
<br>
<DIV id=ScriptDiv></DIV>
</td></tr></table>
<table border="0" cellpadding="0" cellspacing="0"><tr><td class=f><a onmousedown="return c('site%3A%28sina%2Ecom%29+%D6%A3%D6%C7%BB%AF',this.href,1)" href="http://books.sina.com/creation/sinacolumn/contents/20050310/20050310-016_1_gb.html" target="_blank"><font size="3">解读<font color=#C60A00>郑智化</font></font></a><br><font size=-1><font color=#C60A00>郑智化</font>在一般人的印象中,大概会是一副身残志坚的形象,至少在大陆是如此。这可以从他在大陆的轨迹得到证明:他在大陆...事实上,<font color=#C60A00>郑智化</font>的意义决不局限于以一位残疾人的身份唱出励志歌曲。 <font color=#C60A00>郑智化</font>最早的一首... <br><font color=#008000>books.sina.com/creation/sinacolumn/conten ... 13K 2005-3-10 </font> - <a href="http://cache..com/c?word=%D6%A3%3B%D6%C7%BB%AF&url=http%3A//books%2Esina%2Ecom/creation/sinacolumn/contents/20050310/20050310%2D016%5F1%5Fgb%2Ehtml&b=0&a=13&user=" target="_blank" class=m>网络快照</a> <br></font></td></tr></table><br><table border="0" cellpadding="0" cellspacing="0"><tr><td class=f><a onmousedown="return c('site%3A%28sina%2Ecom%29+%D6%A3%D6%C7%BB%AF',this.href,2)" href="http://books.sina.com/creation/sinacolumn/contents/20050310/20050310-016_8_gb.html" target="_blank"><font size="3">解读<font color=#C60A00>郑智化</font></font></a><br><font size=-1>现在我们可以明显的感觉到<font color=#C60A00>郑智化</font>是站在现代社会怀念前现代 “脚(印)”这个比喻至少在他的歌里出现...这样我们也就能够理解<font color=#C60A00>郑智化</font>如此热情的讴歌《南台湾》,在这里,一定是踩得出脚印的: 热情的阳光探出了头/... <br><font color=#008000>books.sina.com/creation/sinacolumn/conten ... 13K 2005-3-10 </font> - <a href="http://cache..com/c?word=%D6%A3%3B%D6%C7%BB%AF&url=http%3A//books%2Esina%2Ecom/creation/sinacolumn/contents/20050310/20050310%2D016%5F8%5Fgb%2Ehtml&b=0&a=86&user=" target="_blank" class=m>网络快照</a> <br></font></td></tr></table><br><table border="0" cellpadding="0" cellspacing="0"><tr><td class=f><a onmousedown="return c('site%3A%28sina%2Ecom%29+%D6%A3%D6%C7%BB%AF',this.href,3)" href="http://books.sina.com/creation/sinacolumn/contents/20050310/20050310-016_4_gb.html" target="_blank"><font size="3">解读<font color=#C60A00>郑智化</font></font></a><br><font size=-1>但是<font color=#C60A00>郑智化</font>并不是在若干年后简单的重复自己,而是在观察之后,对城市生活进行了更细致的描写,同时,其批判的立场亦...《水手》这首歌收录在<font color=#C60A00>郑智化</font>的专辑《私房歌》里,在引进时,《大国民》这首歌被剔除掉了,大概是因为政治的关系吧。... <br><font color=#008000>books.sina.com/creation/sinacolumn/conten ... 13K 2005-3-10 </font> - <a href="http://cache..com/c?word=%D6%A3%3B%D6%C7%BB%AF&url=http%3A//books%2Esina%2Ecom/creation/sinacolumn/contents/20050310/20050310%2D016%5F4%5Fgb%2Ehtml&b=0&a=94&user=" target="_blank" class=m>网络快照</a> <br></font></td></tr></table><br><table border="0" cellpadding="0" cellspacing="0"><tr><td class=f><a onmousedown="return c('site%3A%28sina%2Ecom%29+%D6%A3%D6%C7%BB%AF',this.href,4)" href="http://chinanews.sina.com/ent/2005/0815/2006705757.html" target="_blank"><font size="3"><font color=#C60A00>郑智化</font>讲述曲折人生:我现在是唠叨的老爸(图) ...</font></a><br><font size=-1>身残志坚的台湾着名歌手<font color=#C60A00>郑智化</font>,以《水手》和《星星点灯》等立志歌曲红遍大江南北。淡出歌坛许久的他,已从歌坛郑...<font color=#C60A00>郑智化</font>一出生就是个健康宝宝,但在他三岁的时候,发高烧引发小儿麻痹,因为延误治疗,导致骨头变形,双脚完全不能行走... <br><font color=#008000>chinanews.sina.com/ent/2005/0815/20067057 ... 20K 2005-8-16 </font> - <a href="http://cache..com/c?word=%D6%A3%3B%D6%C7%BB%AF&url=http%3A//chinanews%2Esina%2Ecom/ent/2005/0815/2006705757%2Ehtml&b=0&a=15&user=" target="_blank" class=m>网络快照</a> <br></font></td></tr></table><br><table border="0" cellpadding="0" cellspacing="0"><tr><td class=f><a onmousedown="return c('site%3A%28sina%2Ecom%29+%D6%A3%D6%C7%BB%AF',this.href,5)" href="http://chinanews.sina.com/ent/2005/0510/1131526834.html" target="_blank"><font size="3"><font color=#C60A00>郑智化</font>是烂男人好爸爸 女儿叫我稍息我不敢立正 ...</font></a><br><font size=-1>昨天下午,<font color=#C60A00>郑智化</font>和内地的斗室文化公司签约,台湾着名音乐人周治平、吴旭文等均到场祝贺,<font color=#C60A00>郑智化</font>的歌迷、现任星文唱片副总的王磊还带来自己珍藏多年的黑胶唱片送给他作为礼物。为答谢多年支持自己的朋友,<font color=#C60A00>郑智化</font>现场清唱了刚刚写好... <br><font color=#008000>chinanews.sina.com/ent/2005/0510/11315268 ... 23K 2005-5-11 </font> - <a href="http://cache..com/c?word=%D6%A3%3B%D6%C7%BB%AF&url=http%3A//chinanews%2Esina%2Ecom/ent/2005/0510/1131526834%2Ehtml&b=0&a=72&user=" target="_blank" class=m>网络快照</a> <br></font></td></tr></table><br><table border="0" cellpadding="0" cellspacing="0"><tr><td class=f><a onmousedown="return c('site%3A%28sina%2Ecom%29+%D6%A3%D6%C7%BB%AF',this.href,6)" href="http://chinanews.sina.com/ent/2004/1111/0102197607.html" target="_blank"><font size="3"><font color=#C60A00>郑智化</font>:揭开一切的老底 - SINA.com - China ...</font></a><br><font size=-1><font color=#C60A00>郑智化</font>这个名字,并不意味着“巨星”或者惊心动魄的巨响,然而却代表了人文的意志、清醒的自我与透彻的真情。而...从事广告业的残疾青年<font color=#C60A00>郑智化</font>,凭借一次吃饭时的灵感乍现,写出了第一首歌曲《给开心女孩》。当这首歌随着广告红遍... <br><font color=#008000>chinanews.sina.com/ent/2004/1111/01021976 ... 18K 2004-11-11 </font> - <a href="http://cache..com/c?word=%D6%A3%3B%D6%C7%BB%AF&url=http%3A//chinanews%2Esina%2Ecom/ent/2004/1111/0102197607%2Ehtml&b=0&a=85&user=" target="_blank" class=m>网络快照</a> <br></font></td></tr></table><br><table border="0" cellpadding="0" cellspacing="0"><tr><td class=f><a onmousedown="return c('site%3A%28sina%2Ecom%29+%D6%A3%D6%C7%BB%AF',this.href,7)" href="http://books.sina.com/creation/sinacolumn/contents/20050310/20050310-016_7_gb.html" target="_blank"><font size="3">解读<font color=#C60A00>郑智化</font></font></a><br><font size=-1>中产阶级的出现,无疑是现代社会的产物,联系到前面分析过的<font color=#C60A00>郑智化</font>的立场,我们不难发现这首歌正是其一贯立场的表现。 ,<font color=#C60A00>郑智化</font>的一首《蜗牛的家》也很有代表性,非常值得一谈: 密密麻麻的高楼大厦,找... <br><font color=#008000>books.sina.com/creation/sinacolumn/conten ... 12K 2005-3-10 </font> - <a href="http://cache..com/c?word=%D6%A3%3B%D6%C7%BB%AF&url=http%3A//books%2Esina%2Ecom/creation/sinacolumn/contents/20050310/20050310%2D016%5F7%5Fgb%2Ehtml&b=0&a=69&user=" target="_blank" class=m>网络快照</a> <br></font></td></tr></table><br><table border="0" cellpadding="0" cellspacing="0"><tr><td class=f><a onmousedown="return c('site%3A%28sina%2Ecom%29+%D6%A3%D6%C7%BB%AF',this.href,8)" href="http://books.sina.com/creation/sinacolumn/contents/20050310/20050310-016_6_gb.html" target="_blank"><font size="3">解读<font color=#C60A00>郑智化</font></font></a><br><font size=-1>正是因为<font color=#C60A00>郑智化</font>的忧伤是内在的,所以他的这类歌曲虽然没有明显的批判现实的立场,但也颇能以情动人。在<font color=#C60A00>郑智化</font>的歌...正是因为这种理想主义者的姿态,使得<font color=#C60A00>郑智化</font>不断的直面现实生活中的“怪现状”。在《中产阶级》里,<font color=#C60A00>郑智化</font>描写了一... <br><font color=#008000>books.sina.com/creation/sinacolumn/conten ... 12K 2005-3-10 </font> - <a href="http://cache..com/c?word=%D6%A3%3B%D6%C7%BB%AF&url=http%3A//books%2Esina%2Ecom/creation/sinacolumn/contents/20050310/20050310%2D016%5F6%5Fgb%2Ehtml&b=0&a=157&user=" target="_blank" class=m>网络快照</a> <br></font></td></tr></table><br><table border="0" cellpadding="0" cellspacing="0"><tr><td class=f><a onmousedown="return c('site%3A%28sina%2Ecom%29+%D6%A3%D6%C7%BB%AF',this.href,9)" href="http://books.sina.com/creation/sinacolumn/contents/20050310/20050310-016_9_gb.html" target="_blank"><font size="3">解读<font color=#C60A00>郑智化</font></font></a><br><font size=-1>阳光是热情的,大地是绿油油的,有椰林,有蓝天白云,所以<font color=#C60A00>郑智化</font>说:美丽的南台湾呀,我舍不得离开。...就我个人的感受而言,我认为这首歌是<font color=#C60A00>郑智化</font>比较独特的一首作品。在这首歌里,我们看不到<font color=#C60A00>郑智化</font>的批判立场,也看不到... <br><font color=#008000>books.sina.com/creation/sinacolumn/conten ... 12K 2005-3-10 </font> - <a href="http://cache..com/c?word=%D6%A3%3B%D6%C7%BB%AF&url=http%3A//books%2Esina%2Ecom/creation/sinacolumn/contents/20050310/20050310%2D016%5F9%5Fgb%2Ehtml&b=0&a=167&user=" target="_blank" class=m>网络快照</a> <br></font></td></tr></table><br><table border="0" cellpadding="0" cellspacing="0"><tr><td class=f><a onmousedown="return c('site%3A%28sina%2Ecom%29+%D6%A3%D6%C7%BB%AF',this.href,10)" href="http://chinanews.sina.com/ent/2005/1218/2110939273.html" target="_blank"><font size="3">昨日“郑式影响”座无虚席 <font color=#C60A00>郑智化</font>泪洒北展剧场 -...</font></a><br><font size=-1>还是1993年那身银灰色的上衣,当<font color=#C60A00>郑智化</font>一改初上舞台时质朴的一面开始带领大家一起怀旧的时候,北展剧场顿时沸腾了...也许是这个让人感动的开场迅速让<font color=#C60A00>郑智化</font>找回了舞台之王的感觉,当演唱会进行到<font color=#C60A00>郑智化</font>向来自台湾、新加坡、马来西亚... <br><font color=#008000>chinanews.sina.com/ent/2005/1218/21109392 ... 21K 2005-12-19 </font> - <a href="http://cache..com/c?word=%D6%A3%3B%D6%C7%BB%AF&url=http%3A//chinanews%2Esina%2Ecom/ent/2005/1218/2110939273%2Ehtml&b=0&a=104&user=" target="_blank" class=m>网络快照</a> <br></font></td></tr></table><br>
<br clear=all>
<div class="p">1 <a href=s?lm=0&si=&rn=10&tn=aiyat&ie=gb2312&ct=0&wd=site%3A%28sina%2Ecom%29+%D6%A3%D6%C7%BB%AF&pn=10&cl=3>[2]</a><a href=s?lm=0&si=&rn=10&tn=aiyat&ie=gb2312&ct=0&wd=site%3A%28sina%2Ecom%29+%D6%A3%D6%C7%BB%AF&pn=20&cl=3>[3]</a><a href=s?lm=0&si=&rn=10&tn=aiyat&ie=gb2312&ct=0&wd=site%3A%28sina%2Ecom%29+%D6%A3%D6%C7%BB%AF&pn=30&cl=3>[4]</a><a href=s?lm=0&si=&rn=10&tn=aiyat&ie=gb2312&ct=0&wd=site%3A%28sina%2Ecom%29+%D6%A3%D6%C7%BB%AF&pn=40&cl=3>[5]</a><a href=s?lm=0&si=&rn=10&tn=aiyat&ie=gb2312&ct=0&wd=site%3A%28sina%2Ecom%29+%D6%A3%D6%C7%BB%AF&pn=50&cl=3>[6]</a><a href=s?lm=0&si=&rn=10&tn=aiyat&ie=gb2312&ct=0&wd=site%3A%28sina%2Ecom%29+%D6%A3%D6%C7%BB%AF&pn=60&cl=3>[7]</a><a href=s?lm=0&si=&rn=10&tn=aiyat&ie=gb2312&ct=0&wd=site%3A%28sina%2Ecom%29+%D6%A3%D6%C7%BB%AF&pn=70&cl=3>[8]</a><a href=s?lm=0&si=&rn=10&tn=aiyat&ie=gb2312&ct=0&wd=site%3A%28sina%2Ecom%29+%D6%A3%D6%C7%BB%AF&pn=80&cl=3>[9]</a><a href=s?lm=0&si=&rn=10&tn=aiyat&ie=gb2312&ct=0&wd=site%3A%28sina%2Ecom%29+%D6%A3%D6%C7%BB%AF&pn=90&cl=3>[10]</a><a href=s?lm=0&si=&rn=10&tn=aiyat&ie=gb2312&ct=0&wd=site%3A%28sina%2Ecom%29+%D6%A3%D6%C7%BB%AF&pn=10&cl=3><font size=3>下一页</font></a></div><br>
<div style="background-color:#EFF2FA;height:60px;width:100%;clear:both">
<table width="96%" height="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr><td style="font-size:14px;font-weight:bold;height:40px;width:70px;">相关搜索</td>
<td rowspan="2" valign="middle">
<table border="0" cellpadding="0" cellspacing="0"><tr>
<td nowrap class="f14"><a href="s?wd=%D6%A3%D6%C7%BB%AF%D7%A8%BC%AD&lm=0&si=&rn=10&tn=aiyat&ie=gb2312&ct=0&cl=3&f=1&rsp=0">郑智化专辑</a></td>
<td nowrap class="s"></td>
<td nowrap class="f14"><a href="s?wd=%D6%A3%D6%C7%BB%AF%B8%E8%C7%FA&lm=0&si=&rn=10&tn=aiyat&ie=gb2312&ct=0&cl=3&f=1&rsp=1">郑智化歌曲</a></td>
<td nowrap class="s"></td>
<td nowrap class="f14"><a href="s?wd=%CB%AE%CA%D6+%D6%A3%D6%C7%BB%AF&lm=0&si=&rn=10&tn=aiyat&ie=gb2312&ct=0&cl=3&f=1&rsp=2">水手 郑智化</a></td>
<td nowrap class="s"></td>
<td nowrap class="f14"><a href="s?wd=%D6%A3%D6%C7%BB%AF%D7%A8%BC%AF&lm=0&si=&rn=10&tn=aiyat&ie=gb2312&ct=0&cl=3&f=1&rsp=3">郑智化专集</a></td>
<td nowrap class="s"></td>
<td nowrap class="f14"><a href="s?wd=%D6%A3%D6%C7%BB%AF%D0%C2%B8%E8&lm=0&si=&rn=10&tn=aiyat&ie=gb2312&ct=0&cl=3&f=1&rsp=4">郑智化新歌</a></td>
</tr><tr>
<td nowrap class="f14"><a href="s?wd=%D6%A3%D6%C7%BB%AF%B5%C4%B8%E8&lm=0&si=&rn=10&tn=aiyat&ie=gb2312&ct=0&cl=3&f=1&rsp=5">郑智化的歌</a></td>
<td nowrap class="s"></td>
<td nowrap class="f14"><a href="s?wd=%D6%A3%D6%C7%BB%AF%D1%DD%B3%AA%BB%E1&lm=0&si=&rn=10&tn=aiyat&ie=gb2312&ct=0&cl=3&f=1&rsp=6">郑智化演唱会</a></td>
<td nowrap class="s"></td>
<td nowrap class="f14"><a href="s?wd=%D6%A3%D6%C7%BB%AF%B5%C4%B8%E8%C7%FA&lm=0&si=&rn=10&tn=aiyat&ie=gb2312&ct=0&cl=3&f=1&rsp=7">郑智化的歌曲</a></td>
<td nowrap class="s"></td>
<td nowrap class="f14"><a href="s?wd=%D6%A3%D6%C7%BB%AFmtv&lm=0&si=&rn=10&tn=aiyat&ie=gb2312&ct=0&cl=3&f=1&rsp=8">郑智化mtv</a></td>
<td nowrap class="s"></td>
<td nowrap class="f14">
<a href="http://d..com/rs.php?q=site%3A%28sina%2Ecom%29+%D6%A3%D6%C7%BB%AF&tn=aiyat">更多相关搜索>></a>
</td></tr></table>
</td></tr>
<tr><td></td></tr></table>
</div><br>
<table border="0" cellpadding="0" cellspacing="0" style="margin-left:18px;height:60px;">
<form name=f2 action="/s">
<tr valign="middle">
<td nowrap>
<input type=hidden name=tn value="aiyat">
<input type=hidden name=ct value="0">
<input type=hidden name=ie value="gb2312">
<input type=hidden name=bs value="site:(sina.com) 郑智化">
<input type=hidden name=sr>
<input type=hidden name=z value="">
<input type=hidden name=cl value=3>
<input type=hidden name=f value=8>
<input name=wd size="35" class=i value="site:(sina.com) 郑智化" maxlength=100>
<input type=submit value=网络搜索> <input type=button value=在结果中找 onclick="return my_submit(f2);"></td>
<td nowrap><a href="http://utility..com/quality/quality_form.php?word=site%3A%28sina%2Ecom%29+%D6%A3%D6%C7%BB%AF">与网络对话</a></td>
</tr>
</form>
</table>
<div style="text-align:center;background-color:#e6e6e6;height:20px;padding-top:2px;font-size:12px;">
<a href="http://www..com/ty/right.html" class="c">&;2006</a> Bai <a href="http://www..com/ty/index.html" class="c">免责声明</a> <font color=#666666>此内容系网络根据您的指令自动搜索的结果,不代表网络赞成被搜索网站的内容或立场</font>
</div>
<img src="http://c..com/c.gif?t=0&q=site%3A%28sina%2Ecom%29+%D6%A3%D6%C7%BB%AF" style="display:none;"/>
<script>
var p=window.document.location.href;var t=(new Date()).getTime();document.write ("<img src=http://survey2..com/images/w.gif?path="+p+"&t="+t+" border=0 width=0 height=0>");
</script>
</body></html>

Ⅳ 《古惑仔》里“洪兴”十二堂堂主都有谁

《古惑仔》里“洪兴”十二堂堂主如下所示:

1、蒋天生,洪兴龙头老大,在荷兰被杀,后由其亲弟蒋天养泰国回来接管洪兴。

2、靓坤,铜锣湾扛霸仔,被湾仔枪神爆头,后来是陈浩南老大。

3、大佬B,慈云山老大,后被靓坤害死全家,靓坤一手接管,因为当时通过选票靓坤当选龙头老大。

4、韩宾-,葵青,油尖、旺角。

5、十三妹,波澜街一带。

6、恐龙,屯门清一色全罩,韩宾亲弟,后被东星耀扬害死,经山鸡打败生番,夺得屯门。

7、黎胖子,北角“出版界的有文化?”,吃里爬外被逐出洪兴,由大飞胜任。

8、太子洪飞,打拳出名,尖沙咀老大。

9、陈耀,耀哥,洪兴主持大局,助理。

10、基哥,墙头草,不知道扛什么地方,西环。

11、兴叔,辈份最老,第一部龙头大会时坐一办事人位置,开过玩笑提起过他,山鸡摆宴席请客时就他到来。

12、阿超,其中有一部在按摩时被杀,当时基哥跳楼受伤逃走,好像是被三联帮丁瑶派人暗杀。

(5)12堂的源码扩展阅读:

《古惑仔》简介:

这部电影改编自牛佬同名漫画,正传电影由刘伟强执导,郑伊健、陈小春等为主演。

《古惑仔》改编自三日刊精修同名彩漫的经典故事,讲述了洪兴成员陈浩南、山鸡、大天二等人出生入死的故事,涉及兄弟情义、友情岁月、刻骨爱情,诠释了一代人无处安放的青春。

Ⅵ 求www.12kan.cn电影网站源代码

现在用的免费比较多的是亚阳影视,免费使用的
下载地址:http://www.ayang.cn/ayangmoviecms2007.rar

亚阳影视网站演示地址:http://www.ayang.cn
你可以去看看外观如何?不错吧!

电影网站用的的数据库Access版的,你说的空间,应该是电影本身占用的空间,所以你做电影网站的话,你自己必须要有存放电影的服务器,不是找一个电影网站源代码就可以解决的!

希望能对你有帮助,好运!

Ⅶ 谁能给我一个手机游戏的源代码啊

这个地址也有,不过直接给你吧,这样比较好
先给你看看主要的类吧

package Game;

import DreamBubbleMidlet;

import java.io.IOException;
import java.util.Enumeration;
import java.util.Hashtable;

import javax.microedition.lci.Graphics;
import javax.microedition.lci.Image;
import javax.microedition.lci.game.GameCanvas;
import javax.microedition.lci.game.LayerManager;
import javax.microedition.lci.game.Sprite;

public class Game extends GameCanvas implements Runnable {

protected DreamBubbleMidlet dreamBubbleMidlet;

protected Graphics g;
protected Image loadingImage;
protected Image pauseImage;
protected Image cursorImage;
protected Image jackStateImage;
protected Image johnStateImage;
protected Image numberImage;

protected Sprite cursor;
protected Sprite number;
protected LayerManager cursorManager;
protected LayerManager numberManager;

protected Hashtable bombTable;
protected Map map;
protected LayerManager gameLayerManager;
protected Role player;
protected Sprite playerGhost;

protected int screenWidth;
protected int screenHeight;
protected int delay = 50;
protected int[][] bornPlace;
protected int chooseIndex;
protected int stageIndex = 1;
protected int gameClock;
protected int loadPercent;

protected boolean isPause;
protected boolean isEnd;
protected boolean isPlaying;
protected boolean isLoading;

protected Thread mainThread;

public Game(DreamBubbleMidlet dreamBubbleMidlet) {
super(false);
this.setFullScreenMode(true);
this.dreamBubbleMidlet = dreamBubbleMidlet;

this.screenWidth = this.getWidth();
this.screenHeight = this.getHeight();

try {
this.loadingImage = Image.createImage("/Game/Loading.png");
this.pauseImage = Image.createImage("/Game/Pause.png");
this.cursorImage = Image.createImage("/Game/Cursor.png");
this.jackStateImage = Image.createImage("/State/JackState.png");
this.johnStateImage = Image.createImage("/State/JohnState.png");
this.numberImage = Image.createImage("/State/Number.png");
} catch (IOException e) {
e.printStackTrace();
}

this.g = this.getGraphics();
}

public void loadStage(int stage) {
this.isEnd = false;
this.isPause = false;
this.isPlaying = false;
this.gameLayerManager = new LayerManager();
this.cursorManager = new LayerManager();
this.numberManager = new LayerManager();
this.bombTable = new Hashtable();
this.cursor = new Sprite(this.cursorImage, 32, 32);
this.number = new Sprite(this.numberImage, 12, 10);
this.loadPercent = 20;
sleep();

loadMap(stage);
this.loadPercent = 40;
sleep();

loadPlayer();
this.loadPercent = 60;
sleep();

this.gameLayerManager.append(map.getBombLayer());
this.gameLayerManager.append(map.getBuildLayer());
this.gameLayerManager.append(map.getToolLayer());
this.gameLayerManager.append(map.getFloorLayer());
this.gameLayerManager.setViewWindow(0, -5, screenWidth,
Global.MAP_HEIGHT + 5);
this.cursorManager.append(cursor);
this.numberManager.append(number);
this.loadPercent = 80;
sleep();

this.loadPercent = 100;
sleep();
isPlaying = true;
}

public void run() {
while (!isEnd) {
long beginTime = System.currentTimeMillis();
this.drawScreen();
long endTime = System.currentTimeMillis();
if (endTime - beginTime < this.delay) {
try {
Thread.sleep(this.delay - (endTime - beginTime));
} catch (InterruptedException e) {
e.printStackTrace();
}
}
}
}

public void loadMap(int stage) {
switch (stage) {
case 0:
this.map = new Map(Global.MAP_BLOCK);
this.bornPlace = Global.MAP_BLOCK_BORNPLACE;
break;
case 1:
this.map = new Map(Global.MAP_FACTORY);
this.bornPlace = Global.MAP_FACTORY_BORNPLACE;
break;
case 2:
this.map = new Map(Global.MAP_FOREST);
this.bornPlace = Global.MAP_FOREST_BORNPLACE;
break;
case 3:
this.map = new Map(Global.MAP_PIRATE);
this.bornPlace = Global.MAP_PIRATE_BORNPLACE;
break;
case 4:
this.map = new Map(Global.MAP_FAUBOURG);
this.bornPlace = Global.MAP_FAUBOURG_BORNPLACE;
break;
}
}

public void loadPlayer() {
this.player = SingleGameRole.createSingleGameRole(this, Global.JACK,
this.bornPlace[0][0], this.bornPlace[0][1]);
this.gameLayerManager.append(player);
try {
this.playerGhost = new Sprite(Image.createImage("/Character/Jack.png"),
this.player.width, this.player.height);
this.gameLayerManager.append(playerGhost);
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}

public void playerUpdate() {
if(!this.player.isAlive)
this.playerGhost.setVisible(false);
this.playerGhost.setFrame(this.player.getFrame());
this.player.updateRole();
}

public void bombUpdate() {
Enumeration enu = this.bombTable.keys();
while (enu.hasMoreElements()) {
String key = (String) enu.nextElement();
Bomb bomb = (Bomb) (bombTable.get(key));

if (bomb.isvisable) {
bomb.update();
} else {
bombTable.remove(key);
bomb = null;
}
}
}

public void mapUpdate() {
this.map.update();
}

public void drawScreen() {
if (gameClock < 10000)
gameClock++;
else
gameClock = 0;
if (!this.isLoading) {
if (!isPause) {
this.operate();
this.bombUpdate();
this.playerUpdate();
this.mapUpdate();
g.setColor(0x000000);
g.fillRect(0, 0, getWidth(), getHeight());
this.drawState();
gameLayerManager.paint(g, 0, this.screenHeight
- Global.MAP_HEIGHT - 5);
} else {
this.drawPauseFrame();
}
} else {
this.drawLoadingFrame();
}
this.flushGraphics();
}

public void drawFailScreen() {

}

public void drawState() {
if (this.player.type == Global.JACK) {
g.drawImage(jackStateImage, 60, 5, Graphics.TOP | Graphics.LEFT);
}
if (this.player.type == Global.JOHN) {
g.drawImage(johnStateImage, 60, 5, Graphics.TOP | Graphics.LEFT);
}

this.number.setFrame(this.player.bombNums);
this.numberManager.paint(g, 101, 15);
this.number.setFrame(this.player.speed);
this.numberManager.paint(g, 133, 15);
this.number.setFrame(this.player.power);
this.numberManager.paint(g, 165, 15);
}

protected void drawPauseFrame() {
g.setColor(0x000000);
g.fillRect(0, 0, getWidth(), getHeight());
this.drawState();
if (gameClock % 5 == 0)
this.cursor.setFrame((this.cursor.getFrame() + 1) % 4);
this.gameLayerManager.paint(g, 0, this.screenHeight - Global.MAP_HEIGHT
- 5);
this.cursorManager.paint(g, screenWidth / 2 - pauseImage.getWidth() / 2
- 32, screenHeight / 2 - pauseImage.getHeight() / 2
+ this.chooseIndex * 33 + 24);
g.drawImage(pauseImage, screenWidth / 2, screenHeight / 2,
Graphics.HCENTER | Graphics.VCENTER);
}

protected void drawLoadingFrame() {
g.setColor(66, 70, 246);
g.fillRect(0, 0, screenWidth, screenHeight);

g.drawImage(loadingImage, screenWidth / 2, 2 * screenHeight / 5,
Graphics.HCENTER | Graphics.VCENTER);

g.setColor(0, 255, 0);
g.fillRect((screenWidth - 120) / 2, 2 * screenHeight / 3,
(this.loadPercent * 120) / 100, 10);

g.setColor(255, 0, 0);
g.drawRect((screenWidth - 120) / 2, 2 * screenHeight / 3, 120, 10);
}

public void showMe() {
new Loading(this.stageIndex);
if (this.mainThread == null) {
mainThread = new Thread(this);
mainThread.start();
}
this.dreamBubbleMidlet.show(this);
}

public void operate() {
int keyStates = getKeyStates();
this.playerGhost.setPosition(this.player.xCoodinate, this.player.yCoodinate);
if ((keyStates & DOWN_PRESSED) != 0) {
this.player.walk(Global.SOUTH);
} else {
if ((keyStates & UP_PRESSED) != 0) {
this.player.walk(Global.NORTH);
} else {
if ((keyStates & RIGHT_PRESSED) != 0) {
this.player.walk(Global.EAST);
} else {
if ((keyStates & LEFT_PRESSED) != 0) {
this.player.walk(Global.WEST);
}
}
}
}
}

protected void keyPressed(int key) {
if (!this.isPlaying)
return;
if (!this.isPause && key == -7) {// 右键
this.chooseIndex = 0;
this.pauseGame();
return;
}
if (key == 35) {// #键
this.nextStage();
return;
}
if (key == 42) {// *键
this.preStage();
return;
}
if (this.isPause) {
switch (key) {
case -1:
case -3:
if (this.chooseIndex == 0)
this.chooseIndex = 2;
else
this.chooseIndex = (this.chooseIndex - 1) % 3;
break;
case -2:
case -4:
this.chooseIndex = (this.chooseIndex + 1) % 3;
break;
case -5:// 确认键
case -6:// 左软键
switch (chooseIndex) {
case 0:
this.continueGame();
break;
case 1:
this.restart();
break;
case 2:
this.endGame();
break;
}
break;
default:
break;
}
} else {
switch (key) {
case 53:
case -5:// 确认键
this.player.setBomb(this.player.getRow(), this.player.getCol());
break;
}
}
}

public void restart() {
new Loading(this.stageIndex);
}

public void continueGame() {
this.isPause = false;
this.player.play();
}

public void pauseGame() {
this.isPause = true;
this.player.stop();
}

public void endGame() {
this.isEnd = true;
this.mainThread = null;
System.gc();
try {
Thread.sleep(500);
} catch (InterruptedException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
this.dreamBubbleMidlet.menu.showMe();
}

public void nextStage() {
if (this.stageIndex < 4) {
this.stageIndex++;
}
new Loading(this.stageIndex);
}

public void preStage() {
if (this.stageIndex > 0) {
this.stageIndex--;
}
new Loading(this.stageIndex);
}

class Loading implements Runnable {
private Thread innerThread;
private int stageIndex;

public Loading(int stageIndex) {
this.stageIndex = stageIndex;
innerThread = new Thread(this);
innerThread.start();
}

public void run() {
isLoading = true;
loadPercent = 0;
System.gc();
loadStage(stageIndex);
isLoading = false;
}
}

public void sleep() {
try {
Thread.sleep(100);
} catch (InterruptedException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
}

这个是游戏主体类

下面是游戏的人物类

package Game;

import javax.microedition.lci.Image;
import javax.microedition.lci.game.Sprite;

public abstract class Role extends Sprite {

/**
* 人物的基本属性
*/
protected int type;
protected int xCoodinate;
protected int yCoodinate;
protected int row;
protected int col;
protected int width;
protected int height;
protected int speed;
protected int status;
protected boolean isCanOperate = false;
protected boolean isAlive = true;

/**
* 人物放置炸弹的基本属性
*/
protected int power;
protected int bombNums;

protected int characterClock = 0;
protected int deadTime = 0;

protected Game game;

protected Role(Image image, int width, int Height, Game game) {
super(image, width, Height);
this.game = game;
}

/**
* 人物拾起道具
* @param tool
*/
public abstract void pickupTool(int tool);
/**
* 碰撞检测以及坐标的改变,如果对行走条件有特殊需求,既可以在这里写自己的条件
* @param direction
*/
public abstract void collisionCheck(int direction);

public void updateRole() {
if (this.characterClock < 10000) {
this.characterClock++;
} else {
this.characterClock = 100;
}

int row = this.getRow();
int col = this.getCol();

if (this.isAlive) {

int tool = this.game.map.getToolLayer().getCell(col, row);

if (tool > 0) {
this.pickupTool(tool);
this.game.map.getToolLayer().setCell(col, row, 0);
}

if (this.game.map.hasFeature(row, col, Global.DEADLY)) {
this.isAlive = false;
return;
}

if (this.status == Global.BORN
&& this.characterClock > Global.BORN_TIME) {
this.status = Global.SOUTH;
this.setFrame(Global.SOUTH * 6);
this.isCanOperate = true;
}

if (this.status == Global.BORN) {
if (this.characterClock % 2 == 0)
this.setFrame(Global.BORN * 6 + (this.getFrame() - 1) % 4);
return;
}

} else {
this.isCanOperate = false;
if (this.deadTime <= 20) {
this.deadTime++;
} else {
this.deadTime = 100;
this.setVisible(false);
return;
}

if (this.characterClock % 2 == 0) {
if (this.getFrame() < Global.DEAD * 6) {
this.setFrame(Global.DEAD * 6);
} else {
if (this.getFrame() < 29) {
this.setFrame(this.getFrame() + 1);
} else {
if (this.characterClock % 4 == 0) {
this.setFrame(29);
this.setVisible(true);
} else {
this.setVisible(false);
}
}
}
}
}
}

public void walk(int direction) {
if (!isAlive)
return;
if (!isCanOperate)
return;
if(direction==9) return;
this.collisionCheck(direction);

if (this.characterClock % 2 == 0) {
if (this.status == direction) {
this.setFrame(this.status * 6 + (this.getFrame() + 1) % 6);
} else {
this.status = direction;
this.setFrame(this.status * 6);
}
}
this.setPosition(xCoodinate, yCoodinate);
}

public void stop() {
this.isCanOperate = false;
}

public void play() {
this.isCanOperate = true;
}

public abstract void setBomb(int row, int col);

public void increaseBomb() {
if (this.bombNums < Global.MAX_BOMB_NUMBER)
this.bombNums++;
}

public int getRow() {
return getRow(getBottomY(yCoodinate) - Global.MAP_CELL / 2);
}

public int getCol() {
return getCol(xCoodinate + Global.MAP_CELL / 2);
}

protected int getBottomY(int y) {
return y + this.height - 1;
}

protected int getRightX(int x) {
return x + Global.MAP_CELL - 1;
}

protected int getPreY(int y) {
return getBottomY(y) + 1 - Global.MAP_CELL;
}

protected int getRow(int x) {
return x / Global.MAP_CELL;
}

protected int getCol(int y) {
return y / Global.MAP_CELL;
}
}

我的QQ是609419340

看不明白的可以随时来问我哦,还可以当时传给你撒

Ⅷ 元铜十二堂

您的这一个钱币,是中华民国当二十铜元,是大开门的老的真品,品相好的市场上一般喊价在30元左右!

热点内容
hypixel手机国际版服务器ip 发布:2025-01-25 09:14:36 浏览:598
荒岛求生安卓怎么下载 发布:2025-01-25 09:09:31 浏览:209
java中io流 发布:2025-01-25 09:02:54 浏览:878
华为高斯数据库 发布:2025-01-25 08:55:38 浏览:31
php是动态语言 发布:2025-01-25 08:45:44 浏览:67
服务器关闭了电脑网络还能用 发布:2025-01-25 08:22:28 浏览:588
热血航线的登录密码在哪里可以看 发布:2025-01-25 08:22:27 浏览:770
5系怎么选择配置 发布:2025-01-25 08:22:18 浏览:843
pythonscipy 发布:2025-01-25 08:18:52 浏览:419
恕瑞玛服务器地址 发布:2025-01-25 08:18:51 浏览:802